文华6幅图指标公式大全-多空精准买卖点提示指标源码:
HH:= HHV ( HIGH ,1)/5+ HHV ( HIGH ,2)/5+ HHV ( HIGH ,2)/5+ HHV ( HIGH ,5)/5+ HHV ( HIGH ,8)/5;
LL:= LLV ( LOW ,1)/5+ LLV ( LOW ,2)/5+ LLV ( LOW ,2)/5+ LLV ( LOW ,5)/5+ LLV ( LOW ,8)/5;
H1:= IFELSE ( H < REF ( H ,2)&& REF ( H ,1)< REF ( H ,2), REF ( H ,2),0);
L1:= IFELSE ( L > REF ( L ,2)&& REF ( L ,1)> REF ( L ,2), REF ( L ,2),0);
H2:= VALUEWHEN (H1>0,H1);
L2:= VALUEWHEN (L1>0,L1);
K1:= IFELSE ( CLOSE >H2,-3, IFELSE ( CLOSE <L2,1,0));
K2:= VALUEWHEN (K1<>0,K1);
NN:=BACKSET(ISLASTBAR,SUMBARS(CROSS(K2=-3,0.5)||CROSS(K2=1,0.5),1));
DRAWTEXT(NN&&CROSS(K2=-3,0.5),40,'多'),VALIGN0,COLORMAGENTA,FONTSIZE28;
DRAWTEXT(NN&&CROSS(K2=1,0.5),70,'空'),COLORCYAN,FONTSIZE28;
BACKGROUNDSTYLE(1);//隐藏前面的信号