同花顺多空对比源码附图
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),colorwhite;
中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),coloryellow;
长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),colorred;
DRAWTEXT(短期<6 AND 长期<6,(20),'B2'),COLORFFFF00;
DRAWTEXT(长期/短期>5,(80),'B1'),COLORFFFF00;
80,pointdot;
50,pointdot;
20,pointdot;