通达信寻领头羊源码
白色: SMA(HIGH,21,2)*1.05,COLORWHITE,LINETHICK2;
黄色: SMA(LOW,21,2)*0.95,COLORYELLOW;
粉色: SMA(LOW,5,1),COLORFF00FF;
绿色: SMA(CLOSE,2,1),COLORGREEN,LINETHICK2;
波段买入:IF(CROSS(绿色,粉色),白色*1.05,粉色),,COLORFF00FF,LINETHICK2;
领头羊:IF(CROSS(绿色,白色),白色*1.10,黄色),,COLORYELLOW,LINETHICK2;
VAR1:=MA(CLOSE,26);
持仓:=VAR1,COLORYELLOW,LINETHICK2;
启动:IF(CROSS(绿色,持仓),白色*1.10,持仓),COLORYELLOW,LINETHICK2;