文华财经期货软件指标公式源码赢顺云指标压力支撑多空指标

合集下载

文华财经压力与支撑指标文华财经指标公式源码赢顺云期货软件指标

文华财经压力与支撑指标文华财经指标公式源码赢顺云期货软件指标

AMOUNT:=AVPRICE*V;A:=AMOUNT/V/100;VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);QQ:=EMA(((VARA/10)+EMA(A,13)),0);行情线:=MA(A,1);重心:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382; 【操盘线】:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK4;【黄金线】:IF(重心>=【操盘线】,【操盘线】,NULL),COLORRED,LINETHICK2; 【空仓线】:IF(重心<【操盘线】,【操盘线】,NULL),COLORCYAN,LINETHICK2; DRAWTEXT(ISLASTBAR,【操盘线】,'【操盘线】'),COLORRED;变:EMA(CLOSE,5),LINETHICK2,COLORYELLOW;金:IF(变>REF(变,1),变,NULL),COLORRED,LINETHICK2;空:IF(变<REF(变,1),变,NULL),COLORGREEN,LINETHICK2;DRAWTEXT(ISLASTBAR,变,'【钻石】'),COLORRED;{顶底信号}辅助线:MA(C,8),COLORMAGENTA,LINETHICK1;上升:IF(辅助线>REF(辅助线,1),辅助线,NULL),COLORMAGENTA,LINETHICK2;下降:IF(辅助线<REF(辅助线,1),辅助线,NULL),COLORGRAY,LINETHICK1;DA:=(EMA(H,1)+EMA(L,1)+EMA(H,1)+EMA(H,1))/4,LINETHICK2;DB:=EMA(REF(HHV(H,25),1),2),COLORGREEN,LINETHICK1;DRAWICON(CROSS(DA,【操盘线】) AND DA>REF(DA,2),【操盘线】,9);{涨跌停显示}涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);STICKLINE(涨停,O,C,1,0),COLORYELLOW;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF<-9.9,O,C,1,0),COLORBLUE;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100; VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)<=REF(ZIGZAG(C,6,1),3);VAR12:=ZIGZAG(C,6,1)=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),3); VAR13:=ZIGZAG(C,22,1)>REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)<=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)<=REF(ZIGZAG(C,22,1),3);VAR14:=ZIGZAG(C,22,1)=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),3);VAR15:=ZIGZAG(C,51,1)>REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)<=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)<=REF(ZIGZAG(C,51,1),3);VAR16:=ZIGZAG(C,51,1)=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),3);VAR17:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);VAR18:=ZIGZAG(C,72,1)=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0 OR 买2>0,LOW*0.99,NULL),CROSSDOT,LINETHICK3,COLORYELLOW;S:IF(卖1>0,HIGH*1.01,NULL),CROSSDOT,LINETHICK3,COLORGREEN;VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,NULL),CROSSDOT,LINETHICK3,COLORFF00FF;DRAWTEXT(CROSS(S,卖1),S*1.02,'逃'),COLORWHITE,LINETHICK1;DRAWTEXT(CROSS(B,买1),B*0.98,'←准备'),COLORRED,LINETHICK1;{价:}PH:=TROUGHBARS(H,5,1,1);LL:=HHV(H,PH);TJ1:=LL=HIGH AND LL<REF(LL,1);//=1}TS:=SUMBARS(TJ1,2);TJ:=PEAKBARS(H,5,1,1)=1 AND TS>=PH;DRAWICON(TJ,HIGH*1.03,2);DRAWICON(TJ,HIGH*1.008,15);PL:=BARSLAST(TJ);支撑:IF(BARSLAST(TJ1),REF(LOW,BARSLAST(TJ1)),NULL),COLOREA91B5;压力:IF(BARSLAST(TJ),REF(HIGH,PL),NULL),COLORYELLOW; TJ_2:=LOW>REF(REF(LOW,TS),PL);DRAWTEXT(ISLASTBAR,压力,'压力'),COLORYELLOW; DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLOREA91B5;。

文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi vol obv bias ddx ddy

文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi vol obv bias ddx ddy

F1:=ZIGZAG(C,16,1);VERTLINE(F1<REF(F1,1),2),COLORAA8800;DRAWICON(CROSS(ZIGZAG(C,10,1),REF(ZIGZAG(C,10,1),1)),LOW*0.97,7);DRAWICON(CROSS(REF(ZIGZAG(C,10,1),1),ZIGZAG(C,10,1)),HIGH*1.04,8);B:=TROUGHBARS(C,5,1,1)=0;DRAWNUMBER1(B,LOW*0.85,LOW,2);//画数字VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25); VAR2:=HIGH-REF(HIGH,1);VAR3:=REF(LOW,1)-LOW;VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);VAR6:=VAR4*100/VAR1;VAR7:=VAR5*100/VAR1;VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);VAR9:=(VAR8+REF(VAR8,15))/2;A1:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);B1:=ZIGZAG(C,51/5,1)*100,COLORWHITE;G:=MA(B1,2),COLORYELLOW;D:=CROSS(B1,G)*1000,COLORRED;W:=CROSS(G,B1)*1000,COLORBLUE;A30:=MA(C,30);ANGLEA30:=ATAN((A30/REF(A30,1)-1)*100)*57.3;ANGLE30:=ANGLEA30>40 OR ANGLEA30<-48;A10:=MA(C,10);ANGLEA10:=ATAN((A10/REF(A10,1)-1)*100)*57.3;ANGLE10:=ANGLEA10>20 OR ANGLEA10<-25 AND CLOSE>MA(CLOSE,20) ;A3010:=ANGLE30 OR ANGLE10;AAZT:=COUNT(CLOSE>REF(CLOSE,1)*1.097 ,20)>0;A:=(3*C+L+O+H)/6;DRAWTEXT(CROSS(ZIGZAG(C,5,1),REF(ZIGZAG(C,5,1),1)),LOW*0.95,'★旺财') ,LINETHICK2,COLORRED;折线:=ZIGZAG(C,20,1);前波峰值:=PEAK(C,20,1,1);前波谷值:=TROUGH(C,20,1,1);DRAWNUMBER1(折线>REF(折线,1) AND REF(折线,1)<REF(折线,2),REF(C,1),-(前波峰值-REF(C,1))/前波峰值*100,1);DRAWNUMBER1(折线<REF(折线,1) AND REF(折线,1)>REF(折线,2),REF(C,1),(REF(C,1)-前波谷值)/前波谷值*100,1);买线:=ZIGZAG(C,10,1);卖线:=MA(买线,3);支撑:=MA(REF(LLV(C,30),1),2),COLORABFF46;VARF1:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA( (CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR101:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR111:=VARF1<REF(VAR101,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);游资:=(VAR111 AND COUNT(VAR111,30)=1 AND 买线>=卖线);DRAWTEXT(游资,(支撑*0.98),'--游资进'),COLORBLUE;STICKLINE(游资,(支撑*0.96),支撑,9,0),COLORBLUE;VARDD:=(ZIGZAG(C,5,1)<REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)>=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3));波段买点:=CROSS((ZIGZAG(C,10,1)),(MA((ZIGZAG(C,10,1)),3)));DRAWTEXT(波段买点,(支撑*0.77),'--波段买'),COLOR00AAFF;STICKLINE(波段买点,(支撑*0.95),支撑,9,0),COLORRED;黑马现:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);DRAWTEXT(黑马现,(支撑*0.94),'--发现黑马'),COLORFF6600;STICKLINE(黑马现,(支撑*0.9),(支撑*0.95),9,0),COLORFF6600;机构:=((ZIGZAG(C,5,1)>REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)<=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)<=REF(ZIGZAG(C,5,1),3))=1) AND (CROSS(ZIGZAG(C,8,1),REF(ZIGZAG(C,8,1),1))) AND (CROSS(ZIGZAG(C,13,1),REF(ZIGZAG(C,13,1),1)));DRAWTEXT(机构,(L*0.67),'--机构进'),COLORYELLOW;STICKLINE(机构,(L*0.92),(L*0.98),9,0),COLORYELLOW;DRAWTEXT((VARDD=1),(H*1.1),'-卖'),COLORWHITE;STICKLINE((VARDD=1),(H*1.01),(H*1.05),9,0),COLORWHITE;奔牛:=(CROSS((3*(SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)-2*(EMA((S MA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57),5))),(SMA(SMA(((C-LLV(L,20)) /(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)) AND (SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)<2.1 AND 买线>=卖线); DRAWTEXT(奔牛,(支撑*0.99),'--奔牛'),COLORFF00FF;STICKLINE(奔牛,(支撑*0.96),(支撑),9,0),COLORFF00FF;XOPEN:=(REF(O,1)+REF(C,1))/2;XCLOSE:=CLOSE;XHIGH:=MAX(HIGH,XOPEN);XLOW:=MIN(LOW,XOPEN);VOLALITY:=MA(XHIGH-XLOW,8);凰线:=MA(XCLOSE,5)+VOLALITY/2,POINTDOT;凤线:=MA(XCLOSE,5)-VOLALITY/2,POINTDOT;BU:=CROSS(XCLOSE,凰线);SEL:=CROSS(凤线,XCLOSE);VAR1X:=BARSLAST(BU);VAR2X:=BARSLAST(SEL);DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,XLOW,7),ALIGN1,VALIGN0;DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,XHIGH,8),ALIGN1,VALIGN2;VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)<=REF(ZIGZAG(C,6,1),3);VAR12:=ZIGZAG(C,6,1)=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),3); VAR13:=ZIGZAG(C,22,1)>REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)<=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)<=REF(ZIGZAG(C,22,1),3);VAR14:=ZIGZAG(C,22,1)=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),3);VAR15:=ZIGZAG(C,51,1)>REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)<=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)<=REF(ZIGZAG(C,51,1),3);VAR16:=ZIGZAG(C,51,1)=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),3);VAR17:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);VAR18:=ZIGZAG(C,72,1)=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;买点1:=VAR10;买点2:=(VAR11+VAR13+VAR15+VAR17);VAR1Y:=MA(CLOSE,5);VAR2Y:=MA(CLOSE,10);VAR3Y:=MA(CLOSE,30);VAR4Y:=MA(CLOSE,60);VAR5Y:=EMA(COST(85),7);VAR6Y:=EMA(COST(15),7);VAR7Y:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);VAR8Y:=INTPART(VAR7Y*100)/100;VAR9Y:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);VARAY:=INTPART(VAR9Y*100)/100;VARBY:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);VARCY:=INTPART(VARBY*100)/100;VARDY:=EMA(CLOSE,5)-EMA(CLOSE,10);VAREY:=EMA(VARDY,9);VAR13Y:=REF(VAREY,1);VAR14Y:=VAREY;VAR15Y:=VAR14Y-VAR13Y;VAR16Y:=REF(VARDY,1);VAR19Y:=OPEN;买点3:=IF(VAR19Y<=VAR1Y AND VAR19Y<=VAR2Y AND VAR19Y<=VAR3Y AND VARAY>=VAR1Y AND VARAY>=VARCY AND VAR15Y>0 AND VAR8Y>0,0.5,0);VERTLINE1(买点3>0 OR 买点1>0 OR 买点2>0),COLOR0000FF;。

文华财经指标公式源码期货波段多空点指标期货软件指标

文华财经指标公式源码期货波段多空点指标期货软件指标

