请把这个指标改为通达信的谢谢! 50
HH:=HHV(HIGH,7);LL:=LLV(LOW,7);HH1:=BARSLAST((HH>REF(HH,1)));LL1:=BARSLAST((LL<REF(LL...
HH:=HHV(HIGH,7);
LL:=LLV(LOW,7);
HH1:=BARSLAST((HH>REF(HH,1)));
LL1:=BARSLAST((LL<REF(LL,1)));
A:=IFELSE((HH1 < LL1),1,IFELSE((HH1 > LL1),-1,0));
AA:IFELSE(A>=0,LL,HH),COLORBLUE;
DRAWTEXT(CROSS(HH1,LL1),HH,'开空');
DRAWTEXT(CROSS(LL1,HH1),LL,'开多');
DRAWLINE(HH1>LL1,HIGH,HH1>LL1,OPEN,COLORCYAN);
DRAWLINE(HH1>LL1,LOW,HH1>LL1,CLOSE,COLORCYAN);
DRAWLINE(HH1<=LL1,HIGH,HH1<=LL1,CLOSE,COLORRED);
DRAWLINE(HH1<=LL1,LOW,HH1<=LL1,OPEN,COLORRED);
STICKLINE(HH1>LL1,OPEN,CLOSE,COLORCYAN,0);
STICKLINE(HH1<=LL1,OPEN,CLOSE,COLORRED,1); 展开
LL:=LLV(LOW,7);
HH1:=BARSLAST((HH>REF(HH,1)));
LL1:=BARSLAST((LL<REF(LL,1)));
A:=IFELSE((HH1 < LL1),1,IFELSE((HH1 > LL1),-1,0));
AA:IFELSE(A>=0,LL,HH),COLORBLUE;
DRAWTEXT(CROSS(HH1,LL1),HH,'开空');
DRAWTEXT(CROSS(LL1,HH1),LL,'开多');
DRAWLINE(HH1>LL1,HIGH,HH1>LL1,OPEN,COLORCYAN);
DRAWLINE(HH1>LL1,LOW,HH1>LL1,CLOSE,COLORCYAN);
DRAWLINE(HH1<=LL1,HIGH,HH1<=LL1,CLOSE,COLORRED);
DRAWLINE(HH1<=LL1,LOW,HH1<=LL1,OPEN,COLORRED);
STICKLINE(HH1>LL1,OPEN,CLOSE,COLORCYAN,0);
STICKLINE(HH1<=LL1,OPEN,CLOSE,COLORRED,1); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询