在线检测未来函数

把函数drawnull改为大智慧能用

来源:Internet,编辑:股旁网,2012-03-29

编写要求:

股旁网解答:

 网友求助:

HH:=HHV(HIGH,XK);
LL:=LLV(LOW ,XK);
OO:=IF(XK<=1,OPEN,REF(OPEN,XK-1));
CCZ:=CLOSE;
XH:=CONST(IF(ISLASTBAR,IF(XR<=1,HH,REF(HH,XR-1)),DRAWNULL));
XL:=CONST(IF(ISLASTBAR,IF(XR<=1,LL,REF(LL,XR-1)),DRAWNULL));
XO:=CONST(IF(ISLASTBAR,IF(XR<=1,OO,REF(OO,XR-1)),DRAWNULL));
XC:=CONST(IF(ISLASTBAR,IF(XR<=1,CCZ,REF(CCZ,XR-1)),DRAWNULL));
 
解答如下:
HH:=HHV(HIGH,XK);
LL:=LLV(LOW ,XK);
OO:=IF(XK<=1,OPEN,REF(OPEN,XK-1));
CC:=CLOSE;
XH:=IF(BARSCOUNT(C),IF(XR<=1,HH,REF(HH,XR-1)),0);
XL:=IF(BARSCOUNT(C),IF(XR<=1,LL,REF(LL,XR-1)),0);
XO:=IF(BARSCOUNT(C),IF(XR<=1,OO,REF(OO,XR-1)),0);
XC:=IF(BARSCOUNT(C),IF(XR<=1,CC,REF(CC,XR-1)),0);
 

 

相关文章