股价趋势:=((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1),3,1)));底部警戒:=10;STICKLINE((股价趋势<= 10),0,20,2,0),LINETHICK2,COLORYELLOW;STICKLINE(CROSS(股价趋势,底部警戒),0,30,3,0),COLORWHITE;顶部警戒:=90;STICKLINE((股价趋势>= 85),100,80,2,0),LINETHICK2,COLOR66FF00;STICKLINE(CROSS(顶部警戒,股价趋势),130,90,3,0),LINETHICK5,COLORFF3300;QQQ:=CROSS(顶部警戒,股价趋势);多方趋势线:(((7 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 30),4,1))- (3 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 30),4,1),3,1)))- SMA(SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 30),4,1),3,1),2,1)),COLOR8811FF,LINETHICK2;主升线:=14;天线:=78.89;抄底:=CROSS(多方趋势线,主升线);逃顶:=CROSS(天线,多方趋势线);DRAWICON(抄底,多方趋势线,5);DRAWICON(逃顶,110,6);VARX:=((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1))- (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1),3,1))); 股价启动在即:=IF(CROSS(VARX,3),100,0);捕食秘密买点:=IF((VARX <= 3),25,0);建增补仓:IF((VARX < 5),100,0),COLORRED;VAR21:=REF(CLOSE,1);VAR22:=((SMA(MAX((CLOSE - VAR21),0),6,1) / SMA(ABS((CLOSE - VAR21)),6,1)) * 100);短顶部:(CROSS(80,VAR22) * 160),COLORWHITE;DRAWTEXT(CROSS(80,VAR22),150,'★见顶'),COLORWHITE;VAR31:=((SMA(MAX((CLOSE - VAR21),0),7,1) / SMA(ABS((CLOSE - VAR21)),7,1)) * 100); VAR41:=((SMA(MAX((CLOSE - VAR21),0),13,1) / SMA(ABS((CLOSE - VAR21)),13,1)) * 100); VAR51:=BARSCOUNT(CLOSE);短底部:=(((VAR31 < 20) AND (VAR41 < 25)) AND (VAR51 > (50 * 300)));DRAWTEXT(CROSS(100,短底部),40,'☆短底');VAR441:=((LLV(LOW,5) = LLV(LOW,45)) AND (CLOSE >= (OPEN * 1.04)));VAR442:=(CLOSE > ((REF(HIGH,1) + REF(LOW,1)) / 2));红灯:=(VAR441 AND VAR442);VAR33:=REF(CLOSE,1);VAR43:=((SMA(MAX((CLOSE - VAR33),0),6,1) / SMA(ABS((CLOSE - VAR33)),6,1)) * 100);绿灯:=CROSS(80,VAR43);VAR2:=REF(LOW,1);VAR3:=((SMA(ABS((LOW - VAR2)),3,1) / SMA(MAX((LOW - VAR2),0),3,1)) * 100);VAR4:=EMA(IF((CLOSE * 1.2),(VAR3 * 10),(VAR3 / 10)),3);VAR5:=LLV(LOW,38);VAR6:=HHV(VAR4,38);VAR7:=IF(LLV(LOW,90),1,0);VAR8:=((EMA(IF((LOW <= VAR5),((VAR4 + (VAR6 * 2)) / 2),0),3) / 618) * VAR7); STICKLINE(VAR8,0,VAR8,6,1),COLORFFFF66;XL1:=(MA(LOW,2) * 0.96);XL2:=(MA(LOW,26) * 0.85);XL3:=(((REF(XL1,1) < XL2) AND (REF(XL1,1) < XL1)) AND (REF(XL1,1) < REF(XL1,2))); STICKLINE(XL3,0,(VAR8 * 2),6,0),COLORFF00CC;DRAWICON(XL3,40,25),COLORFF99CC;DRAWICON(红灯,1.1,9);DRAWICON(绿灯,80,15);VAR11:=(CLOSE+LOW+HIGH)/3;VAR12:=SUM(((VAR11-REF(LOW,1))-(HIGH-VAR11))*VOL/100000/(HIGH-LOW),0);VAR13:=EMA(VAR12,1);JCS:VAR13; JCM:MA(VAR13,12); JCL:MA(VAR13,26);。

文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标

文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标

N:=5;WY:EMA(C,12),LINETHICK2,COLORYELLOW;VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;VAR3:=CROSS(69,VAR2);VARA:=FILTER(VAR3,4);DRAWICON(VARA,HIGH*1.035,2);DRAWTEXT(VARA,HIGH*1.04,'卖出'),COLORGREEN;缩量:=V<REF(V,1);新高:=C=HHV(C,20);下跌:=LLV(C,3)*1.04<HHV(C,10);回调:=BARSLASTCOUNT(缩量)>3 ANDEXIST(新高,8) AND 下跌AND C>MA(C,60) AND O<MA(C,20);DRAWTEXT(回调,LOW*1.04,'补仓'),COLORYELLOW;VAR4:=REF(CLOSE,1);VAR5:=SMA(MAX(CLOSE-VAR4,0),6,1)/SMA(ABS(CLOSE-VAR4),6,1)*100;ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;DRAWTEXT(VAR5>REF(VAR5,1) AND VAR5>80 AND ROC<REF(ROC,1),HIGH*1.04,'风险'),COLORBLUE;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;G1:=C<REF(C,1) AND (REF(C,1)<REF(C,2)) AND (REF(C,2)<REF(C,3));MA45:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,4);J5:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,5);MA4:=MA((MA45+J5)/2,1);SSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;KKK:=SMA(SSV,3,1);H1:=EMA(EMA(LLV(J5,15),2),2);YY4:=LLV(C,5)*1.15<HHV(C,15)AND LOW<H1 AND KKK<20AND VOL/MA(V,10)<1.4AND CLOSE/REF(CLOSE,1)>1.02AND COUNT(G1,6)>=1AND CLOSE>OPEN;CAPITAL:=GETPRICE1('流通股本');大盘股:=SUM(REF(V,1),8)/CAPITAL<15/100;中盘股:=SUM(REF(V,1),8)/CAPITAL<25/100;小盘股:=SUM(REF(V,1),8)/CAPITAL<30/100;大盘股1:=SUM(REF(V,1),5)/CAPITAL<10/100;中盘股1:=SUM(REF(V,1),5)/CAPITAL<14/100;小盘股1:=SUM(REF(V,1),5)/CAPITAL<15/100;DP:=CAPITAL>2500000;ZP:=CAPITAL>600000 AND CAPITAL<2500000;XP:=CAPITAL<600000;综合:=IF(DP=1,大盘股,IF(ZP=1,中盘股,小盘股));综合1:=IF(DP=1,大盘股1 ,IF(ZP=1,中盘股1,小盘股1));振幅:=(REF(HHV(C,5),1)-REF(LLV(C,5),1))/REF(LLV(C,5),1)<5.3/100;涨幅:=CLOSE/REF(C,1)>=1.048;JX3:=V/MA(V,10);YY3:=振幅AND ( 涨幅) AND C=HHV(C,5) AND 综合 1 AND 综合AND JX3<1.8 AND HHV(H,20)/C>1.04 ;买入:=YY4 OR YY3 ;DRAWTEXT(买入,LOW*1.01,'买入'),COLORRED;BB:=C/HHV(C,5)<1.15;下:=C<REF(C,1);YF:=LAST(下,4,1) AND COUNT(C<REF(C,1)*0.95,5)>=2AND (C>REF(C,1) OR C/O>1.035 OR (O/L>0.03 AND C>O))AND BB AND (C-L)/C>0.02 AND J<0 AND (H-C)<(C-O);YF1:=COUNT(下,5)>=3 AND COUNT(C<REF(C,1)*0.95,6)>=3AND C*1.15<HHV(C,5) AND C>REF(C,1)AND C>O AND J<2;A44:=V<REF(V,1)*2.8 AND COUNT(C<O*0.95,2)=2;A55:=((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND A44;A6:=FILTER(A55,1);YF2:=A6 AND BB AND H>REF(L,1);二档:=YF OR YF1 OR YF2;DRAWTEXT(二档,LOW*1.01,'二档'),COLORMAGENTA; INDEXC:="999300$C";TQ1:=(INDEXC-MA(INDEXC,58))/MA(INDEXC,58)<-0.152; TQ2:=(C-EMA(C,58))/EMA(C,58)<-0.19;买1:=TQ2 AND TQ1;T4:=(C-MA(C,2))/MA(C,2)*100;T5:=INDEXC;T6:=MA(T5,13);T7:=T6>1.050*T5;T8:=(C-REF(C,26))/REF(C,26)*10;T9:=T7;T10:=T8<-2.30 ;T11:=T4<-2.7 ;T12:=T9 AND T10 AND T11 ;T13:=CROSS(0.5,T12);T14:=CROSS(T13,0.5);T15:=BARSLAST(T14=1);T16:=T15<=5 AND C<REF(C,T15) ;买2:=T13 OR T16;T17:= (C-MA(C,2))/MA(C,2)*100;T18:=INDEXC;T19:=MA(T18,56);T20:=T18/T19<0.94;T21:=(C-REF(C,26))/REF(C,26)*10;T22:=T20;T23:=T21<-2.55;T24:=T17<-2.7;T25:=T22 AND T23 AND T24;T26:=CROSS(0.5,T25);T27:=CROSS(T26,0.5);T28:=BARSLAST(T27=1);T29:=T28<=5 AND C<1.02*REF(C,T28);底4:=T26 OR T29;T30:= (C-MA(C,2))/MA(C,2)*100;T31:=INDEXC;T32:=MA(T31,13);T33:=T32>1.050*T31;T34:=(C-REF(C,26))/REF(C,26)*10;T35:=T33;T36:=T34<-2.69;T37:=T30<-3.09;T38:=T35 AND T36 AND T37;T39:=CROSS(0.5,T38);T40:=CROSS(T39,0.5);T41:=BARSLAST(T40=1);T42:=T41<=5 AND C<REF(C,T41);买3:=COUNT(T39 OR T42,4)=4;T43:=EMA(((C*1.1-LLV(LOW,630))/(HHV(HIGH,630)-LLV(LOW,630))-(C*0.9-LLV(LOW,630))/(HHV(HI GH,630)-LLV(LOW,630)))*80,5);T44:=INDEXC;T45:=MA(T44,5);T46:=MA(T44,20);T47:=MA(T44,30);T48:=T45>T44*1.03 AND T46>T44*1.13;T49:=T48;目标:=COUNT(T43<6 AND T49,3)>=3;新目标:=买3 OR 目标;WYY:=((COUNT(买1 AND 底4,6)=6 OR COUNT(买1 AND 买2,4)=4 OR COUNT(买2 AND 底4,5)=5) OR 新目标)AND C<MA(C,3) AND O<MA(C,3) ;三档:=WYY;DRAWTEXT(三档,LOW*1.01,'三档'),COLORMAGENTA;AMOUNT:=AVPRICE*V;VARQ1:=AMOUNT/VOL/14;VARQ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/14;VARQ3:=SUM(AMOUNT,N)/VARQ1/14;VARQ4:=DMA(VARQ2,VOL/VARQ3);抄底:=(CLOSE-VARQ4)/VARQ4*100;AAQ:=O>MA(C,5) OR O<MA(C,3);BBQ:=(H-O)<(O-C)/2;CCQ:=(O-C)/O>7/100;WY7:=CROSS(-1.65,抄底) AND AAQ AND BBQ AND CCQ;四档:=WY7;DRAWTEXT(四档,LOW*1.01,'四档'),COLORMAGENTA;。

文华财经指标文华财经期货软件指标压力支撑指标公式源码

文华财经指标文华财经期货软件指标压力支撑指标公式源码

/*MA5:MA(C,5)LINETHICK3,COLOR00CCFF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORGREEN;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) ANDMA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB5,60),10);加仓:=FILTER(COUNT(CROSS(BB5,30),5)>=1 AND MA5>REF(MA5,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1),10);清仓:=FILTER(COUNT(CROSS(30,BB5),5)>=1 AND (C>MA30 OR O>MA30) ANDMA5<REF(MA5,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10<REF(MA10,1),10);DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1)AND MA5>REF(MA5,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;买入:=FILTER(MR,10);MA5:MA(C,5)LINETHICK3,COLOR00CCFF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORGREEN;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) ANDMA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB5,60),10);加仓:=FILTER(COUNT(CROSS(BB5,30),5)>=1 AND MA5>REF(MA5,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1),10);清仓:=FILTER(COUNT(CROSS(30,BB5),5)>=1 AND (C>MA30 OR O>MA30) ANDMA5<REF(MA5,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10<REF(MA10,1),10);DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA5>REF(MA5,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(强势狙击,LOW*0.95,'←狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(强势狙击,LOW*0.95,'←狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;*/VAR1:=(LOW+HIGH+CLOSE+O)/4;操作:MA(VAR1,5),COLOR00FFFF,LINETHICK2;拉升:HHV(操作,13),COLORFF00FF;买卖:LLV(操作,13),COLOR00FFFF;压力:HHV(操作,60),COLORFF6600;支撑:LLV(LOW,60)*1.02,COLOR00FF00,LINETHICK2;顶部:HHV(HIGH,60)*0.98,COLORFFFF00,LINETHICK2;涨:IF(MA(VAR1,5)>REF(MA(VAR1,5),1),MA(VAR1,5),NULL),COLORRED,LINETHICK2;平:IF(MA(VAR1,5)=REF(MA(VAR1,5),1),MA(VAR1,5),NULL),COLOR00FFFF,LINETHICK3;跌:IF(MA(VAR1,5)<REF(MA(VAR1,5),1),MA(VAR1,5),NULL),COLORGREEN,LINETHICK2; DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,30),L,'★<--极品绝底'), LINETHICK1;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD:=2*(DIFF-DEA),COLORSTICK;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;DRAWTEXT(REF(C,BARSLAST(REF(CROSS(DIFF,DEA),1))+1)>C AND REF(DIFF,BARSLAST(REF(CROSS(DIFF,DEA),1))+1)<DIFF AND CROSS(DIFF,DEA)>0,L-0.02,'★M'),COLOR00FFFF;DRAWTEXT(REF(C,BARSLAST(REF(CROSS(K,D),1))+1)>C AND REF(K,BARSLAST(REF(CROSS(K,D),1))+1)<K AND CROSS(K,D),L-0.10,'◎K'),COLORFF00FF; DRAWTEXT(REF(C,BARSLAST(REF(CROSS(RSI1,RSI2),1))+1)>C AND REF(RSI1,BARSLAST(REF(CROSS(RSI1,RSI2),1))+1)<RSI1 AND CROSS(RSI1,RSI2)>0,L-0.18,'◆R'),COLOR0000FF;DRAWTEXT(REF(C,BARSLAST(REF(CROSS(DEA,DIFF),1))+1)<C AND REF(DIFF,BARSLAST(REF(CROSS(DEA,DIFF),1))+1)>DIFF AND CROSS(DEA,DIFF)>0,H+0.16,'★M'),COLOR00FF00;DRAWTEXT(REF(C,BARSLAST(REF(CROSS(D,K),1))+1)<C ANDREF(K,BARSLAST(REF(CROSS(D,K),1))+1)>K AND CROSS(D,K)>0,H+0.08,'◎K'),COLORFFFFCC; DRAWTEXT(REF(C,BARSLAST(REF(CROSS(RSI2,RSI1),1))+1)<C AND REF(RSI1,BARSLAST(REF(CROSS(RSI2,RSI1),1))+1)>RSI1 AND CROSS(RSI2,RSI1)>0,H+0.04,'◆R'),COLORFF9900;。

