编写要求:
www.gszx.com.cn网解答:
网友求助:
TIAOJIAN:=(CODELIKE('999') OR CODELIKE('399'));
HSVOL:=10000*VOL/(FINANCE(7)/100);
PVOL:=IF(TIAOJIAN,VOL,HSVOL);
开:=REF(MA(PVOL,5),2);
高:=HHV(MA(PVOL,5),3);
低:=LLV(MA(PVOL,5),3);
收:=MA(PVOL,5);
DRAWKLINE(高,开,低,收);
MA5:MA(收,5),COLORWHITE;
MA20:MA(收,20),COLORMAGENTA;
UP:MA(MA(PVOL,5),21)+2*STD(MA(PVOL,5),21) COLORGREEN;
DOWN:MA(MA(PVOL,5),21)-2*STD(MA(PVOL,5),21) COLORRED;
要求;布林收口,公式中20日均量线走平或上翘;谢谢!!
解答如下:
TIAOJIAN:=(CODELIKE('999') OR CODELIKE('399'));
HSVOL:=10000*VOL/(FINANCE(7)/100);
PVOL:=IF(TIAOJIAN,VOL,HSVOL);
收:=MA(PVOL,5);
MA20:=MA(收,20);
UP:=MA(MA(PVOL,5),21)+2*STD(MA(PVOL,5),21) ;
DOWN:=MA(MA(PVOL,5),21)-2*STD(MA(PVOL,5),21) ;
UP/DOWN=LLV(UP/DOWN,10) AND REF(MA20,2)>REF(MA20,1) AND MA20>REF(MA20,1);