以下是通达信霸道总裁,和谐源码分享公式副图选股源码(无源码的请下载附件导入)
{公式名称: 霸道总裁
公式源码:}
VAR1:=CLOSE>MA(CLOSE,20) AND CLOSE>MA(CLOSE,60);
VAR2:=MA(CLOSE,20);
VAR3:=CLOSE>VAR2;
VAR4:=SMA(HIGH,21,2)*1.05;
VAR5:=SMA(LOW,21,2)*0.95;
VAR6:=SMA(LOW,5,1);
VAR7:=(HIGH-CLOSE)/CLOSE*100<1;
VAR8:=CLOSE/REF(CLOSE,1)>1.03;
VAR9:=SMA(CLOSE,2,1);
VAR10:=IF(CROSS(VAR9,VAR6),VAR4*1.05,VAR6);
VAR11:=IF(CROSS(VAR9,VAR4),VAR4*1.1,VAR5);
霸道总裁:VAR11>VAR5 OR VAR10>VAR6 AND VAR7 AND VAR8 AND VAR1 AND VAR3;
1951288153.png
|