期货多空进出场指标公式文华财经指标公式期货软件指标公式赢顺云指标

期货多空进出场指标公式文华财经指标公式期货软件指标公式赢顺云指标

JRH:=HHV(C,2);JRL:=LLV(C,2);VAR01:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR02:=(REF(VAR01,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR03:=(REF(VAR02,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR04:=(REF(VAR03,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR05:=(REF(VAR04,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR06:=(REF(VAR05,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR07:=(REF(VAR06,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR08:=(REF(VAR07,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR09:=(REF(VAR08,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR09,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR010:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR011:=(REF(VAR010,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR012:=(REF(VAR011,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR013:=(REF(VAR012,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR014:=(REF(VAR013,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR015:=(REF(VAR014,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR016:=(REF(VAR015,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR017:=(REF(VAR016,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR018:=(REF(VAR017,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR01);VAR1A:=((REF(VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,1)) AND VARD);/*明离场价:=离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1),COLOR0000FF,NODRAW;明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORGREEN,NODRAW;上涨家数:INDEXADV,COLOR0080FF,NODRAW;下跌家数:INDEXDEC,COLORGREEN,NODRAW;*/操盘线:EMA(C,160),COLORYELLOW,LINETHICK2;升:IF(操盘线>REF(操盘线,1),操盘线,NULL),COLORRED,LINETHICK2;降:IF(操盘线<REF(操盘线,1),操盘线,NULL),COLOR009300,LINETHICK2;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;ME2:=EMA(CLOSE,6);五天:=EMA(CLOSE,5),COLORRED;超短线:=EMA(ME2,11),COLORGREEN;LJL07:=(3*C+L+O+H)/6;牛线:=(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(LJL07,4)+15*REF(LJL0 7,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*R EF(LJL07,11)+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,1 6)+3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;熊线:=MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;持股:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORWHITE;{趋势}赚了:=IF(EMA(CLOSE,3)>超短线,超短线,NULL),COLORRED;持股角度:=ATAN((持股/REF(持股,1)-1)*100)*180/3.1416,COLORRED,NODRAW;月线:=EMA(持股,30),COLORYELLOW,DOT;双月线:=EMA(持股,60),COLORCYAN,DOT;/*//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (PDI>MDI) AND UPNDAY(ADXR,1) AND (ADX>ADXR),0.460,0.26,0,'DMI 火箭升空'),COLOR8080FF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (PDI<MDI) AND UPNDAY(ADXR,1) AND (ADX>ADXR),0.460,0.26,0,'DMI 空中炸弹'),COLORGREEN;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (PDI>MDI),0.460,0.21,0,'DMI 多头趋势'),COLOR8080FF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (PDI<MDI),0.460,0.21,0,'DMI 空头趋势'),COLORGREEN;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS(J,K),0.460,0.31,0,'K D J 金叉'),COLOR8080FF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS(K,J),0.460,0.31,0,'K D J 死叉'),COLORGREEN;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (J>K),0.460,0.36,0,'K D J 多头趋势'),COLOR8080FF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (J<K),0.460,0.36,0,'K D J 空头趋势'),COLORGREEN; //DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (DIFF>DEA) AND MACD>0,0.460,0.41,0,'MACD 中线看多'),COLOR8080FF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (DIFF<DEA) AND MACD<0,0.460,0.41,0,'MACD 中线看空'),COLORGREEN;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (DIFF>DEA),0.460,0.46,0,'MACD 多头趋势'),COLOR8080FF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (DIFF<DEA),0.460,0.46,0,'MACD 空头趋势'),COLORGREEN;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS(DIFF,DEA),0.460,0.51,0,'MACD 金叉'),COLOR8080FF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS(DEA,DIFF),0.460,0.51,0,'MACD 死叉'),COLORGREEN;*/CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1;/*上涨:=CURRBARSCOUNT=1 AND 双月线>REF(双月线,1) AND 月线>REF(月线,1) AND 超短线>REF(超短线,1) AND 持股>REF(持股,1);//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 上涨,0.460,0.15,0,'上涨趋势'),COLORFF00FF;短线上涨:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);短线上涨0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);短线上涨1:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线上涨OR 短线上涨0 OR 短线上涨1),0.460,0.15,0,'短线上涨'),COLOR8080FF;短线回调:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);短线回调0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线回调OR 短线回调0),0.460,0.15,0,'短线回调'),COLORYELLOW;短线看空:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);短线看空0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);短线空仓:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);短线空仓0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线空仓OR 短线空仓0 OR 短线看空OR 短线看空0),0.460,0.15,0,'短线空仓'),COLORYELLOW;短线震荡:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) ANDUPNDAY(超短线,1) AND DOWNNDAY(持股,1);短线震荡0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);短线震荡1:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);注意该股:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线震荡OR 短线震荡0 OR 短线震荡1 OR 注意该股),0.460,0.15,0,'短线震荡'),COLORYELLOW;短线反弹:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);短线反弹0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线反弹OR 短线反弹0),0.460,0.15,0,'短线反弹'),COLORYELLOW;//DRAWTEXT_FIX(CURRBARSCOUNT=1 ,0.360,0.09,0,'◆今日操作提示◆')COLORFFFFFF; //DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (MACD>0) AND (CROSS(DIFF,DEA) OR CROSS(持股,超短线)) AND UPNDAY(超短线,1),0.55,0.09,0,' 决策:中线全仓买入◆'),COLORFFFFFF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (MACD<0) AND (CROSS(DEA,DIFF) OR CROSS(超短线,持股)) AND DOWNNDAY(超短线,1),0.55,0.09,0,' 决策:中线空仓◆'),COLORFFFFFF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1),0.55,0.09,0,' 决策:短线空( 减) 仓◆'),COLORFFFFFF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1),0.55,0.09,0,' 决策:短线买入30 % ◆'),COLORFFFFFF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND UPNDAY(超短线,1) AND UPNDAY(持股,1),0.55,0.09,0,' 决策:短线买入60 % ◆'),COLORFFFFFF;//DRAWTEXT_FIX(CURRBARSCOUNT=1 AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1),0.55,0.09,0,' 决策:短线震荡看看再说◆'),COLORFFFFFF;*/均价:=(3*C+H+L+O)/6;VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND CLOSE>VAR2 AND CLOSE<VAR1;SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1)AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<REF(VAR1,1)AND VAR2<REF(VAR2,1) AND CLOSE<VAR2);SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1)AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE<VAR2);XD2:=VAR1=VAR2 AND CLOSE>VAR1;SAT:=(OPI/C)/(HHV(OPI,20)/HHV(C,20));量能饱和度:=IF(SAT>1,1,SAT)*100;//DRAWTEXT_FIX(BARSTATUS=2 AND SZ1,0.8,0.05,0,'调整结束短线介入'),COLOR00FFFF;//DRAWTEXT_FIX(BARSTATUS=2 AND SZ2,0.8,0.05,0,'上升通道走势良好'),COLOR00FFFF;//DRAWTEXT_FIX(BARSTATUS=2 AND SZ3,0.8,0.05,0,'股价偏离注意调整'),COLOR00FFFF;//DRAWTEXT_FIX(BARSTATUS=2 AND SZ4,0.8,0.05,0,'上升通道调整洗盘'),COLOR00FFFF;//DRAWTEXT_FIX(BARSTATUS=2 AND SZ5,0.8,0.05,0,'转向特征注意离场'),COLORFFFF00;//DRAWTEXT_FIX(BARSTATUS=2 AND SZ6,0.8,0.05,0,'通道改变坚决离场'),COLORFFFF00;//DRAWTEXT_FIX(BARSTATUS=2 AND XD1,0.8,0.05,0,'下跌通道只宜观望'),COLORFFFF00;//DRAWTEXT_FIX(BARSTATUS=2 AND XD2,0.8,0.05,0,'短期底部准备进入'),COLORYELLOW;S:=C-REF(C,1);DX:=100*EMA(EMA(S,6),6)/EMA(EMA(ABS(S),6),6);DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;YC:=REF(CLOSE,1);止损价位:=(YC*1.0035*97+0.2)/99.65;/*//DRAWTEXT_FIX(C<>0,0.02,0.05,0,'☆===== ☆'),COLORRED;//DRAWTEXT_FIX(C<>0,0.02,0.1,0,'操'),COLORFFFF00;//DRAWTEXT_FIX(C<>0,0.02,0.15,0,'盘'),COLORFFFF00;//DRAWTEXT_FIX(C<>0,0.02,0.2,0,'铁'),COLORFFFF00;//DRAWTEXT_FIX(C<>0,0.02,0.25,0,'律'),COLORFFFF00;//DRAWTEXT_FIX(C<>0,0.02,0.3,0,'☆================== ☆'),COLORRED;//DRAWTEXT_FIX(C<>0,0.05,0.1,0,' . '),COLOR00FFFF;//DRAWTEXT_FIX(C<>0,0.05,0.15,0,' '),COLOR00FFFF;//DRAWTEXT_FIX(C<>0,0.05,0.2,0,STRCAT('止损价位',STRCAT(CON2STR(止损价位,2),' 元'))),COLOR00FFFF;//DRAWTEXT_FIX(C<>0,0.05,0.25,0,'五二零线买入条件2:30以后波段操作'),COLOR00FFFF;*/E:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日阻力:2*E-LOW,NODRAW;明日支撑:2*E-HIGH,NODRAW;明日突破:E+(HIGH-LOW),NODRAW;明日反转:E-(HIGH-LOW),NODRAW;今日阻力:REF(明日阻力, 1),NODRAW;今日支撑:REF(明日支撑, 1),NODRAW;/*//DRAWTEXT_FIX(C<>0,0.02,0.35,0,STRCAT('今日阻力:',STRCAT(CON2STR(今日阻力,2),' 元'))),COLORFFFF00;//DRAWTEXT_FIX(C<>0,0.02,0.40,0,STRCAT('今日支撑:',STRCAT(CON2STR(今日支撑,2),' 元'))),COLOR8E8EFF;//DRAWTEXT_FIX(C<>0,0.02,0.45,0,STRCAT('明日突破:',STRCAT(CON2STR(明日突破,2),' 元'))),COLORFFFFFF;//DRAWTEXT_FIX(C<>0,0.02,0.50,0,STRCAT('明日阻力:',STRCAT(CON2STR(明日阻力,2),' 元'))),COLORFFFF00;//DRAWTEXT_FIX(C<>0,0.02,0.55,0,STRCAT('明日支撑:',STRCAT(CON2STR(明日支撑,2),' 元'))),COLOR8E8EFF;//DRAWTEXT_FIX(C<>0,0.02,0.60,0,STRCAT('明日反转:',STRCAT(CON2STR(明日反转,2),' 元'))),COLORYELLOW;//DRAWTEXT_FIX(C<>0,0.02,0.65,0,'☆================== ☆'),COLORRED;*/买线:=ZIGZAG(C,10,1);卖线:=MA(买线,3);支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;VARF1:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA( (CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR101:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR111:=VARF1<REF(VAR101,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);游资:=(VAR111 AND COUNT(VAR111,30)=1 AND 买线>=卖线);DRAWTEXT(游资,(支撑*0.98),'--游资进'),COLORBLUE;STICKLINE(游资,(支撑*0.96),支撑,9,0),COLORBLUE;VARDD:=(ZIGZAG(C,5,1)<REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)>=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3));波段买点:=CROSS((ZIGZAG(C,10,1)),(MA((ZIGZAG(C,10,1)),3)));DRAWTEXT(波段买点,(支撑*0.77),'--波段买'),COLOR00AAFF;STICKLINE(波段买点,(支撑*0.95),支撑,9,0),COLORRED;STICKLINE(CROSS(买线,卖线),O,C,9,0),COLOR00AAFF;STICKLINE(买线<卖线,H,L,0,0),COLORGREEN;STICKLINE(买线<卖线,C,O,9,0),COLOR007700;STICKLINE(买线<卖线,C,O,8,0),COLOR008E00;STICKLINE(买线<卖线,C,O,7,0),COLOR009900;STICKLINE(买线<卖线,C,O,6,0),COLOR00A600;STICKLINE(买线<卖线,C,O,5,0),COLOR00B500;STICKLINE(买线<卖线,C,O,4,0),COLOR00C600;STICKLINE(买线<卖线,C,O,3,0),COLOR00D500;STICKLINE(买线<卖线,C,O,2,0),COLOR00E600;STICKLINE(买线>=卖线,H,L,0,0),COLOR0000FF;STICKLINE(买线>=卖线,C,O,9,0),COLOR0000A3;STICKLINE(买线>=卖线,C,O,8,0),COLOR0000B7;STICKLINE(买线>=卖线,C,O,6,0),COLOR0000C8;STICKLINE(买线>=卖线,C,O,5,0),COLOR0000D9;STICKLINE(买线>=卖线,C,O,4,0),COLOR0000CD;STICKLINE(买线>=卖线,C,O,3,0),COLOR0000E9;STICKLINE(买线>=卖线,C,O,2,0),COLOR0000EA;STICKLINE(买线>=卖线,C,O,1,0),COLOR0000FF;黑马现:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);DRAWTEXT(黑马现,(支撑*0.94),'--发现黑马'),COLORFF6600;STICKLINE(黑马现,(支撑*0.9),(支撑*0.95),9,0),COLORFF6600;机构:=((ZIGZAG(C,5,1)>REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)<=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)<=REF(ZIGZAG(C,5,1),3))=1) AND (CROSS(ZIGZAG(C,8,1),REF(ZIGZAG(C,8,1),1))) AND (CROSS(ZIGZAG(C,13,1),REF(ZIGZAG(C,13,1),1)));DRAWTEXT(机构,(L*0.67),'--机构进'),COLORYELLOW;STICKLINE(机构,(L*0.92),(L*0.98),9,0),COLORYELLOW;DRAWTEXT((VARDD=1),(H*1.1),'-卖'),COLORWHITE;STICKLINE((VARDD=1),(H*1.01),(H*1.05),9,0),COLORWHITE;奔牛:=(CROSS((3*(SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)-2*(EMA((S MA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57),5))),(SMA(SMA(((C-LLV(L,20)) /(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)) AND (SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)<2.1 AND 买线>=卖线); DRAWTEXT(奔牛,(支撑*0.99),'--奔牛'),COLORFF00FF;STICKLINE(奔牛,(支撑*0.96),(支撑),9,0),COLORFF00FF;XOPEN:=(REF(O,1)+REF(C,1))/2;XCLOSE:=CLOSE;XHIGH:=MAX(HIGH,XOPEN);XLOW:=MIN(LOW,XOPEN);VOLALITY:=MA(XHIGH-XLOW,8);VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)<=REF(ZIGZAG(C,6,1),3);VAR12:=ZIGZAG(C,6,1)=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),3); VAR13:=ZIGZAG(C,22,1)>REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)<=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)<=REF(ZIGZAG(C,22,1),3);VAR14:=ZIGZAG(C,22,1)=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),3);VAR15:=ZIGZAG(C,51,1)>REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)<=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)<=REF(ZIGZAG(C,51,1),3);VAR16:=ZIGZAG(C,51,1)=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),3);VAR17:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) ANDREF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);VAR18:=ZIGZAG(C,72,1)=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);/*VARZ1A:=EMA(VARZ19,100);VARZ1B:=2*(VARZ19-VARZ1A);VARZ1C:=POW(VARZ1B,3)*0.1+POW(VARZ1B,1);*/VARZ1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VARZ1E:=EMA(VARZ1D*0.97,3);VARZ1F:=(HIGH+LOW+CLOSE)/3;//买点1:=VARZ10;//买点2:=(VARZ11+VARZ13+VARZ15+VARZ17);VARZ1:=MA(CLOSE,5);VARZ2:=MA(CLOSE,10);VARZ3:=MA(CLOSE,30);VARZ4:=MA(CLOSE,60);VARZ5:=EMA(COST(85),7);VARZ6:=EMA(COST(15),7);VARZ7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);VARZ8:=INTPART(VARZ7*100)/100;VARZ9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);VARZA:=INTPART(VARZ9*100)/100;VARZB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);VARZC:=INTPART(VARZB*100)/100;VARZD:=EMA(CLOSE,5)-EMA(CLOSE,10);VARZE:=EMA(VARZD,9);VARZ13:=REF(VARZE,1);VARZ14:=VARZE;VARZ15:=VARZ14-VARZ13;VARZ16:=REF(VARZD,1);VARZ19:=OPEN;//买点3:=IF(VARZ19<=VARZ1 AND VARZ19<=VARZ2 AND VARZ19<=VARZ3 AND VARZ1A>=VARZ1 AND VARZ1A>=VARZC AND VARZ15>0 AND VARZ18>0,0.5,0);//VERTLINE1(买点3>0 OR 买点1>0 OR 买点2>0),COLOR0000FF;重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;公司成本价:EMA(((SLOPE(C,22)*20)+C),1600),COLORYELLOW,LINETHICK1;升Z:IF(重心>=公司成本价,公司成本价,NULL),COLORRED,LINETHICK1;降Z:IF(重心<公司成本价,公司成本价,NULL),COLORBLUE,LINETHICK1;ZF0:=MAX(HIGH,REF(HIGH,1))-MIN(LOW,REF(LOW,1));ZF:=MA(ZF0,3)*0.8;QSK:=ABS(CLOSE-REF(OPEN,1))/ZF0>0.50;SZT:=BARSLAST(SZ1);XDT:=BARSLAST(XD1);DT:=SZT<XDT;KT:=XDT<SZT;STICKLINE(DT,OPEN,CLOSE,3,0),COLORRED;STICKLINE(KT,OPEN,CLOSE,3,0),COLORGREEN;买买:=EMA(((100 * (CLOSE - LLV(LOW,34))) / (HHV(HIGH,34) - LLV(LOW,34))),3);卖卖:=SMA((((HHV(HIGH,34) - CLOSE) / (HHV(HIGH,34) - LLV(LOW,34))) * 100),2,1); INDEXC:="999300$C";INDEXH:="999300$H";INDEXL:="999300$L";大盘:=EMA(((100 * (INDEXC - LLV(INDEXL,34))) / (HHV(INDEXH,34) - LLV(INDEXL,34))),3);换手:=(((VOL /MA(V,5))) >= 2);涨:=(((CLOSE / REF(CLOSE,1)) - 1) * 100);A:=(CROSS(买买,卖卖) AND (买买>= 45));B:=(CROSS(买买,大盘) AND (买买>= 45));D:=(CROSS(买买,75) AND (涨>= 2));DD:=(CROSS(买买,20) AND (涨>= 2));DRAWTEXT((A > 0),(LOW * 0.99),'←黑马出现'),NODRAW,COLORFFFF00;DRAWTEXT((B > 0),(LOW * 1.02),'←机构买入'),NODRAW,COLOR0055FF;DRAWTEXT((D > 0),(LOW * 1.05),'←机构买入'),NODRAW,COLORRED;DRAWTEXT((DD > 0),(LOW ),'←游资买入'),NODRAW,COLORRED;TJ:=((CLOSE > OPEN) OR ((CLOSE = OPEN) AND (CLOSE > REF(CLOSE,1))));N11:=72;KK:=BARSLAST(CURRBARSCOUNT=N11);GD:=REFX1(IF(ISLASTBAR=1,HHV(H,KK),0),9999);DDZ:=REFX1(IF(ISLASTBAR=1,LLV(L,KK),0),9999);KJ:=GD-DDZ;平衡:=IF(CURRBARSCOUNT<=N11,DDZ+KJ/2,NULL);压力:=IF(CURRBARSCOUNT<=N11,GD-KJ*0.191,NULL);支撑Z:=IF(CURRBARSCOUNT<=N11,DDZ+KJ*0.191,NULL);AA1:=BARSLAST(MONTH<>REF(MONTH,1))+1;月±%:=(CLOSE/REF(CLOSE,AA1)-1)*100,COLOR00FFFF,NODRAW;STICKLINE(CURRBARSCOUNT=N11,GD,DDZ,0,-1),COLORWHITE;STICKLINE(CURRBARSCOUNT=N11/2,GD,DDZ,0,-1),COLORWHITE;STICKLINE(CURRBARSCOUNT<=N11,平衡,平衡,3,-1),COLORWHITE;STICKLINE(CURRBARSCOUNT<=N11/2,压力,压力,3,0),COLORRED;STICKLINE(CURRBARSCOUNT<=N11/2,支撑Z,支撑Z,3,0),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=N11/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=N11/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N11/4+5,DDZ+KJ/3,'【关注区】--逢低买入'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=N11/4+5,DDZ+KJ/10,'【休整区】--养精畜锐'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=N11/2+15,GD-KJ*0.191,'【拉升区】'),COLORRED;DRAWTEXT(CURRBARSCOUNT=N11/2+15,DDZ+KJ*0.191,'【持股区】'),COLORYELLOW; 短线:=MA(C,14),COLORWHITE;中线:=(LLV(短线,2)+LLV(短线,4)+LLV(短线,6)+LLV(短线,8))/4,COLORYELLOW;长线:=EMA(短线,3);FILLRGN(短线>长线,短线,长线,RGB(255,255,0));FILLRGN(短线<长线,短线,长线,RGB(0,0,255));下跌:IF(短线=中线,中线,NULL),COLORBLUE;DRAWKLINE1(HIGH,OPEN,LOW,CLOSE);。

文华财经期货软件指标公式源码赢顺云指标压力支撑多空指标

文华财经期货软件指标公式源码赢顺云指标压力支撑多空指标

文华财经期货软件指标公式源码赢顺云指标压力支撑多空指标赢顺云指标压力支撑多空指标是一种基于市场价格和交易量等数据计算的技术指标,用于分析市场的多空态势。

它是通过计算市场的压力位和支撑位来判断市场多空力量的强弱程度。

赢顺云指标的计算包括以下几个步骤:1.计算最高价、最低价和收盘价的平均价:平均价=(最高价+最低价+收盘价)/32.计算压力位和支撑位:压力位=最高价+最低价/2支撑位=最低价+最高价/23.计算赢顺线:赢顺线=(收盘价-压力位)/(压力位-支撑位)赢顺线=(收盘价-支撑位)/(压力位-支撑位)4.计算多空指标:多空指标=(压力位-支撑位)/(收盘价-平均价)以上就是赢顺云指标压力支撑多空指标的计算公式,下面是该指标的源码实现示例(使用Python语言):```pythondef winshun_cloud(high_price, low_price, close_price):average_price = (high_price + low_price + close_price) / 3pressure = (high_price + low_price) / 2support = (low_price + high_price) / 2winshun_line = (close_price - support) / (pressure - support) long_short_indicator = (pressure - support) / (close_price - average_price)return winshun_line, long_short_indicator```在实际使用中,可以将赢顺云指标压力支撑多空指标应用于具体的期货品种和时间周期,计算出相应的数值,然后与其他指标和工具结合使用,进行市场分析和交易决策。

需要注意的是,不同的软件和平台可能会存在稍微不同的指标计算公式和参数设定,因此在具体使用时需要根据实际情况进行调整和匹配。

文华指标公式源码(多空参考)

文华指标公式源码(多空参考)

文华指标公式源码(多空参考)文华指标公式源码(多空参考)Q1:=CLOSE-REF(CLOSE,1);Q2:=IF(CLOSE-REF(CLOSE,1)>=0,Q1,0);Q3:=REF(CLOSE,1)-CLOSE;Q4:=IF(CLOSE-REF(CLOSE,1)<=0,Q3,0);Q5:=SUM(Q2,90)/SUM(Q4,90);Q6:=100-100/(1+Q5);Q7:=EMA(Q6,21);Q8:=EMA(Q7,5);Q10:=EMA(Q7,3);JJ :=(C*2+H+L)/4;KK := EMA(JJ,13) - EMA(JJ,21);DD := EMA(KK,3);QQ := EMA(KK,10);长线1:=IF(DD>=QQ,DD,QQ),LINETHICK1,COLORFFFFAA;长线2:=IF(QQ-DD,QQ,DD),LINETHICK1,COLORWHITE;A1:=EMA(CLOSE,7)-EMA(CLOSE,21);B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);做多:IF(A1>=B1,A1,B1),LINETHICK1,COLORRED;做空:IF(B1-A1,B1,A1),LINETHICK1,COLORGREEN;VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;VAR2:=SMA(VAR1,10,1);MS:=SMA(VAR2,5,1);RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);XX:=SMA(FATK,3,1);VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARB:=SMA(VARA,3,1);VARC:=SMA(VARB,3,1);JS: EMA(3*VARB-2*VARC,2),COLORYELLOW;D:6,COLORLIGHTRED;DI:-6,COLORMAGENTA;DN:90,COLORGREEN;DDN:100,COLORWHITE;VAR11:=LLV(LOW,5)=LLV(LOW,45) && CLOSE>=OPEN*1.04;VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;MR:=VAR11 && VAR22,COLORRED;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;MC:=CROSS(80,VAR4),COLORGREEN;VAR5:=CROSS(JS,100);VAR6:=CROSS(JS,-6);VAR7:=CROSS(80,JS);VAR8:=CROSS(JS,6);DRAWTEXT(VAR5,85,'注意顶'),COLORBLUE;DRAWTEXT(VAR6,0,'关注底'),COLORRED;DRAWTEXT(VAR7,95,'空'),COLORGREEN;DRAWTEXT(VAR8,5,'多'),COLORMAGENTA;。

文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标

文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标

N:=5;WY:EMA(C,12),LINETHICK2,COLORYELLOW;VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;VAR3:=CROSS(69,VAR2);VARA:=FILTER(VAR3,4);DRAWICON(VARA,HIGH*1.035,2);DRAWTEXT(VARA,HIGH*1.04,'卖出'),COLORGREEN;缩量:=V<REF(V,1);新高:=C=HHV(C,20);下跌:=LLV(C,3)*1.04<HHV(C,10);回调:=BARSLASTCOUNT(缩量)>3 ANDEXIST(新高,8) AND 下跌AND C>MA(C,60) AND O<MA(C,20);DRAWTEXT(回调,LOW*1.04,'补仓'),COLORYELLOW;VAR4:=REF(CLOSE,1);VAR5:=SMA(MAX(CLOSE-VAR4,0),6,1)/SMA(ABS(CLOSE-VAR4),6,1)*100;ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;DRAWTEXT(VAR5>REF(VAR5,1) AND VAR5>80 AND ROC<REF(ROC,1),HIGH*1.04,'风险'),COLORBLUE;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;G1:=C<REF(C,1) AND (REF(C,1)<REF(C,2)) AND (REF(C,2)<REF(C,3));MA45:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,4);J5:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,5);MA4:=MA((MA45+J5)/2,1);SSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;KKK:=SMA(SSV,3,1);H1:=EMA(EMA(LLV(J5,15),2),2);YY4:=LLV(C,5)*1.15<HHV(C,15)AND LOW<H1 AND KKK<20AND VOL/MA(V,10)<1.4AND CLOSE/REF(CLOSE,1)>1.02AND COUNT(G1,6)>=1AND CLOSE>OPEN;CAPITAL:=GETPRICE1('流通股本');大盘股:=SUM(REF(V,1),8)/CAPITAL<15/100;中盘股:=SUM(REF(V,1),8)/CAPITAL<25/100;小盘股:=SUM(REF(V,1),8)/CAPITAL<30/100;大盘股1:=SUM(REF(V,1),5)/CAPITAL<10/100;中盘股1:=SUM(REF(V,1),5)/CAPITAL<14/100;小盘股1:=SUM(REF(V,1),5)/CAPITAL<15/100;DP:=CAPITAL>2500000;ZP:=CAPITAL>600000 AND CAPITAL<2500000;XP:=CAPITAL<600000;综合:=IF(DP=1,大盘股,IF(ZP=1,中盘股,小盘股));综合1:=IF(DP=1,大盘股1 ,IF(ZP=1,中盘股1,小盘股1));振幅:=(REF(HHV(C,5),1)-REF(LLV(C,5),1))/REF(LLV(C,5),1)<5.3/100;涨幅:=CLOSE/REF(C,1)>=1.048;JX3:=V/MA(V,10);YY3:=振幅AND ( 涨幅) AND C=HHV(C,5) AND 综合 1 AND 综合AND JX3<1.8 AND HHV(H,20)/C>1.04 ;买入:=YY4 OR YY3 ;DRAWTEXT(买入,LOW*1.01,'买入'),COLORRED;BB:=C/HHV(C,5)<1.15;下:=C<REF(C,1);YF:=LAST(下,4,1) AND COUNT(C<REF(C,1)*0.95,5)>=2AND (C>REF(C,1) OR C/O>1.035 OR (O/L>0.03 AND C>O))AND BB AND (C-L)/C>0.02 AND J<0 AND (H-C)<(C-O);YF1:=COUNT(下,5)>=3 AND COUNT(C<REF(C,1)*0.95,6)>=3AND C*1.15<HHV(C,5) AND C>REF(C,1)AND C>O AND J<2;A44:=V<REF(V,1)*2.8 AND COUNT(C<O*0.95,2)=2;A55:=((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND A44;A6:=FILTER(A55,1);YF2:=A6 AND BB AND H>REF(L,1);二档:=YF OR YF1 OR YF2;DRAWTEXT(二档,LOW*1.01,'二档'),COLORMAGENTA; INDEXC:="999300$C";TQ1:=(INDEXC-MA(INDEXC,58))/MA(INDEXC,58)<-0.152; TQ2:=(C-EMA(C,58))/EMA(C,58)<-0.19;买1:=TQ2 AND TQ1;T4:=(C-MA(C,2))/MA(C,2)*100;T5:=INDEXC;T6:=MA(T5,13);T7:=T6>1.050*T5;T8:=(C-REF(C,26))/REF(C,26)*10;T9:=T7;T10:=T8<-2.30 ;T11:=T4<-2.7 ;T12:=T9 AND T10 AND T11 ;T13:=CROSS(0.5,T12);T14:=CROSS(T13,0.5);T15:=BARSLAST(T14=1);T16:=T15<=5 AND C<REF(C,T15) ;买2:=T13 OR T16;T17:= (C-MA(C,2))/MA(C,2)*100;T18:=INDEXC;T19:=MA(T18,56);T20:=T18/T19<0.94;T21:=(C-REF(C,26))/REF(C,26)*10;T22:=T20;T23:=T21<-2.55;T24:=T17<-2.7;T25:=T22 AND T23 AND T24;T26:=CROSS(0.5,T25);T27:=CROSS(T26,0.5);T28:=BARSLAST(T27=1);T29:=T28<=5 AND C<1.02*REF(C,T28);底4:=T26 OR T29;T30:= (C-MA(C,2))/MA(C,2)*100;T31:=INDEXC;T32:=MA(T31,13);T33:=T32>1.050*T31;T34:=(C-REF(C,26))/REF(C,26)*10;T35:=T33;T36:=T34<-2.69;T37:=T30<-3.09;T38:=T35 AND T36 AND T37;T39:=CROSS(0.5,T38);T40:=CROSS(T39,0.5);T41:=BARSLAST(T40=1);T42:=T41<=5 AND C<REF(C,T41);买3:=COUNT(T39 OR T42,4)=4;T43:=EMA(((C*1.1-LLV(LOW,630))/(HHV(HIGH,630)-LLV(LOW,630))-(C*0.9-LLV(LOW,630))/(HHV(HI GH,630)-LLV(LOW,630)))*80,5);T44:=INDEXC;T45:=MA(T44,5);T46:=MA(T44,20);T47:=MA(T44,30);T48:=T45>T44*1.03 AND T46>T44*1.13;T49:=T48;目标:=COUNT(T43<6 AND T49,3)>=3;新目标:=买3 OR 目标;WYY:=((COUNT(买1 AND 底4,6)=6 OR COUNT(买1 AND 买2,4)=4 OR COUNT(买2 AND 底4,5)=5) OR 新目标)AND C<MA(C,3) AND O<MA(C,3) ;三档:=WYY;DRAWTEXT(三档,LOW*1.01,'三档'),COLORMAGENTA;AMOUNT:=AVPRICE*V;VARQ1:=AMOUNT/VOL/14;VARQ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/14;VARQ3:=SUM(AMOUNT,N)/VARQ1/14;VARQ4:=DMA(VARQ2,VOL/VARQ3);抄底:=(CLOSE-VARQ4)/VARQ4*100;AAQ:=O>MA(C,5) OR O<MA(C,3);BBQ:=(H-O)<(O-C)/2;CCQ:=(O-C)/O>7/100;WY7:=CROSS(-1.65,抄底) AND AAQ AND BBQ AND CCQ;四档:=WY7;DRAWTEXT(四档,LOW*1.01,'四档'),COLORMAGENTA;。

文华财经指标文华财经期货软件指标多空线指标公式源码

文华财经指标文华财经期货软件指标多空线指标公式源码

/*DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);DRAWBAND(DEA1,DRAWNULL,DIFF1,RGB(250,0,0));DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORYELLOW;DEA:EMA(DIFF,9),COLORCYAN;MACD:2*(DIFF-DEA),COLORSTICK;TR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))), 14);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;PDM:=SUM(IF(HD>0 AND HD>LD,HD,0),14);MDM:=SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:=PDM*100/TR;MDI:=MDM*100/TR;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) ANDCROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));C4:=BARSLAST(REF(CROSS(MDI,PDI),1));D4:=REF(C,C+1)<C AND REF(MDI,C4+1)>MDI AND CROSS(MDI,PDI);A4:=BARSLAST(REF(CROSS(PDI,MDI),1));B4:=REF(C,A4+1)>C AND REF(PDI,A4+1)<PDI AND CROSS(PDI,MDI);MACD底背:IF(B1>0,1,0),COLORRED,NODRAW;KDJ底背:IF(B2>0,1,0),COLORFF00FF,NODRAW;RSI底背:IF(B3>0,1,0),COLORYELLOW,NODRAW;DMI底背:IF(B4>0,1,0),COLORBROWN,NODRAW;MACD顶背:IF(D1>0,1,0),COLOR00FF00,NODRAW;KDJ顶背:IF(D2>0,1,0),COLORFFCC66,NODRAW;RSI顶背:IF(D3>0,1,0),COLORWHITE,NODRAW;DMI顶背:IF(D4>0,1,0),COLORLIRED,NODRAW;{DRAWLINE(A1=0,DEA,MACD底背,DEA,0),COLORRED,LINETHICK2;DRAWLINE(A2=0,DEA,MACD顶背,DEA,0),COLOR00FF00,LINETHICK2;}STICKLINE(B1>0,-0.1,0,2,0),COLORRED;STICKLINE(B2>0,-0.1,-0.2,2,0),COLORFF00FF;STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;STICKLINE(B4>0,-0.1,-0.2,2,0),COLORBROWN;STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;STICKLINE(D2>0,0.1,0.2,2,0),COLORFFCC66;STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;STICKLINE(D4>0,0.1,0.2,2,0),COLORLIRED;SQX:=(C-MA(CLOSE,13))*100;DIF:EMA(MA(SQX,7),1),LINETHICK1;DEA:EMA(DIF,7),LINETHICK1;MACD: (DIF-DEA)*2,COLORSTICK;红柱持股:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED,LINETHICK3;绿柱持币:IF(MACD<REF(MACD,1),MACD,DRAWNULL),STICK,COLORGREEN,LINETHICK3; 低位金叉:IF(CROSS(DIF,DEA) AND DIF<-0.1,0.3,0),COLORYELLOW,POINTDOT; STICKLINE(低位金叉,0,10,8,1),COLORYELLOW;DRAWICON(低位金叉,0.3,1);JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));二次金叉:IF(CROSS(DIF,DEA) AND DEA<0 ANDCOUNT(JCCOUNT=2,21)=1,0.2,0),COLORFF00FF,POINTDOT;STICKLINE(二次金叉,25,15,8,1),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));底背离:IF(REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) ANDCROSS(DIF,DEA),0.1,0),COLORRED,POINTDOT;STICKLINE(底背离,40,30,8,1),COLORMAGENTA;DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORMAGENTA,LINETHICK3;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF ANDCROSS(DEA,DIF),COLORGREEN;DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORBLUE,LINETHICK3;A3:=CROSS(DIF,DEA) AND DEA<0;零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10),0.05,0),COLORWHITE,POINTDOT; STICKLINE(零下二次金叉,45,55,8,1),COLORWHITE;金叉:DRAWICON(CROSS(DIF,DEA),DIF,1);死叉:DRAWICON(CROSS(DEA,DIF),DIF,2);{MACD底背离选股公式}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9),;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));XG:REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);*/N:=120;CURRBARSCOUNT:=DATACOUNT-BARPOS+1;K:=BARSLAST(CURRBARSCOUNT=N);GD:=REFX1(IF(ISLASTBAR=1,HHV(H,K),0),10000),NODRAW;{高点}DD:=REFX1(IF(ISLASTBAR=1,LLV(L,K),0),10000),NODRAW;{低点}KJ:=GD-DD;//{高低点差值=分区高度}GD4:=IF(CURRBARSCOUNT<=N/2,GD,NULL);高区:IF(CURRBARSCOUNT<=N,GD,NULL),COLORRED,LINETHICK2,NODRAW;低区:IF(CURRBARSCOUNT<=N,DD,NULL),COLOR00FF00,LINETHICK2,NODRAW;平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,NULL),COLOR00FFFF,NODRAW;低:IF(CURRBARSCOUNT<=N/2,DD,NULL),COLORFFFF00;高:IF(CURRBARSCOUNT<=N/2,GD,NULL),COLOR00FFFF;支撑:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,NULL),COLOR00FFFF;第一防线:REFX1(低,10000),DOT,COLORYELLOW,NODRAW;第二防线:REFX1(支撑,10000),DOT,COLORWHITE,NODRAW;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;CC:IF(CURRBARSCOUNT<18,REFX1(REF(C,1),10000),NULL),COLOR000000,NODRAW;止赢:1.05*CC,COLORMAGENTA,LINETHICK2;DRAWTEXT(ISLASTBAR,止赢,'止赢'),LINETHICK2;止损:0.97*CC,COLORYELLOW,LINETHICK2;DRAWTEXT(ISLASTBAR,止损,'止损'),LINETHICK2;DRAWNUMBER1(ISLASTBAR ,C,C,2),COLORWHITE;MAA10:=MA(C,10);MAA30:MA(C,30),COLORRED;KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'跟庄买进'),COLORYELLOW; STICKLINE1(买,OPEN,CLOSE,2,0),COLORYELLOW;。

文华财经期货软件指标公式源码期货指标赢顺云指标文华指标破解

文华财经期货软件指标公式源码期货指标赢顺云指标文华指标破解

MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA120:=MA(CLOSE,120);HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DDD:=BARSLAST(CC);CURRBARSCOUNT:=DATACOUNT-BARPOS;GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=REFX1(DINGBUTS,10000);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=REFX1(DINGBUTS1,10000);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H),COLORGREEN,DOT; DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS1,H,COLORLIGHTGREY),POINTDOT; DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS2,H,COLORLIGHTGREY),POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=REFX1(DDTS1,10000);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=REFX1(DDTS2,10000);低点支撑:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORRED,DOT; ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=REFX1((高点压力+低点支撑)/2,10000);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS1,L,COLORLIGHTGREY),POINTDOT; DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS2,L,COLORLIGHTGREY),POINTDOT;G:=MA(C,5);D:=MA(C,10);NNH:=BARSLAST(H=HHV(H,7)) ,NODRAW;NNL:=BARSLAST(L=LLV(L,7)) ,NODRAW;NN:=IF(REF(G,NNH)>REF(D,NNH) AND NNH<=4,NNH,IF(REF(G,NNL)<REF(D,NNL) AND NNL<=4,NNL,5)) ,NODRAW;N:=IF(ISLASTBAR AND NN>0,NN,5) ,NODRAW;HH:=REF(H,N)=HHV(H,6);LL:=REF(L,N)=LLV(L,6);FG01:BACKSET(HH,N+1)>BACKSET(HH,N),NODRAW;FD01:BACKSET(LL,N+1)>BACKSET(LL,N) ,NODRAW;FG02:=FG01=FD01 AND G>D,NODRAW;FD02:FG01=FD01 AND G<D,NODRAW;TTTT:BARSLAST(FD01),NODRAW;FG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,7))>=5,5,BARSLA ST(FD01)))) AND FD02=0 ,NODRAW;FD0:=FD01 ANDIF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,7))>=5,5,BARSLAST( FG01)))) AND FG02=0 ,NODRAW;GT:BARSLAST(FG0),NODRAW;DT:BARSLAST(FD0),NODRAW;LLLL:DT=0 AND REF(DT,1)<GT AND L>REF(L,REF(DT,1)+1),NODRAW;FG1:BACKSET(REFX(GT,1)=0 AND GT<DT AND REFX(H,1)>=REF(H,GT),GT+1),NODRAW;FD1:BACKSET(REFX(DT,1)=0 AND DT<GT AND REFX(L,1)<=REF(L,DT),DT+1),NODRAW;FG11:IF(GT=0 AND REF(GT,1)<DT AND IF(REF(G,BARSLAST(L=LLV(L,7)))>REF(D,BARSLAST(L=LLV(L,7))),BARSLAST(L=LLV(L,7))<5,1) AND H<REF(H,REF(GT,1)+1),1,0),NODRAW;FD11:IF(DT=0 AND REF(DT,1)<GT AND IF(REF(G,BARSLAST(H=HHV(H,7)))<REF(D,BARSLAST(H=HHV(H,7))),BARSLAST(H=HHV(H,7))<5,1) AND L>REF(L,REF(DT,1)+1),1,0),NODRAW;GT1:BARSLAST(FG11<>1 AND FG1<>1 AND FG0),NODRAW;DT1:BARSLAST(FD11<>1 AND FD1<>1 AND FD0),NODRAW;FD2:BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)>LLV(L,GT1+5),DT1+1),NODRAW;FG2A:BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)<=LLV(L,GT1+5) AND REF(H,GT1)>HHV(H,GT1+5),GT1+1),NODRAW;FG2B:IF(GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 AND REF(L,DT1)<=LLV(L,REF(GT1,1)+6) AND H>HHV(H,REF(GT1,1)+6),1,0),NODRAW;FG2:BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)<HHV(H,DT1+5),GT1+1),NODRAW;FD2A:BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)>=HHV(L,DT1+5) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;FD2B:IF(DT1=0 AND GT1<4 AND REF(DT1,1)-GT1<4 AND REF(H,GT1)>=HHV(H,REF(DT1,1)+6) AND L>LLV(L,REF(DT1,1)+6),1,0),NODRAW;TTTTTT: H<REF(H,REF(GT1,1)+1) AND DT1<4,NODRAW;HHHHHH:REF(LLV(L,10),DT1),NODRAW;FG21:IF(GT1=0 AND DT1<4 AND H<=REF(H,REF(GT1,1)+1) ,1,0),NODRAW;FD21:IF(DT1=0 AND GT1<4 AND L>=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;FD231:BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>REF(LLV(L,10),DT1),DT1+1),NODRAW;FG23:BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND (REF(H,GT1)<REF(HHV(H,13),GT1) OR REF(FD231,DT1)=0),GT1+1),NODRAW;FG231:BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<REF(HHV(H,10),GT1) ,GT1+1),NODRAW;FD23:BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND ( REF(L,DT1)>REF(LLV(L,13),DT1) OR REF(FG231,GT1)=0),DT1+1),NODRAW;FDD23:REF(H,GT1)<REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;FD24:BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)<HHV(H,GT1+3) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;FG24:BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)>LLV(L,DT1+3) AND REF(H,GT1)<HHV(H,GT1+5),GT1+1),NODRAW;GT2:BARSLAST(FG21<>1 AND FG23<>1 AND FG231<>1 AND FG24<>1 AND FG2<>1 AND FG2A<>1 AND FG2B<>1 AND GT1=0),NODRAW;DT2:BARSLAST(FD21<>1 AND FD23<>1 AND FD231<>1 AND FD24<>1 AND FD2<>1 AND FD2A<>1 AND FD2B<>1 AND DT1=0),NODRAW;FG3:BACKSET(REFX(GT2,1)=0 AND GT2<DT2 AND REFX(H,1)>=REF(H,GT2),GT2+1),NODRAW;FD3:BACKSET(REFX(DT2,1)=0 AND DT2<GT2 AND REFX(L,1)<=REF(L,DT2),DT2+1),NODRAW;FG31:IF(GT2=0 AND REF(GT2,1)<DT2 AND H<REF(H,REF(GT2,1)+1),1,0),NODRAW;FD31:IF(DT2=0 AND REF(DT2,1)<GT2 AND L>REF(L,REF(DT2,1)+1),1,0),NODRAW;GT3:BARSLAST(GT2=0 AND FG3<>1 AND FG31<>1 ),NODRAW;DT3:BARSLAST(DT2=0 AND FD3<>1 AND FD31<>1),NODRAW;FG4:BACKSET(REFX(GT3,1)=0 AND GT3<DT3 AND REFX(H,1)>=REF(H,GT3),GT3+1),NODRAW;FD4:BACKSET(REFX(DT3,1)=0 AND DT3<GT3 AND REFX(L,1)<=REF(L,DT3),DT3+1),NODRAW;FG41:IF(GT3=0 AND REF(GT3,1)<DT3 AND H<REF(H,REF(GT3,1)+1),1,0),NODRAW;FD41:IF(DT3=0 AND REF(DT3,1)<GT3 AND L>REF(L,REF(DT3,1)+1),1,0),NODRAW;HHH:=GT3=0 AND FG31<>1 AND FG3<>1,NODRAW;LLL:=DT3=0 AND FD31<>1 AND FD3<>1,NODRAW;DRAWLINE1(HHH ,H,LLL,L,0),COLORYELLOW,LINETHICK1;DRAWLINE1(LLL,L,HHH ,H,0),COLORYELLOW,LINETHICK1;PARTLINE1(FG0 ,H),COLORGREEN,POINTDOT,LINETHICK2;PARTLINE1(FD0 ,L),COLORCYAN,CIRCLEDOT,LINETHICK2;笔周期:=10;半分位:=50;画趋势:=1;涨停位:=50;时间:=1;日线:=IF(PERIOD=5,1,0);CA3:=REF(C,1)*日线;A1:=REF(H,3)=HHV(H,笔周期*3+1)*1;B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3);{高点}A2:=REF(L,3)=LLV(L,笔周期*3+1)*1;B2:=FILTER(A2,3);C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(L,2*3),1)+REF(HHV(H,2*3),1))/2;E2:=(H+L)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(C)=1;H2:=D1 AND NOT(D2 AND E1>=E2);L1:=D2 AND NOT(D1 AND E1=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,100000),X1)+1);G1:=F1>REF(F1,1);I1:=BACKSET(G1,1);LD:=I1>REF(I1,1);L2:=LD OR BARSTATUS=2 OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2)+1);G2:=F2>REF(F2,1);I2:=BACKSET(G2,1);HD:=I2>REF(I2,1);DRAWLINE3(LD,REF(H,BARSLAST(HD)),BARSLAST(HD),HD,REF(L,BARSLAST(LD)),BARSLAST(LD),0),C OLORGREEN,LINETHICK3;DRAWLINE3(HD,REF(L,BARSLAST(LD)),BARSLAST(LD),LD,REF(H,BARSLAST(HD)),BARSLAST(HD),0),C OLORRED,LINETHICK3;J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);A3:=H;B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST(HD),REF(BAR SLAST(HD),1)+2));D3:=A3 AND B3 AND HD;E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2);HH8:=E3>REF(E3,1);A4:=L>REF(L,REF(BARSLAST(LD),1)+1);B4:=REF(L,REF(BARSLAST(LD),1)+1);D4:=A4 AND B4 AND LD;E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2);LL8:=E4>REF(E4,1);H3:=HH8 OR BARSTATUS=2 OR BARSCOUNT(C)=1;X3:=REF(BARSLAST(H3),1)+1;F3:=BACKSET(H3 AND COUNT(LL8,X3)>0,LLVBARS(IF(LL8,L,POW(10,20)),X3));G3:=F3>REF(F3,1);I3:=BACKSET(G3,2);LZ:=I3>REF(I3,1);L4:=LZ OR BARSTATUS=2 OR BARSCOUNT(C)=1;X4:=REF(BARSLAST(L4),1)+1;F4:=BACKSET(L4 AND COUNT(HH,X4)>0,HHVBARS(IF(HH,H,-POW(10,20)),X4));G4:=F4>REF(F4,1);I4:=BACKSET(G4,2);HZ:=I4>REF(I4,1);K1:=BACKSET(BARSTATUS=2,MIN(BARSLAST(HZ),BARSLAST(LZ))+1);K2:=K1>REF(K1,1);UU:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);WWQ:=BACKSET(XX,REF(BARSLAST(LD),1)+2);XXQ:=WWQ>REF(WWQ,1);UU2:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);WW3Q:=BACKSET(XX2,REF(BARSLAST(HD),1)+2);XX3Q:=WW3Q>REF(WW3Q,1);WW4Q:=BACKSET(XX3Q,REF(BARSLAST(HD),1)+2);XX4Q:=WW4Q>REF(WW4Q,1);Q0:=BARSLAST(XX2>0);Q1:=BARSLAST(XX>0);Q2:=BARSLAST(WW2>0);Q3:=BARSLAST(VV>0);Q4:=BARSLAST(XXQ>0);Q5:=BARSLAST(XX3Q>0);Q6:=BARSLAST(XX4Q>0);低1:REF(L,BARSLAST(VV)),LINETHICK2,COLORGREEN;低壹:=REF(C,BARSLAST(VV));低壹1:=REF(C,BARSLAST(VV)+1);高1:REF(H,BARSLAST(VV2)),LINETHICK2,COLORRED;高壹:=REF(C,BARSLAST(VV2));高壹1:=REF(C,BARSLAST(VV2)+1);低2:REF(L,BARSLAST(XX)),DOT,COLORGREEN;低贰:=REF(C,BARSLAST(XX));低贰2:=REF(C,BARSLAST(XX)+1);高2:REF(H,BARSLAST(XX2)),DOT,COLORRED;高贰:=REF(C,BARSLAST(XX2));高贰2:=REF(C,BARSLAST(XX2)+1);①②③:=IF(Q5<Q4,REF(H,BARSLAST(XX3Q)),0),DOT,COLORCYAN;DRAWLINE1(J2,IF(HD,H,L),ISLASTBAR,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),DOT,COLORYELLOW ,LINETHICK1;。

