同花顺趋势买卖主图指标公式源码如下: N:=20;M:=32;P1:=80;P2:=100; VAR1:=(C+H+O+L)/4; 卖出:EMA(VAR1,N)*(1+P1/900),colorgreen,LINETHICK2; 买入:EMA(VAR1,M)*(1-P2/900),colormagenta,LINETHICK2; MA1:=MA(VAR1,3); STICKLINE(卖出>LOW AND 卖出STICKLINE(卖出>MIN(C,O) AND 卖出STICKLINE(卖出>LOW AND 卖出STICKLINE(卖出STICKLINE(卖出//{www.gpxiazai.com 股票软件下载网_同花顺股票指标公式} STICKLINE(买入>LOW AND 买入STICKLINE(买入>MIN(C,O) AND 买入STICKLINE(买入>LOW AND 买入STICKLINE(买入>HIGH,OPEN,CLOSE,8,0),colormagenta; STICKLINE(买入>HIGH,HIGH,LOW,1,0),colormagenta; DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'B'),colorred,LINETHICK2; DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),colorgreen; |