在线检测未来函数

通达信横行天下主图指标公式

来源:Internet,编辑:股旁网,2024-09-06

VAR1:=LOW>(REF(HIGH,1)+0.001);
VAR2:=BARSLAST(VAR1);
VAR3:=COUNT(L>REF(H,VAR2+1),VAR2+1)=VAR2+1;
VAR4:=crOSS(BACKSET(VAR3>0 AND ISLASTBAR,VAR2+1),0.5);
VAR5:=BARSLAST(VAR4);
VAR6:=IF(CURRBARSCOUNT<=CONST(VAR5+1),CONST(LLV(L,VAR5+1)),DRAWNULL);
VAR7:=IF(CURRBARSCOUNT<=CONST(VAR5+1),REF(H,VAR5+1),DRAWNULL);
VAR8:=MA(vol,10);
VAR9:=(VOL-VAR8)/VAR8*100;
VAR10:=VAR9-REF(VAR9,1);
VAR11:=CLOSE>REF(CLOSE,1) AND CLOSE<OPEN;
VAR12:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR13:=VOL>REF(VOL,1)*1.69 AND VOL>REF(HHV(VOL,20),1);
VAR14:=(HIGH-LOW)/REF(CLOSE,1)*100;
VAR15:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR16:=CLOSE/REF(CLOSE,1)>1.06;
VAR17:=EVERY(VAR16,3) OR EVERY(VAR16,2);
VAR18:=REF(VAR17,1) AND VAR13;
VAR19:=VAR17 AND VAR13;
VAR20:=VAR17 AND VAR10>REF(HHV(VAR10,20),1);
VAR21:=REF(EVERY(VAR16,2),1) AND VAR14>15 AND VAR15>0.5 AND VAR13;
VAR22:=VAR12>=6 AND VAR11 AND REF(EVERY(VAR16,2),1) AND VAR13;
VAR23:=VAR19 OR VAR18 OR VAR20 OR VAR21 OR VAR22;
VAR24:=FILTER(VAR23,2);
VAR25:=BARSLAST(VAR24);
VAR26:=BARSLAST(CROSS(CLOSE,REF(CLOSE,VAR25)));
VAR27:=VAR26>0 AND COUNT(MAX(C,O)>REF(C,VAR25),VAR26)=VAR26 AND VAR26<20 AND C/REF(C,1)>1.085;
VAR28:=FILTER(VAR27>0,10);
VAR29:=FILTER(VAR25>1 AND COUNT(MAX(C,O)>REF(C,VAR25),VAR25)=VAR25 AND VAR25<20 AND C/REF(C,1)>1.085,10);
VAR30:=VAR28 OR VAR29;
VAR31:=VOL/REF(MA(VOL,5),1);
VAR32:=AMOUNT>=REF(AMOUNT,1)*1.9 AND (IF(C<O,C>REF(C,1),1));
VAR38:=AMOUNT=HHV(AMOUNT,120),COLORRED;
VAR39:=VAR38 AND VAR32 AND VAR31>2 AND (BARSCOUNT(C)+1)>120;
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORMAGENTA;
MA60:MA(CLOSE,60),COLORGREEN;
MA120:MA(CLOSE,120),COLORGRAY;
强弱:EMA(COST(85),10),COLORRED,DOTLINE;
分界:EMA(COST(99),10),COLORGREEN,DOTLINE;
量王1:DRAWLINE(VAR39,H,REF(VAR39,1),REF(H,1),1),COLOR0066BB;
量王2:DRAWLINE(VAR39,L,REF(VAR39,1),REF(L,1),1),COLORGREEN;
加仓:VAR30>0,COLORYELLOW,NODRAW;
做多:CROSS(MA(CLOSE,1),分界) AND 分界/REF(分界,1)>1.001,COLORRED,NODRAW;
STICKLINE(VAR39,CLOSE,OPEN,0.1,0),COLORGREEN;
DRAWBAND(强弱,RGB(80,00,20),分界,RGB(60,60,18));
STICKLINE(CURRBARSCOUNT<=CONST(VAR5+1),VAR6,VAR7,5,0),COLORGRAY;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWICON(加仓,LOW*0.99,23);
DRAWICON(做多,LOW*0.99,42);

通达信横行天下主图指标公式

相关文章