文华财经指标公式源码文华期货软件指标公式公式源码

文华财经指标公式源码文华期货软件指标公式公式源码

/*拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE; 拉升力A:=SMA(拉升力,6.3,1);波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;拉升力B:=3*拉升力A-2.1*波峰波谷;空方:=3*波峰波谷-1* 拉升力A;做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;多头:IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3; DRAWICON(做空>=REF(做空,1) AND REF(做空,1)<REF(做空,2),做空,23);空头:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3; {DRAWICON(做空<=REF(做空,1) AND REF(做空,1)>REF(做空,2),做空,19);} 短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE; 中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;{红柱}STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR000088; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLOR0000AA; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLOR0000DD; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLOR0000FF; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,2,0),COLOR008800; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,1,0),COLOR00AA00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.8,0),COLOR00DD00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.3,0),COLOR00FF00;{蓝柱}STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR880088;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAA00AA; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDD00DD; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFF00FF; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,2,0),COLOR009999; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);B1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;B2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;B3:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;B4:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;M:=(LOW+HIGH+CLOSE)/3;HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD>0) AND (HD>LD)),HD,0),5) );DMM:=SUM(IF(((LD>0) AND (LD>HD)),LD,0),5);STX:=(((DMP)*100)/TR);FZX:=((DMM*100)/TR);XXX:=(MA(((ABS((FZX-STX))/(FZX+STX)) * 100),3));WJDB:=IF(((XXX>88) AND (STX<5.8)),25,0);DRAWICON(WJDB=25,-5,9);STICKLINE(B1<-7,5,0,3,0),COLOR0099FF;STICKLINE(B2<-9,10,0,2.2,0),COLOR0066FF;STICKLINE(B3<-11,15,0,1.4,0),COLOR0033FF;STICKLINE(B4<-13,20,0,0.6,0),COLOR0000FF;DRAWTEXT(B1<-7 AND B2<-9 AND B3<-11 AND B4<-13,18,'超跌'),COLORYELLOW; STICKLINE(B1>10,0,-5,3,0),COLORFFFF33;STICKLINE(B2>15,0,-10,2.2,0),COLORFFCC00;STICKLINE(B3>20,0,-15,1.4,0),COLORFF9933;STICKLINE(B4>25,0,-20,0.6,0),COLORFF6633;DRAWTEXT(B1>10 AND B2>15 AND B3>20 AND B4>25,-18,'预警'),COLORYELLOW; BL:(B1+B2+B3+B4)/2,LINETHICK2,COLORFF00FF;BLMA:MA(BL,6),LINETHICK2,COLORCC0000;DRAWTEXT(BL>50,BL-2,'◆谨慎'),COLORYELLOW;DRAWTEXT(BL<-35,BL+2,'◆关注'),COLORYELLOW;操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,5,0,4,0),COLOR770077;STICKLINE(A1,5,0,3,0),COLOR990099;STICKLINE(A1,5,0,2,0),COLORBB00BB;STICKLINE(A1,5,0,1,0),COLORDD00DD;STICKLINE(A1,5,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,5.2,'全仓买入'),COLORRED;*/S:=CROSS(CLOSE,EMA(HIGH,30));X:=CROSS(EMA(LOW,30),CLOSE);WS:=BARSLAST(S)+1;WX:=BARSLAST(X)+1;SS:=CROSS(SUM(S,WX),0.5);XX:=CROSS(SUM(X,WS),0.5);STICKLINE1(CLOSE>EMA(HIGH,30),EMA(HIGH,30),EMA(LOW,30),1,1),COLORRED; STICKLINE1(CLOSE<EMA(LOW,30),EMA(LOW,30),EMA(HIGH,30),1,1),COLORGREEN; STICKLINE1(CLOSE>EMA(HIGH,150),EMA(HIGH,150),EMA(LOW,150),1,1),COLORMAGENTA; STICKLINE1(CLOSE<EMA(LOW,150),EMA(LOW,150),EMA(HIGH,150),1,1),COLORBLUE; PARTLINE1(CLOSE>EMA(HIGH,30),EMA(HIGH,30)),COLORRED;PARTLINE1(CLOSE<EMA(HIGH,30),EMA(HIGH,30)),COLORGREEN;PARTLINE1(CLOSE>EMA(LOW,30),EMA(LOW,30)),COLORRED;PARTLINE1(CLOSE<EMA(LOW,30),EMA(LOW,30)),COLORGREEN;PARTLINE1(CLOSE>EMA(HIGH,150),EMA(HIGH,150)),COLORMAGENTA;PARTLINE1(CLOSE<EMA(HIGH,150),EMA(HIGH,150)),COLORBLUE;PARTLINE1(CLOSE>EMA(LOW,150),EMA(LOW,150)),COLORMAGENTA;PARTLINE1(CLOSE<EMA(LOW,150),EMA(LOW,150)),COLORBLUE;DRAWTEXT(SS,LOW*0.965,'B'),COLORRED;DRAWICON(SS,LOW*0.98,8);DRAWTEXT(XX,HIGH*1.035,'S'),COLORGREEN;DRAWICON(XX,HIGH*1.02,9);。

