分析:這個(gè)公式輸出語句非常多,但多數(shù)都是用于趨勢(shì)判斷的。所以不用管它。仍按我們既定的思路進(jìn)行。
第一步{從后往前找},先刪除發(fā)出信號(hào)關(guān)鍵語句之后的(紅色為輸出語句,它以下的語句已經(jīng)刪去,藍(lán)色為等待下步刪除的)
A01:=DYNAINFO(7);
A03:=BARSCOUNT(CLOSE);
A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);
A05:=IF((A03 > 20),A04,0);
A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));
A07:=DMA(A06,(VOL / CAPITAL)) * 60;
A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);
Var1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
Var2:=EMA(Var1,8);
Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趨勢(shì):=EMA(Var3,3)-10;
FILLRGN(趨勢(shì)>80,趨勢(shì),80);
DRAWICON(CROSS(趨勢(shì),0),0,1);
FILLRGN((A09 > 0 AND (趨勢(shì)<20 OR 趨勢(shì)>REF(趨勢(shì),1)AND 趨勢(shì)<50)),0,A09),colorFFFF00;
機(jī)構(gòu)建倉(cāng)區(qū):0,LINETHICK0,colorFFFF00;
Var4:=(趨勢(shì)-REF(趨勢(shì),1))/REF(趨勢(shì),1)*100;
STICKLINE(趨勢(shì)<=13,0,20,5,0),colorcc9900;
DRAWTEXT(FILTER(趨勢(shì)<=13,15),30,'準(zhǔn)備現(xiàn)金'),colorcc9900;
STICKLINE(趨勢(shì)<=13 AND Var4>13,0,50,5,0),color0099ff;
Var5:=FILTER((趨勢(shì)<=13 AND Var4>13),10);
DRAWTEXT(Var5,60,'買入'),color0099ff;
第二步{刪除沒用條}后
Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趨勢(shì):=EMA(Var3,3)-10;
DRAWICON(CROSS(趨勢(shì),0),0,1);
Var4:=(趨勢(shì)-REF(趨勢(shì),1))/REF(趨勢(shì),1)*100;
Var5:=FILTER((趨勢(shì)<=13 AND Var4>13),10);
DRAWTEXT(Var5,60,'買入'),color0099ff;
第三步{去掉修飾符后}:
趨勢(shì):=EMA(Var3,3)-10;
CROSS(趨勢(shì),0);
Var4:=(趨勢(shì)-REF(趨勢(shì),1))/REF(趨勢(shì),1)*100;
Var5:=FILTER((趨勢(shì)<=13 AND Var4>13),10);
Var5;
第四步{個(gè)別加等號(hào)}本公式中的“條件”語句都是不輸出的,所以此項(xiàng)省略,但因是要笑臉和買入兩個(gè)信號(hào),所以還必須把它們連結(jié)起來:
Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趨勢(shì):=EMA(Var3,3)-10;
Var4:=(趨勢(shì)-REF(趨勢(shì),1))/REF(趨勢(shì),1)*100;
Var5:=FILTER((趨勢(shì)<=13 AND Var4>13),10);
CROSS(趨勢(shì),0)or Var5;
上一頁(yè) [1] [2] [3] [4] [5] 下一頁(yè)
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)(責(zé)任編輯:張曉軒)