同花顺K线趋势公式
道非常道,名非常名,
大道至简,玄之又玄,
K线本具四象,均线亦非常道
源码
HW:=(H-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*110-55;
CW:=(C-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*110-55;
OW:=(O-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*110-55;
LW:=(L-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*110-55;
DRAWKLINE(HW,OW,LW,CW);
MC1:MA(CW,2),colorred;
MC2:MA(MC1,2),coloryellow;
MC3:MA(MC2,2),colorgreen;
MC4:MA(MC3,2),colorcyan;
MC5:MA(MC4,2),colorblue;
水平:0,colorwhite;
超买:50,colorred;
超卖:-50,colorblue;
VERLINE(MONTH>REF(MONTH,1),2);