文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi ddx ddy ddz

文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi ddx ddy ddz

AF1:=REF(O,1);AF2:=ABS((REF(C,1)-AF1)/AF1);AF3:=ABS((REF(H,1)-AF1)/AF1);AF4:=ABS((REF(L,1)-AF1)/AF1);BF1:=ABS((AF2+AF3+AF4)/3);BF2:=O*BF1;预测低一:=O-BF2;预测高一:=O+BF2;今日保护价:=(REF(C,2)+REF(C,1)+O)/3 ,COLOR4080FF,NODRAW; 开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AAF:=最高价2;BBF:=最低价2;CCF:=开盘价2;DDF:=收盘价2;EEF:=(AAF+BBF+CCF+2*DDF)/5;AAAF:=EEF+(AAF-BBF);BBBF:=2*EEF-BBF;CCCF:=2*EEF-AAF;DDDF:=EEF-(AAF-BBF);上升突破价:=AAAF;上升阻力价:=BBBF;下跌支撑价:=CCCF;下跌反转价:=DDDF;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;阻力:=E+(HIGH-LOW);支撑:=E-(HIGH-LOW);EEE:=(EEF+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:MIN(GGG,支撑),NODRAW;预测高二:MAX(MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1),阻力),NODRAW;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。

文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi ddx ddy ddz

