同花顺顺势操盘主图指标
源码
均价:=(HIGH+4*LOW+OPEN+CLOSE)/7; 均价差:= EMA(均价,13) - EMA(均价,34); 移动均价:= EMA(均价差,5); 差:=(均价差-移动均价)*5; A:=IF(差 =1000 ,1000 ,IF(差 =均价,均价,差) ); 分水岭:FORCAST(FORCAST(A,31),10),linethick3; 上涨:IF(A 分水岭,A,分水岭),colorred; 下跌:IF(A 分水岭,A,分水岭),colorgreen; 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); DRAWTEXT(bu,LOW+0.1,'B'),colorred,LINETHICK3; DRAWTEXT(bu,LOW+0.1,' ̄'),Color0000FF,LINETHICK3; DRAWTEXT(sel,HIGH+0.1,' ̄'),ColorFFF000,LINETHICK3; DRAWTEXT(sel,HIGH+0.1,'S'),colorgreen,linethick3; STICKLINE(买线 =卖线,LOW,HIGH,0.1,1),colorred; STICKLINE(买线 =卖线,CLOSE,OPEN,8,1),colorred; STICKLINE(买线 卖线,CLOSE,OPEN,8,0),color00ff00; STICKLINE(买线 卖线,LOW,HIGH,0.1,1),color00ff00;