等级: 新手上路
- 注册:
- 2021-7-5
- 曾用名:
|
楼主 |
发表于 2021-9-3 03:30
|
显示全部楼层
技术009 发表于 2021-9-1 08:32
[mw_shl_code=pel,true]VA1:=HHV(HIGH,12)-LLV(LOW,26);
VA2:=HHV(HIGH,9)-CLOSE;
VA3:=CLOSE-LLV(LOW,9) ...
好的 谢谢了 技术大哥再麻烦您帮一个忙就是在下方公式中加一个计算区间收益的公式,比如这一段红线收益多少这一段绿线收益多少写在他们头顶您看可以嘛?麻烦您帮忙写好一下因为是小白不太懂,非常感谢了
HH1:=IF(H<REF(H,1) AND REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IF(L>REF(L,1) AND REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IF(CLOSE>HH2,-3,IF(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IF(K2=1,HH2,LL2);
G1:=VALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(L>0,G1,G1),COLORCYAN;
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE(W1=1,HIGH,HT,0,1),COLORCYAN;
STICKLINE(W1=1,LOW,LT,0,1),COLORCYAN;
STICKLINE(W1=-3,HIGH,HT,0,1),COLORRED;
STICKLINE(W1=-3,LOW,LT,0,1),COLORRED;
STICKLINE(W1>0,OPEN,CLOSE,3,1),COLORCYAN;
STICKLINE(W1<=0,OPEN,CLOSE,3,1),COLORRED;
STICKLINE(W2>0 AND W1<=0,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(W2>0 AND W1>0,OPEN,CLOSE,3,0),COLORCYAN;
IF(K2=1,G,DRAWNULL),COLORGREEN,DOTLINE;
IF(K2=-3,G,DRAWNULL),COLORRED,DOTLINE;
DRAWTEXT(CROSS(W1,0),HT,'空'),COLORGREEN;
DRAWTEXT(CROSS(0,W1),LT,'多'),COLORYELLOW;
火车:DRAWTEXT(CROSS(0,W1),LT,'多'),COLORYELLOW; |
|