文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi ddx ddy ddz

AF1:=REF(O,1);AF2:=ABS((REF(C,1)-AF1)/AF1);AF3:=ABS((REF(H,1)-AF1)/AF1);AF4:=ABS((REF(L,1)-AF1)/AF1);BF1:=ABS((AF2+AF3+AF4)/3);BF2:=O*BF1;预测低一:=O-BF2;预测高一:=O+BF2;今日保护价:=(REF(C,2)+REF(C,1)+O)/3 ,COLOR4080FF,NODRAW; 开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AAF:=最高价2;BBF:=最低价2;CCF:=开盘价2;DDF:=收盘价2;EEF:=(AAF+BBF+CCF+2*DDF)/5;AAAF:=EEF+(AAF-BBF);BBBF:=2*EEF-BBF;CCCF:=2*EEF-AAF;DDDF:=EEF-(AAF-BBF);上升突破价:=AAAF;上升阻力价:=BBBF;下跌支撑价:=CCCF;下跌反转价:=DDDF;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;阻力:=E+(HIGH-LOW);支撑:=E-(HIGH-LOW);EEE:=(EEF+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:MIN(GGG,支撑),NODRAW;预测高二:MAX(MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1),阻力),NODRAW;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。

文华财经:期货行业最准确的指标公式源码

