同花顺牛马线公式
源码
N:=4;
牛线:SMA(MAX(CLOSE-REF(CLOSE,1),0),N,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),N,1)*100,colorred;
马线:MA(牛线,13),colorgreen;
SSRGL:=CYS.CYS,NODRAW;
STICKLINE((SSRGL<(0-19)),0,80,2.5,0),colorred;
STICKLINE((SSRGL<(0-15)),0,60,2.5,0),colorblue;
STICKLINE((SSRGL<(0-11)),0,40,2.5,0),coloryellow;
STICKLINE((SSRGL<(0-7)),0,20,2.5,0),colorwhite;
NOTEXT1:牛线,colorred;
NOTEXT2:马线,colorgreen;
DRAWTEXT(CROSS(NOTEXT1,NOTEXT2),NOTEXT1,'始'),coloryellow;
DRAWTEXT(CROSS(NOTEXT2,NOTEXT1),NOTEXT2,'终'),colorred;