以下是通达信拐点源码(无源码的请下载附件导入)
通达信拐点源码
p1:=(5); p2:=(4);
Var1:=LLV(LOW,P1);
Var2:=HHV(HIGH,P1);
短: EMA((CLOSE-Var1)/(Var2-Var1)*100,P2),COLORFF00FF,colorred;
线: EMA(0.667*REF(短,1)+0.333*短,2),colorcyan;
中: EMA((短+线)/2,13);
拐点:REF(线,1),colorgreen,LINETHICK0;
次日买入价:IF(CLOSE>OPEN,OPEN+(CLOSE-OPEN)/2+0.05,0),colorred,LINETHICK0;
次日卖出价:IF(OPEN>CLOSE AND 线>短,CLOSE+(OPEN-CLOSE)/2-0.1,0),colorgreen,LINETHICK0;
买入参考:=CROSS(短,线);
卖出参考:=CROSS(线,短);
DRAWICON(买入参考 AND 线<40,线,1);
DRAWICON(卖出参考 AND 线>60,线,2);
顶1:80;
底1:20;
顶2:60;
底2:40;
628122327.gif
|