文华财经:期货行业最准确的指标公式源码

文华财经:期货行业最准确的指标公式源码引言本文档旨在介绍文华财经所提供的期货行业最准确的指标公式源码。

这些指标公式可以帮助投资者更好地分析期货市场,做出明智的投资决策。

指标公式源码以下是文华财经提供的期货行业最准确的指标公式源码:1. 移动平均线(Moving Average):MA(n) = sum(close, n) / n其中,`close`代表收盘价,`n`代表计算的周期。

2. 相对强弱指标(Relative Strength Index,简称RSI):RSI(n) = 100 - (100 / (1 + RS))RS = avg(upward_close, n) / avg(downward_close, n)其中,`upward_close`代表收盘价上涨的部分,`downward_close`代表收盘价下跌的部分,`n`代表计算的周期。

3. 随机指标(Stochastic Oscillator):%K(n) = (close - min(low, n)) / (max(high, n) - min(low, n)) * 100 %D(n) = MA(%K, m)其中,`low`代表最低价,`high`代表最高价,`n`代表计算%K 的周期,`m`代表计算%D的周期。

4. 平均真实范围(Average True Range,简称ATR):TR(n) = max(high - low, abs(high - close_prev), abs(low -close_prev))ATR(n) = MA(TR, n)其中,`close_prev`代表前一日的收盘价,`n`代表计算的周期。

