程序源碼 VAR1:=(HHV(HIGH,9)-LLV(LOW,9)); VAR2:=(HHV(HIGH,9)-CLOSE); VAR3:=(CLOSE-LLV(LOW,9)); VAR4:=VAR2/VAR1*100-70 ; VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR6:=(2*C+H+L)/4; VAR7:=SMA((VAR3/VAR1*100),3,1); VAR8:=LLV(LOW,34); VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1); VAR10:= IF(VAR9>100,VAR9-100,0); VARA:=HHV(HIGH,34); 防線B:=EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLORWHITE; B1:=EMA(防線B,5); STICKLINE(防線B>0 AND 防線B-B1>=0,19,20,3,0),COLORYELLOW; STICKLINE(防線B>0 AND 防線B-B1< 0,19,20,3,1),COLORRED; 買賣:防線B-B1,COLORCYAN; 短線:-買賣,COLORRED; 賣出:(REF(買賣,1)>0 AND 買賣<=0) OR (買賣< 1 AND 買賣>=0 AND C< O),COLORRED; DRAWICON(賣出,36,1); STICKLINE(賣出,0,28,1,0),COLORRED; DRAWTEXT(賣出,30,'賣'),COLORMAGENTA; 買入:賣出=0 AND REF(買賣,1)< 0 AND 買賣>0,COLORRED; STICKLINE(買入,0,28,2,0),COLORYELLOW; DRAWICON(買入,40,1); DRAWTEXT(買入,30,'買'),COLORYELLOW; 注: 館內(nèi)各種公式為學(xué)習(xí)編程而保存,實(shí)戰(zhàn)使用前一定要看其中是否有未來(lái)函數(shù)并自己親自測(cè)試成功率,決不能依據(jù)公式名稱的描述和形容去投資,據(jù)此入市造成投資損失由投資者自己承擔(dān)。 發(fā)文不易,如獲益,歡迎贊賞,贊賞必復(fù)! |
|
來(lái)自: 追夢(mèng)文庫(kù) > 《看盤》