通达信蓝色卖出 红色买入 黄色持有指标公式
RH:=REF(H,1);
MH:=ABS(H-RH)/2+MIN(H,RH);
HM:=REF(MH,1);
RL:=REF(L,1);
ML:=ABS(L-RL)/2+MIN(L,RL);
LM:=REF(ML,1);
E:=IF(H>RH AND L>RL,9,IF(H>RH AND L=RL,8,IF(H>RH AND L<RL,7,IF(H=RH AND L>RL,6,IF(H=RH AND L=RL,5,IF(H=RH AND L<RL,4,IF(H<RH AND L>RL,3,IF(H<RH AND L=RL,2,IF(H<RH AND L<RL,1,0))))))))),NODRAW;
取:=MAX(C,O);
得:=MIN(C,O);
U:=IF(取>REF(取,1) AND 得>REF(得,1),9,IF(取>REF(取,1) AND 得=REF(得,1),8,IF(取>REF(取,1) AND 得<REF(得,1),7,IF(取=REF(取,1) AND 得>REF(得,1),6,IF(取=REF(取,1) AND 得=REF(得,1),5,IF(取=REF(取,1) AND 得<REF(得,1),4,IF(取<REF(取,1) AND 得>REF(得,1),3,IF(取<REF(取,1) AND 得=REF(得,1),2,IF(取<REF(取,1) AND 得<REF(得,1),1,0)))))))));
STICKLINE(U=9,C,O,3,0),COLORYELLOW;
STICKLINE(U=8 OR U=6,C,O,3,0),COLORRED;
STICKLINE(U=7,C,O,3,0),COLORFFFF00;
STICKLINE(U=5,C,O,3,0),COLORFFFFFF;
STICKLINE(U=3,C,O,3,0),COLORFF00FF;
STICKLINE(U=2 OR U=4,C,O,3,0),COLORGREEN;
STICKLINE(U=1,C,O,3,0),COLORBLUE;
STICKLINE(E=9,H,L,0.5,1),COLORYELLOW;
STICKLINE(E=8 OR E=6,H,L,0.5,1),COLORRED;
STICKLINE(E=7,H,L,0.5,1),COLORFFFF00;
STICKLINE(E=5,H,L,0.5,1),COLORFFFFFF;
STICKLINE(E=3,H,L,0.5,1),COLORFF00FF;
STICKLINE(E=2 OR E=4,H,L,0.5,1),COLORGREEN;
STICKLINE(E=1,H,L,0.5,1),COLORBLUE;
- 上一篇公式:通达信云端筹码分布优化指标公式
- 下一篇公式:通达信九阴真经指标公式