5. 动量指标(Momentum):MOM(n) = close - close_prev其中,`close_prev`代表前一日的收盘价,`n`代表计算的周期。

结论以上是文华财经所提供的期货行业最准确的指标公式源码。

期货软件指标赢顺云指标文华财经指标公式神通交易师指标

期货软件指标赢顺云指标文华财经指标公式神通交易师指标

TY:=C;HD:=FILTER(BACKSET(FILTER(REF(TY,14)=HHV(TY,2*14+1),14),14+1),14); LD:=FILTER(BACKSET(FILTER(REF(TY,14)=LLV(TY,2*14+1),14),14+1),14); A:=REF(C,BARSLAST(HD));B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);MX:=EMA(C,2);SX:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(MX,SX);S:=CROSS(CLOSE,EMA2(HIGH,10));X:=CROSS(EMA2(LOW,10),CLOSE);WS:=BARSLAST(S)+1;WX:=BARSLAST(X)+1;SS:=CROSS(SUM(S,WX),0.382);XX:=CROSS(SUM(X,WS),0.382);STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,COLORLIGHTGREEN,1); STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,COLORRED,1);//SS||XX,SOUND('A');HX:=HHV(HIGH,1);LX:=LLV(LOW,1);H1:=IFELSE(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&L X<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);L1:=IFELSE(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX >REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);H2:=VALUEWHEN(H1>0,H1);L2:=VALUEWHEN(L1>0,L1);K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));K2:=VALUEWHEN(K1<>0,K1);G:=IFELSE(K2=1,H2,L2);G1:=VALUEWHEN(ISLASTBAR,G);DRAWNUMBER(LX>0,G1,G1,0,COLORMAGENTA);TMP:=K2;W1:=K2;W2:=OPEN-CLOSE;HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);DRAWLINE(W1=1,HIGH,W1=1,HT,COLORLIGHTGREEN);DRAWLINE(W1=1,LOW,W1=1,LT,COLORLIGHTGREEN);DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED);DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED);STICKLINE(W1>0,OPEN,CLOSE,COLORLIGHTGREEN,1);STICKLINE(W1<=0,OPEN,CLOSE,COLORRED,1);STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,COLORRED,0);STICKLINE(W2>0&&W1>0,OPEN,CLOSE,COLORLIGHTGREEN,0);DRAWLINE(TMP=1&&REF(TMP,1)=1,G,TMP=1&&REF(TMP,1)=1,REF(G,1),COLORBLUE),LINETHICK4 ;DRAWLINE(TMP=-3&&REF(TMP,1)=-3,G,TMP=-3&&REF(TMP,1)=-3,REF(G,1),COLORRED),LINETHIC K4;DRAWSL(K2=1,G,0,1,0,COLORBLUE);DRAWSL(K2=-3,G,0,1,0,COLORRED);DKXB重要15天均线:MA(EMA2(CLOSE,15),6),COLORMAGENTA,LINETHICK2;DKXM10:MA(EMA2(CLOSE,8),6),COLORLIGHTGREEN,LINETHICK1;DKXC5:MA(EMA2(CLOSE,3),6),COLORYELLOW,LINETHICK1;DRAWCOLORLINE(C>DKXM10,DKXM10,COLORRED,COLORGREEN);DRAWTEXT(CROSS(DKXB重要15天均线>REF(DKXB重要15天均线,1)&&DKXM10>REF(DKXM10,1)&&DKXC5>REF(DKXC5,1),0.5),H,'多');DRAWTEXT(CROSS(DKXB重要15天均线<REF(DKXB重要15天均线,1)&&DKXM10<REF(DKXM10,1)&&DKXC5<REF(DKXC5,1),0.5),H,'空');。

文华财经指标文华财经期货软件指标多空争夺指标公式源码

文华财经指标文华财经期货软件指标多空争夺指标公式源码

/*MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);BM:=EMA(C,2);SM:=EMA(SLOPE(C,21)*22+C,42);BU:=CROSS(BM,SM);SEL:=CROSS(SM,BM);STICKLINE(BM>=SM,LOW,HIGH,0,1),COLORRED;STICKLINE(BM>=SM,CLOSE,OPEN,2,1),COLORRED;STICKLINE(BM<SM,LOW,HIGH,0,1),COLORCYAN;STICKLINE(BM<SM,CLOSE,OPEN,2,1),COLORCYAN;STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,1,0),COLORYELLOW;TT:=240/FROMOPEN;比:=TT;J12:=(HIGH-((HIGH-LOW)/3));J23:=(LOW+((HIGH-LOW)/3));T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0)); T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2)>1.05 AND REF(OPEN,1)> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1)AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN)> MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98),1,0));T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1)AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100 ),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2)AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1)AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)AND CLOSE<REF(CLOSE,1)),1,0));T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE>1.05 AND HIGH/LOW<OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPENAND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1)AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O>REF(O,1) AND C<REF(O,1)),1,0));T37:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));T38:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1)); */VAR2:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR3:=(20*VAR2+19*REF(VAR2,1)+18*REF(VAR2,2)+17*REF(VAR2,3)+16*REF(VAR2,4)+15*REF(V AR2,5)+14*REF(VAR2,6)+13*REF(VAR2,7)+12*REF(VAR2,8)+11*REF(VAR2,9)+10*REF(VAR2,10)+9*REF(VAR2,11)+8*REF(VAR2,12)+7*REF(VA R2,13)+6*REF(VAR2,14)+5*REF(VAR2,15)+4*REF(VAR2,16)+3*REF(VAR2,17)+2*REF(VAR2,18)+REF(VAR2,20))/210;VAR4:=MA(VAR3,13);VAR5:=EMA(MA(CLOSE,3),34);VAR6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;VAR7:=MA(VAR6,5);VAR8:=MA(VAR6,10);STICKLINE1(IF(VAR3<VAR5,VAR3<=1.015*VAR4,VAR3<=1.005*VAR4),VAR3,VAR4,10,1),COLOR0066 00 ;STICKLINE1(VAR3>1.005*VAR4,VAR3,VAR4,10,1),COLORFF00FF;DRAWTEXT(FILTER(MA(VAR6,10)<VAR7,1),VAR8,'↑'),COLORRED;DRAWTEXT(FILTER(MA(VAR6,10)>=VAR6,1),VAR8,'↓'),COLOR00FF00;多空安全线: VAR5,COLORWHITE;DRAWCOLORLINE(多空安全线>REF(多空安全线,1),多空安全线,COLORRED,COLORGREEN); STICKLINE1(COUNT(VAR3>1.005*VAR4 AND VAR3<=REF(VAR3,1),2)=2 ORCOUNT(IF(VAR3<VAR5,VAR3<=1.015*VAR4,VAR3<=1.005*VAR4) AND VAR3>=REF(VAR3,1),2)=2,VAR3,VAR4,10,0),COLORYELLOW;DRAWTEXT(REF(CROSS(VAR3,VAR4),2) AND VAR3>1.005*VAR4,VAR4,'★买入点'),COLORWHITE; DRAWTEXT(CROSS(VAR6,VAR7) AND VAR7<VAR8,VAR3-10*MINPRICE,'▲多空争夺'),VALIGN0,COLORYELLOW;VAR9:=1/WINNER(CLOSE);VARA:=MA(CLOSE,13);VARB:=100-ABS((CLOSE-VARA)/VARA*100);VARC:=LLV(LOW,75);VARD:=HHV(HIGH,75);VARE:=(VARD-VARC)/100;VARF:=SMA((CLOSE-VARC)/VARE,20,1);VAR10:=SMA((OPEN-VARC)/VARE,20,1);VAR11:=3*VARF-2*SMA(VARF,15,1);VAR12:=3*VAR10-2*SMA(VAR10,15,1);VAR13:=100-VAR12;VAR14:=100-VAR11;VAR15:=MA(WINNER(CLOSE*0.95)*100,3);VAR16:=100-IF(VAR9>5,IF(VAR9<100,VAR9,VARB-10),0);VAR17:=VAR15>VARB;VAR18:=REF(LOW,1)*0.9;VAR19:=LOW*0.9;VAR1C:=CLOSE-REF(CLOSE,1);VAR1D:=MAX(VAR1C,0);VAR1E:=ABS(VAR1C);VAR1F:=SMA(VAR1D,7,1)/SMA(VAR1E,7,1)*100;VAR20:=SMA(VAR1D,13,1)/SMA(VAR1E,13,1)*100;VAR21:=BARSCOUNT(CLOSE);VAR22:=SMA(MAX(VAR1C,0),6,1)/SMA(ABS(VAR1C),6,1)*100;VAR23:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR24:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR25:=SMA((SMA(VAR24,4,1)-50)*2,3,1);VAR29:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;DRAWTEXT(CROSS(VAR17,0.5) AND COUNT(VAR17=1,10)=1,VAR3,'激烈交锋'),COLORWHITE; VAR326:=IF(CLOSE>REF(CLOSE, 1),88,0);VAR327:=CLOSE/REF(CLOSE, 1)>1.050 AND HIGH/CLOSE<1.010 AND VAR326>0; STICKLINE1(VAR327>90,L*0.99,L*0.95,4,0),COLORYELLOW;DRAWTEXT(VAR327>90,LOW-10*MINPRICE,'追涨'),COLORYELLOW,VALIGN0;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档