九毛八公式指标
请老师帮忙把“进场线指标"中的当天突破 '进场线'做成选股指标。谢谢。 P:=9; WH1:=IF(L=LLV(L,P),L,DRAWNULL); WH2:=CONST(BARSLAST(WH1!=DRAWNULL)); WH3:=CONST(IF(WH2=0,H,REF(H,WH2))); WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1); WH5:=CONST(IF(WH4=0,H,REF(H,WH4))); WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1); WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORWHITE; STICKLINE(CURRBARSCOUNT<=WH2+1 AND L=LLV(L,P),O,C,2,0),COLORRED;{oìK} DRAWTEXT(CURRBARSCOUNT=WH2+10,WH7,''),COLORRED; DRAWTEXT(ISLASTBAR,WH7,'进场线'),COLORRED;
公式模块:
P:=9;
WH1:=IF(L=LLV(L,P),L,DRAWNULL); WH2:=CONST(BArslAST(WH1!=DRAWNULL)); WH3:=CONST(IF(WH2=0,H,REF(H,WH2))); WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1); WH5:=CONST(IF(WH4=0,H,REF(H,WH4))); WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1); WH7:=IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL); 突破进场线选股:crOSS(C,WH7);