文华财经指标公式 金山银山指标 精准买卖点指标 黄金白银原油
外汇指标公式文华财经指标真正好用的指标精准卖出指标
外汇指标公式文华财经指标真正好用的指标精准卖出指标引言外汇市场的波动性很高,准确的买入和卖出时机对于外汇交易者来说非常重要。
本文华财经指标是基于统计学原理和市场历史数据开发的一套精准的卖出指标。
通过分析市场趋势、波动率和买卖力量等指标,该指标能够有效地帮助交易者捕捉到外汇市场的卖出信号。
指标公式1. 趋势指标- 移动平均线(MA):通过计算一段时间内的价格平均值来判断市场趋势。
常用的移动平均线包括简单移动平均线(SMA)和指数移动平均(EMA)。
移动平均线(MA):通过计算一段时间内的价格平均值来判断市场趋势。
常用的移动平均线包括简单移动平均线(SMA)和指数移动平均(EMA)。
- 相对强弱指标(RSI):通过比较一段时间内的平均涨幅和平均跌幅的大小,来判断市场买卖力量的强弱程度。
相对强弱指标(RSI):通过比较一段时间内的平均涨幅和平均跌幅的大小,来判断市场买卖力量的强弱程度。
- 移动平均收敛/发散指标(MACD):通过计算两个不同时期的指数移动平均线之间的差距和比率,来判断市场的买卖信号。
移动平均收敛/发散指标(MACD):通过计算两个不同时期的指数移动平均线之间的差距和比率,来判断市场的买卖信号。
2. 波动率指标- 布林带(Bollinger Bands):由上、中、下三条轨道组成,可以显示市场价格的波动范围。
当价格触及布林带上轨时,表明市场处于超买状态,有可能出现卖出信号。
布林带(Bollinger Bands):由上、中、下三条轨道组成,可以显示市场价格的波动范围。
当价格触及布林带上轨时,表明市场处于超买状态,有可能出现卖出信号。
- 平均真实波动范围(ATR):通过计算一段时间内的最高价和最低价之差,来测量市场的波动性。
平均真实波动范围(ATR):通过计算一段时间内的最高价和最低价之差,来测量市场的波动性。
3. 买卖力量指标- 成交量指标(Volume):通过观察市场的买卖量,来判断市场买卖力量的强弱程度。
文华财经指标公式 混沌理论指标 精准买卖点指标 黄金白银原油
Y:=(HIGH+LOW)/2;AO:=MA(Y ,5 )-MA(Y ,34 );AO1:=REF(AO,1);AC:=AO-MA( AO,5);AC1:=REF(AC,1);E:REF(SMA(Y,13,1),8);CHI:REF(SMA(Y,8,1),5),COLORRED;CHUN:REF(SMA(Y,5,1),3),COLORYELLOW;STICKLINE(AO1>AO && AC1>AC && CLOSE<OPEN ,OPEN ,CLOSE ,COLORYELLOW ,0 );DRAWLINE(AO1>AO && AC1>AC && CLOSE<OPEN ,HIGH ,AO1>AO && AC1>AC && CLOSE<OPEN ,LOW ,COLORYELLOW);STICKLINE(AO1>AO && AC1>AC && CLOSE=OPEN ,OPEN ,CLOSE ,COLORYELLOW ,0 );DRAWLINE(AO1>AO && AC1>AC && CLOSE=OPEN ,HIGH ,AO1>AO && AC1>AC && CLOSE=OPEN ,LOW ,COLORYELLOW);STICKLINE(AO1>AO && AC1>AC && CLOSE>OPEN ,OPEN ,CLOSE ,COLORYELLOW ,1);DRAWLINE(AO1>AO && AC1>AC && CLOSE>OPEN,HIGH ,AO1>AO && AC1>AC && CLOSE>OPEN,CLOSE,COLORYELLOW );DRAWLINE(AO1>AO && AC1>AC && CLOSE>OPEN,LOW ,AO1>AO && AC1>AC && CLOSE>OPEN,OPEN ,COLORYELLOW );STICKLINE(AO1<AO && AC1<AC && CLOSE<OPEN,OPEN ,CLOSE ,COLORRED ,0 ); DRAWLINE(AO1<AO && AC1<AC && CLOSE<OPEN,HIGH,AO1<AO && AC1<AC && CLOSE<OPEN,LOW ,COLORRED );STICKLINE(AO1<AO && AC1<AC && CLOSE=OPEN ,OPEN ,CLOSE ,COLORRED ,0 ); DRAWLINE(AO1<AO && AC1<AC && CLOSE=OPEN ,HIGH ,AO1<AO && AC1<AC && CLOSE=OPEN,LOW ,COLORRED);STICKLINE(AO1<AO && AC1<AC && CLOSE>OPEN,OPEN ,CLOSE ,COLORRED,1); DRAWLINE(AO1<AO && AC1<AC && CLOSE>OPEN,HIGH ,AO1<AO && AC1<AC && CLOSE>OPEN,CLOSE,COLORRED);DRAWLINE(AO1<AO && AC1<AC && CLOSE>OPEN,LOW ,AO1<AO && AC1<AC && CLOSE>OPEN,OPEN ,COLORRED);STICKLINE(AO1>AO && AC1<AC && CLOSE<OPEN ,OPEN ,CLOSE ,COLORCY AN ,0 ); DRAWLINE(AO1>AO && AC1<AC && CLOSE<OPEN,HIGH ,AO1>AO && AC1<AC && CLOSE<OPEN,LOW ,COLORCYAN );STICKLINE(AO1>AO && AC1<AC && CLOSE=OPEN,OPEN ,CLOSE ,COLORCY AN ,0 ); DRAWLINE(AO1>AO && AC1<AC && CLOSE=OPEN,HIGH ,AO1>AO && AC1>AC && CLOSE=OPEN,LOW ,COLORCYAN );STICKLINE(AO1>AO && AC1<AC && CLOSE>OPEN,OPEN ,CLOSE ,COLORCY AN ,1 ); DRAWLINE(AO1>AO && AC1<AC && CLOSE>OPEN ,HIGH ,AO1>AO && AC1<AC && CLOSE>OPEN,CLOSE ,COLORCY AN );DRAWLINE(AO1>AO && AC1<AC && CLOSE>OPEN,LOW ,AO1>AO && AC1<AC && CLOSE>OPEN,OPEN ,COLORCYAN );STICKLINE(AO1<AO && AC1>AC && CLOSE<OPEN,OPEN ,CLOSE ,COLORCY AN ,0 ); DRAWLINE(AO1<AO && AC1>AC && CLOSE<OPEN,HIGH ,AO1<AO && AC1>AC && CLOSE<OPEN,LOW ,COLORCYAN );STICKLINE(AO1<AO && AC1>AC && CLOSE=OPEN,OPEN ,CLOSE ,COLORCY AN ,0 ); DRAWLINE(AO1<AO && AC1>AC && CLOSE=OPEN,HIGH,AO1<AO && AC1>AC && CLOSE=OPEN,LOW ,COLORCYAN );STICKLINE(AO1<AO && AC1>AC && CLOSE>OPEN,OPEN ,CLOSE ,COLORCYAN ,1 ); DRAWLINE(AO1<AO && AC1>AC && CLOSE>OPEN,HIGH ,AO1<AO && AC1>AC && CLOSE>OPEN,CLOSE ,COLORCY AN );DRAWLINE(AO1<AO && AC1>AC && CLOSE>OPEN,LOW ,AO1<AO && AC1>AC && CLOSE>OPEN,OPEN ,COLORCYAN );。
文华财经指标公式 战龙主图指标 精准买卖点 黄金白银原油恒指
HH1:=IFELSE(HIGH <REF(HIGH,2)&&REF(HIGH,1)<REF(HIGH,2),REF(HIGH,2),0);LL1:=IFELSE(LOW >REF(LOW,2)&&REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);HH2:=V ALUEWHEN(HH1>0,HH1);LL2:=V ALUEWHEN(LL1>0,LL1);K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0));K2:=V ALUEWHEN(K1<>0,K1);G:=IFELSE(K2=1,HH2,LL2);G1:=V ALUEWHEN(ISLASTBAR,G);DRAWNUMBER(L>0,G1,G1,0,COLORCYAN);W1:=K2;W2:=OPEN-CLOSE;HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);DRAWLINE(W1=1,HIGH,W1=1,HT,COLORCY AN);DRAWLINE(W1=1,LOW,W1=1,LT,COLORCY AN);DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED);DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED);STICKLINE(W1>0,OPEN,CLOSE,COLORCYAN,1);STICKLINE(W1<=0,OPEN,CLOSE,COLORRED,1);STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,COLORRED,0);STICKLINE(W2>0&&W1>0,OPEN,CLOSE,COLORCY AN,0);DRAWLINE(W1=1&&REF(W1,1)=1,G,W1=1&&REF(W1,1)=1,REF(G,1),COLORGREEN); DRAWLINE(W1=-3&&REF(W1,1)=-3,G,W1=-3&&REF(W1,1)=-3,REF(G,1),COLORYELLO W);DRAWSL(K2=1,G,0,1,0,COLORGREEN);DRAWSL(K2=-3,G,0,1,0,COLORYELLOW);HH:=IFELSE(HIGH>REF(HIGH,1)&& HIGH >REF(HIGH,2)&& HIGH >REF(HIGH,3)&& HIGH >REF (HIGH,4)&& LOW <REF(LOW,1)&& LOW <REF(LOW,2)&& LOW <REF(LOW,3)&&L<REF(LOW,4), HIGH -(HIGH- LOW)*0.333, HIGH);LL:=IFELSE (HIGH>REF(HIGH,1)&& HIGH>REF(HIGH,2)&& HIGH >REF(HIGH,3)&& HIGH >REF(HIGH,4)&& LOW <REF(LOW,1)&&L<REF(LOW,2)&& LOW <REF(LOW,3)&&L<REF(LOW,4),( HIGH - LOW)*0.333+ LOW, LOW);H1:=IFELSE(HIGH >=REF(HIGH,1)&& HIGH >=REF(HIGH,2)&& HIGH >=REF(HIGH,3)&& HIGH >=REF(HIGH,4)&& HIGH >REFX(HIGH,1)&& HIGH >REFX(HIGH,2)&& HIGH >REFX(HIGH,3)&& HIGH >REFX(HIGH,4),HH,0);L1:=IFELSE(LOW <=REF(LOW,1)&& LOW <=REF(LOW,2)&& LOW <=REF(LOW,3)&& LOW <=REF (LOW,4)&& LOW <REFX(LOW,1)&& LOW <REFX(LOW,2)&& LOW <REFX(LOW,3)&& LOW <REFX(LOW,4),LL,0);H2:=BARSLAST(H1);L2:=BARSLAST(L1);H3:=REFX(REF(H1,H2),2);L3:=REFX(REF(L1,L2),2);H4:=ZIGZAG(H3,0,0);L4:=ZIGZAG(L3,0,0);H5:=V ALUEWHEN(H4<REF(H4,1)&&REF(H4,1)>REF(H4,2),HH);L5:=V ALUEWHEN(L4>REF(L4,1)&&REF(L4,1)<REF(L4,2),LL);POL YLINE(H5>0,H5,COLORWHITE);POL YLINE(L5>0,L5,COLORWHITE);DRAWNUMBER(H5<>REF(H5,1),H5,H5-L5,0,COLORMAGENTA);DRAWNUMBER(L5<>REF(L5,1),L5,H5-L5,0,COLORMAGENTA);D:=V ALUEWHEN(ISLASTBAR,H5);E:=V ALUEWHEN(ISLASTBAR,L5);DRAWNUMBER(LOW>0,D,D,0,COLORWHITE);DRAWNUMBER(LOW>0,E,E,0,COLORWHITE);DRAWTEXT(CROSS(CLOSE,H5),H5,'♂');DRAWTEXT(CROSS(L5,CLOSE),L5,'▼');。
准确率最高的期货指标文华财经期货软件指标公式顶底之王指标
CAPITAL:=GETPRICE1('流通股本');AA:=ZIGZAG(C,5,1);DRAWNUMBER(AA=HHV(C,10),H*1.01,H,0,COLORGREEN);DRAWNUMBER(AA=LLV(C,10),L*0.99,L,0,COLOR00EEFF);HH:=REFX1(MA(H,125),125/2);LL:=REFX1(MA(L,125),125/2);金牛:(REFX1(MA(HH,125),125/2)-REFX1(MA(LL,125),125/2))*1+REFX1(MA(HH,125),125/2),DOT,LINET HICK5,COLORYELLOW;金钻趋势:REFX1(MA(LL,125),125/2)-(REFX1(MA(HH,125),125/2)-REFX1(MA(LL,125),125/2))*1,LINETHICK1 ,COLORRED;金牛2:EMA(金钻趋势,25),COLORCYAN,LINETHICK2;FILLRGN(金钻趋势>金牛2,金钻趋势,金牛2,RGB(55,0,0));FILLRGN(金钻趋势<金牛2,金钻趋势,金牛2,RGB(0,91,0));DRAWKLINE1(H,O,L,C);STICKLINE(金钻趋势>LOW AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),2,0),COLORYELLOW;STICKLINE(金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O),金钻趋势,MIN(OPEN,CLOSE),2,0),COLORYELLOW;STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(金钻趋势>HIGH,HIGH,LOW,0,0),COLORYELLOW;CC1:=REFX1(MA(C-REF(C,1),6),6/2);CC2:=REFX1(MA(ABS(C-REF(C,1)),6),6/2);VAR23:=100*REFX1(MA(CC1,6),6/2)/REFX1(MA(CC2,6),6/2);回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2)); XG:=金钻趋势>HIGH AND 回调买AND L<=金钻趋势;DRAWTEXT(XG,L,'▲TTT买入'),COLORRED;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN)))); QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE ))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ))); DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK1;V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);V5:=SMA(V2*120/FROMOPEN*5,2,1);V10:=SMA(V5,5,1);V20:=SMA(V10,5,1);CURRBARSCOUNT:=DATACOUNT-BARPOS+1;DY:=CURRBARSCOUNT=1 AND C<REF(C,1);DY2:=REF(V2,1)-DY;XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<金牛; DRAWTEXT(XG2 AND L<金钻趋势,L,'↖金钻起涨'),COLORMAGENTA;EMA3:EMA(C,3),COLORWHITE,LINETHICK2;EMA13:EMA(C,13),COLORYELLOW;EMA21:EMA(C,21),COLORFF00FF;EMA55:EMA(C,55),COLORGREEN;AR1:=EMA21>EMA13 AND EMA13>EMA3;AR2:=BARSLAST((C-EMA3)/EMA3*100<-6);AR3:=EMA3>=REF(EMA3,2);AR4:=COUNT(CROSS(C,EMA3),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'------启动'),COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA3-EMA13)+(EMA13-EMA21))/C<0.2;BR3:=C>EMA21 AND (REF(C,1)<REF(EMA21,1) OR REF(C,2)<REF(EMA21,2) OR REF(C,3)<REF(EMA21,3) OR REF(C,4)<REF(EMA21,4) OR REF(C,5)<REF(EMA21,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'------转强'),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA3,EMA21),3)=1;CR4:=ABS(EMA13-EMA21)/EMA21<0.03;CR5:=EMA21<=EMA55 AND EMA21>=REF(EMA21,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);DRAWTEXT(CR6,L-0.09,'---拉升'),COLORF00FF0;DR1:=EMA3>EMA13 AND EMA13<EMA21;DR2:=BARSLAST(CROSS(C,EMA21) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA21 AND BETWEEN((C-EMA21)/EMA21,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'------------拉升'),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;ER:=BARSLAST(REF(CROSS(EMA21,EMA13),1)) AND CROSS(EMA13,EMA21);DRAWTEXT(ER,L-0.09,'------上攻'),COLOR0099FF;FR:=BARSLAST(REF(CROSS(EMA13,EMA3),1)) AND CROSS(EMA3,EMA13);DRAWTEXT(FR,L-0.09,'------中继'),COLORWHITE;STICKLINE(FR,H,L,0.5,1),COLORWHITE;DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);BIAS1 : (CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2 : (CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;BIAS3 : (CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;GR1:=BARSLAST(BETWEEN(BIAS2,0,5));GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34)AND EMA(X1,13)>REF(EMA(X1,13),1);GR3:=COUNT(BIAS2>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:=MACD<REF(MACD,1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.3,'逃顶'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA3>=REF(EMA3,3) AND EMA13>=REF(EMA13,1) AND EMA21>=REF(EMA21,1) ANDCROSS(C,EMA3) AND CROSS(C,EMA13) AND CROSS(C,EMA21);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'进场!'),COLORFFC8FF;MA1:MA(CLOSE,34),COLORBLUE;K1:=(C+H+L)/3;D1:=MA(K1,4);高:=REF(HHV(H,80),3);低:=REF(LLV(L,80),3);顶点:REFX1(高,10000),COLORGREEN,LINETHICK2;低点:REFX1(低,10000),COLORRED,LINETHICK2;AA05:MA(C,5),LINETHICK3,COLOR00CCFF;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;IF(BB05>30 AND AA05>REF(AA05,1), AA05,NULL),LINETHICK3,COLORRED;买线:=ZIGZAG(C,10,1);卖线:=MA(买线,3);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(BU,L*0.99,'买多'),LINETHICK1,COLOR00AAFF;DRAWTEXT(SEL,H*1.01,'卖进'),LINETHICK1,COLOR00FF00;STICKLINE(买线>=卖线,LOW,HIGH,0,1),COLOR0000CC;STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLOR0000CC;STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORCYAN;STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORCYAN;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00AAFF;STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00DD00;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),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);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),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);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),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);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),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);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; DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;S:IF(卖1>0,HIGH*1.01,NULL),CROSSDOT,LINETHICK3,COLORGREEN;DRAWTEXT(卖1>0,HIGH*1.02,'卖'),COLORGREEN;DRAWICON((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)),LOW*0.98,1) ;DRAWICON((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)),HIGH*1.01,2);ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2,COLORFF00FF;D:=EMA(K,5),COLORWHITE;J:=K*3-D*2,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100,COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARF:=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);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'机构进场'),LINETHICK1,COLORFF00FF; VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'大顶(底)'),COLORWHITE;。
最准确的指标期货指标公式文华财经指标主力买卖指标
A:=(3*C+L+O+H)/6;//3倍收盘价与最高价、最低价、开盘价之和的均值。
B:(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF (A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A, 14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210,COLORMAGENTA,LINET HICK2;//对A值做加权均值计算。
D:MA(B,10),LINETHICK4,COLORRED;//对B值做10周期平均计算。
DRAWTEXT(CROSS(B,D),B,'主力★买'),COLORRED,FONTSIZE20;DRAWTEXT(CROSSDOWN(B,D),B,'游资★卖'),COLORGREEN,FONTSIZE20;DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0);范围高A:=REFX1(HHV(H,120),10000)*1.05;范围低A:=REFX1(LLV(L,120),10000)*0.95;MA5:=MA(C,5),COLORCYAN,LINETHICK2;MA24:=MA(C,24),COLORGREEN,LINETHICK2;MA72:=MA(C,72),COLORRED,LINETHICK2;MA200:=IF((MA(C,200)<=范围高 A AND MA(C,200)>=范围低A) OR C>=MA(C,200),MA(C,200),NULL),COLORBLUE,LINETHICK2;显示仪表盘1:=1;主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=NULL,0,MA200); 主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=NULL,0,MA200);主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=NULL,0,MA200);初升浪:=ISLASTBAR AND IF(MA200=NULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;底部反弹:=ISLASTBAR AND IF(MA200=NULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;探底阶段:=ISLASTBAR AND IF(MA200=NULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;观望:=ISLASTBAR AND IF(MA200=NULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);有牛:=ISLASTBAR AND IF(MA200=NULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);放弃:=ISLASTBAR AND IF(MA200=NULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);引差:=REF(C,1)-LOW,LINETHICK1,NODRAW;引跌幅:IF((REF(C,1)-LOW)/REF(C,1)*100>0,(REF(C,1)-LOW)/REF(C,1)*100,0),LINETHICK1,NODRAW;三日均跌:MA(引跌幅,3),COLORWHITE,NODRAW;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;强势: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,NULL),COLORFF00FF;突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,NULL),COLOR0000FF;警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,NULL),COLOR00FFFF;压力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,NULL),COLOR00FF00;低涨:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,NULL),COLOR0000FF,NODRAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;顶点:IF(CURRBARSCOUNT<=N/2, REFX1(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1),10000),NULL),COLORRED,CROSSDOT,NODRAW;低点:IF(CURRBARSCOUNT<=N/2, REFX1(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1),10000),NULL),COLORMAGENTA,CROSSDOT,NODRAW; TYP:=(CLOSE+HIGH+LOW)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));STICKLINE1(CCI>=200 AND H>=顶点,O,C,2,0),COLORBLUE;STICKLINE1(CCI<=100 AND L<=低点,O,C,2,0),COLORYELLOW;STICKLINE1(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR408080,NODRAW;STICKLINE1(CURRBARSCOUNT<=N/2,支撑,支撑,2,0),COLOR1E1E1E;STICKLINE1(CURRBARSCOUNT<=N/2,强势,强势,2,0),COLOR1E1E1E;STICKLINE1(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLOR1E1E1E;STICKLINE1(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR1E1E1E;STICKLINE1(CURRBARSCOUNT<=N/2,压力,压力,2,0),COLOR1E1E1E;DRAWTEXT(CURRBARSCOUNT=10,压力,'压力-0.809'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,强势,'强势-0.382'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,支撑,'支撑-0.191'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--主力拉升'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸区】--大胆买入'),COLORFFFFFF;第一防线:REFX1(低,10000),DOT,COLORYELLOW,NODRAW;第二防线:REFX1(支撑,10000),DOT,COLORWHITE,NODRAW;DRAWKLINE1(H,O,L,C);AHC1:=CLOSE*VOL;AHC22:=EMA((EMA(AHC1,27)/EMA(VOL,27)+EMA(AHC1,54)/EMA(VOL,54)+EMA(AHC1,108)/EMA (VOL,108)+EMA(AHC1,316)/EMA(VOL,316))/4,34);上轨:=1.06*AHC22,COLOR40FF00,LINETHICK1;下轨:=AHC22*0.94;ZT:=REF(C,1)*1.1-C<0.01 AND H=C;启爆:=CROSS(C,上轨) OR CROSS(C,下轨) AND ZT;DRAWTEXT(启爆,L,'启爆'),COLORCYAN;STICKLINE1(启爆,C,O,3,1),COLORWHITE;STICKLINE1(启爆,C,O,1,0),COLORGREEN;STICKLINE1(C>=O ,HIGH,LOW,0,1 ),COLORRED;STICKLINE1(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;STICKLINE1(C>=O,OPEN,CLOSE,2.7,0 ),COLOR000066;STICKLINE1(C>=O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE1(C>=O ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;STICKLINE1(C>=O ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;STICKLINE1(C>=O ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;STICKLINE1(C<O ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE1(C<O ,OPEN,CLOSE,3.1,0 ),COLOR990000;STICKLINE1(CLOSE<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE1(CLOSE<O ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE1(CLOSE<O ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE1(CLOSE<O ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE1(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;CC:IF(CURRBARSCOUNT<18,REFX1(REF(C,1),10000),NULL),COLOR000000,NODRAW;止赢:1.05*CC,COLORMAGENTA,LINETHICK1;DRAWTEXT(ISLASTBAR,止赢,'止赢'),LINETHICK1;止损:0.97*CC,COLORYELLOW,LINETHICK1;DRAWTEXT(ISLASTBAR,止损,'止损'),LINETHICK1;DRAWNUMBER(ISLASTBAR,C,C,0,COLORWHITE);AAA:=REFX1(HHV(H,50),10000);PL5:=HHV(H,45);F:=100*(C-REF(C,1))/REF(C,1);博尔:=IF(C<REF(O,1) AND F<0,1,0);P1:=博尔;量化:=IF(C<REF(O,2) AND F<0,1,0);P2:=量化;STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,3,0),COLOR0055FF; 操作30日均线:EMA(C,30),COLORYELLOW,LINETHICK4;红升:IF(操作30日均线>REF(操作30日均线,1),操作30日均线,NULL),COLORRED,LINETHICK4; 绿降:IF(操作30日均线<REF(操作30日均线,1),操作30日均线,NULL),COLOR009300,LINETHICK4;趋势55日线:EMA(C,55),COLORYELLOW,LINETHICK1,NODRAW;红升4:IF(趋势55日线>REF(趋势55日线,1),趋势55日线,NULL),COLOR0080FF,LINETHICK1;绿降4:IF(趋势55日线<REF(趋势55日线,1),趋势55日线,NULL),COLORFFFF00,DOT,LINETHICK1; 年线:EMA(C,250),COLORYELLOW,LINETHICK1,NODRAW;年红升:IF(年线>REF(年线,1),年线,NULL),COLOR8000FF,LINETHICK1;年绿降:IF(年线<REF(年线,1),年线,NULL),COLORFFFF00,DOT,LINETHICK1;。
文华财经软件指标源码公式判断趋势的最佳指标公式源码
/* Z:=(HHV(H,3)+LLV(L,3))/2;A:=IF(C>ZZ,VOL,0);B:=IF(C<ZZ,VOL,0);总0:=(A-B);BBD:EMA(总0,3)/SUM(VOL,5)*600,LINETHICK;STICKLINE(BBD>=0,0,BBD,3,0),COLOR000088;STICKLINE(BBD>=0,0,BBD,1.5,0),COLOR0000AA;STICKLINE(BBD>=0,0,BBD,1,0),COLOR0000CC;STICKLINE(BBD>=0,0,BBD,0.5,0),COLOR0000FF;STICKLINE(BBD<0,0,BBD,3,0),COLOR888800;STICKLINE(BBD<0,0,BBD,1.5,0),COLORAAAA00;STICKLINE(BBD<0,0,BBD,1,0),COLORCCCC00;STICKLINE(BBD<0,0,BBD,0.5,0),COLORFFFF00;XH1:=REF(BBD,1)<REF(BBD,2) AND REF(BBD,1)<-10 AND BBD>REF(BBD,1) AND BBD>0; XH2:=REF(BBD,1)>=REF(BBD,2) AND REF(BBD,1)>8 AND BBD<REF(BBD,1) AND BBD<0; DRAWICON(XH1,-20,1);DRAWICON(XH2,20,2);AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;HHH:=BBB-LLV(BBB,27);CCC:=LLV(BBB,27)-BBB;QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK1;SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1;GG:=MA(HHH,5),LINETHICK1,COLORGREEN;MM:=MA(CCC,5),LINETHICK1,COLORGREEN;WW:=IF(QQ<GG,SS,MM),LINETHICK1,COLOR0000FF;EE:=IF(SS<MM,GG,QQ),COLORFFFFCC,LINETHICK1;★买:=IF(EE-WW<5.6,200,0);RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);:=1;趋势:=MA(C,N);T:MA(H,N),COLOR0000FF,NODRAW;B:MA(L,N),COLOR00FF00,NODRAW;高:=IF(T=0,C,IF(B<T,MA(H,N),REF(MA(H,N),1))),COLOR00FFFF,NODRAW;低:=IF(B=0,C,IF(T<B,MA(L,N),REF(MA(L,N),1))),COLOR00FF00,NODRAW;上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORRED,LINETHICK2;下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2;STICKLINE(T<B,低,高,1,1),COLORRED;STICKLINE(B<T,高,低,1,1),COLORWHITE;STICKLINE(T=0,H*1.01,高,2,0),COLOR00FF00;STICKLINE(B=0,L*0.99,低,2,0),COLORFF00FF;KJ:=高-低;H1:高-KJ*0.20,COLOR00FFFF,NODRAW;H2:高-KJ*0.40,COLOR0000FF,NODRAW;H3:高-KJ*0.50,COLORFFFFFF,NODRAW;H4:高-KJ*0.60,COLORFF00FF,NODRAW;H5:高-KJ*0.80,COLOR00FF00,NODRAW;STICKLINE(T<B AND T>0 AND 趋势<高,高,高,1,1),COLOR00FF00;STICKLINE(T<B AND T>0 AND 趋势<H1,H1,H1,1,1),COLOR00FF00;STICKLINE(T<B AND T>0 AND 趋势<H2,H2,H2,1,1),COLOR00FF00;STICKLINE(T<B AND T>0 AND 趋势<H3,H3,H3,1,1),COLORFFFFFF;STICKLINE(T<B AND T>0 AND 趋势<H4,H4,H4,1,1),COLOR00FF00;STICKLINE(T<B AND T>0 AND 趋势<H5,H5,H5,1,1),COLOR00FF00;STICKLINE(B<T AND B>0 AND 趋势>H1,H1,H1,1,1),COLORFF00FF;STICKLINE(B<T AND B>0 AND 趋势>H2,H2,H2,1,1),COLORFF00FF;STICKLINE(B<T AND B>0 AND 趋势>H3,H3,H3,1,1),COLORFFFFFF;STICKLINE(B<T AND B>0 AND 趋势>H4,H4,H4,1,1),COLORFF00FF;过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH),COLORRED;买:IF(黄金 AND RSVV<VARB2-2,180,0),COLOR00FFFF,STICK,LINETHICK1; DRAWTEXT(买>0,99.6,'买'),COLORFFFFFF;*/股价趋势:=((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;STICKLINE1((股价趋势<= 10),0,20,2,0),LINETHICK2,COLORYELLOW;STICKLINE1(CROSS(股价趋势,底部警戒),0,30,3,0),COLORWHITE;顶部警戒:=90;STICKLINE1((股价趋势>= 85),100,80,2,0),LINETHICK2,COLOR66FF00;STICKLINE1(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,'☆短底'),COLORGRAY;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);STICKLINE1(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))); STICKLINE1(XL3,0,(VAR8 * 2),6,0),COLORFF00CC;DRAWICON(XL3,40,25),COLORFF99CC;DRAWICON(红灯,1.1,9);DRAWICON(绿灯,80,15);。
文华财经指标公式压力支撑指标公式最准确的买卖点指标
N1:=10;N2:=10;DISP:=2;K:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10; P1:=PEAK(H,10,1,1);P2:=PEAK(H,10,2,1);WP1:=PEAKBARS(H,10,1,1);WP2:=PEAKBARS(H,10,2,1);T111:=TROUGH(L,10,1,1);T2:=TROUGH(L,10,2,1);WT111:=TROUGHBARS(L,10,1,1);WT2:=TROUGHBARS(L,10,2,1);TJ1:=P1>T111 AND P2>T2 ;ZD:=MAX(T111,T2);ZG:=MIN(P1,P2);LL:=MIN(T111,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,NULL);ZSG:=IF(TJ8,ZG,NULL);ZSH:=IF(TJ8,HH,NULL);ZSL:=IF(TJ8,LL,NULL);STICKLINE1(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE1(TJ8,ZSD,ZSG,0,1),COLORMAGENTA;DRAWTEXT(DISP=2,ZSH,'中枢'),COLORRED;POLYLINE1(DISP=2,REF(ZSD,BARSLAST(TJ8))),CROSSDOT,COLORLIGHTRED;POLYLINE1(DISP=2,REF(ZSG,BARSLAST(TJ8))),CROSSDOT,COLORLIGHTGREEN;POLYLINE1(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED;POLYLINE1(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN;POLYLINE1(DISP=3,ZIGZAG(H,10,1)),COLORLIGHTBLUE;POLYLINE1(DISP=3,ZIGZAG(L,10,1)),COLORLIGHTBLUE;局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LLVBARS(L,20);大值周期:=HHVBARS(H,20);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)<>1) OR REF(低保留S,距前低天)=0,1,0); 判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)<>1) OR REF(高保留,距前高天)=0,1,0); 判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)<>1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0); 预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)<>1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)<>1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)<>1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0); AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,NULL)), CIRCLEDOT ,COLORYELLOW; DRAWLINE3(极点保留=-1,HHV(H,SUMBARS(极点保留=-1,2)-1),HHVBARS(H,SUMBARS(极点保留=-1,2)-1),极点保留=1,LLV(L,SUMBARS(极点保留=1,2)-1),LLVBARS(L,SUMBARS(极点保留=1,2)-1),0),COLORYELLOW;DRAWLINE3(极点保留=1,LLV(L,SUMBARS(极点保留=1,2)-1),LLVBARS(L,SUMBARS(极点保留=1,2)-1),极点保留=-1,HHV(H,SUMBARS(极点保留=-1,2)-1),HHVBARS(H,SUMBARS(极点保留=-1,2)-1),0),COLORRED;DD1:=BARSLAST(ABS(极点保留)<>1);DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN;DRAWTEXT(极点保留=-1,局部极点,'买'),COLORRED;MA5:MA(CLOSE,5),COLORFF00FF,LINETHICK2;判:IF(MA5<REF(MA5,1),MA5,NULL),COLORWHITE,LINETHICK2;。
文华财经指标公式1
文华财经指标公式1CURRBARSCOUNT:=BARPOS;DA1:=IF(130>BARPOS,BARPOS,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFX1(HHV(H,DA),10000);LO:=REFX1(LLV(L,DA),10000);C1001:=IF(CURRBARSCOUNT<>GZ:=EXP(LN(HI/LO)/30);LH1:=SUM(IF(C1001>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1001>=(HI/POW(GZ,2)) AND C1001<(hi> LH3:=SUM(IF(C1001>=(HI/POW(GZ,3)) AND C1001<(hi> LH4:=SUM(IF(C1001>=(HI/POW(GZ,4)) AND C1001<(hi> LH5:=SUM(IF(C1001>=(HI/POW(GZ,5)) AND C1001<(hi> LH6:=SUM(IF(C1001>=(HI/POW(GZ,6)) AND C1001<(hi> LH7:=SUM(IF(C1001>=(HI/POW(GZ,7)) AND C1001<(hi> LH8:=SUM(IF(C1001>=(HI/POW(GZ,8)) AND C1001<(hi> LH9:=SUM(IF(C1001>=(LO*GZ) AND C1001<>LH10:=SUM(IF(C1001>=LO AND C1001<>L1001:=REFX1(HHV(LH1,DA),10000),NODRAW;L2001:=REFX1(HHV(LH2,DA),10000),NODRAW;L3001:=REFX1(HHV(LH3,DA),10000),NODRAW;L4001:=REFX1(HHV(LH4,DA),10000);L5001:=REFX1(HHV(LH5,DA),10000);L6001:=REFX1(HHV(LH6,DA),10000);L7:=REFX1(HHV(LH7,DA),10000);L8:=REFX1(HHV(LH8,DA),10000);L9:=REFX1(HHV(LH9,DA),10000);L10:=REFX1(HHV(LH10,DA),10000);SSS:=(L1001+L2001+L3001+L4001+L5001+L6001+L7+L8+ L9+L10);VAR121:=ZIGZAG(C,6,1)=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),C);VAR141:=ZIGZAG(C,22,1)=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),C);VAR161:=ZIGZAG(C,51,1)=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),C);VAR181:=ZIGZAG(C,72,1)=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),C);卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;STICKLINE1(CEILING(DA*L2001/SSS,1)*3>=CURRBARSCOU NT AND BARSCOUNT(C)>100 ,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0), COLOR7C7C7A,LINETHICK3;STICKLINE1(CEILING(DA*L3001/SSS,1)*3>=CURRBARSCOU NT AND BARSCOUNT(C)>100 ,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0), COLOR3C3C3A,LINETHICK3;STICKLINE1(CEILING(DA*L4001/SSS,1)*3>=CURRBARSCOU NT AND BARSCOUNT(C)>100 ,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0), COLOR3C3C3A,LINETHICK3;STICKLINE1(CEILING(DA*L5001/SSS,1)*3>=CURRBARSCOU NT AND BARSCOUNT(C)>100 ,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0),COLOR3C3C3A,LINETHICK3;STICKLINE1(CEILING(DA*L6001/SSS,1)*3>=CURRBARSCOU NT AND BARSCOUNT(C)>100 ,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0), COLOR3C3C3A,LINETHICK3;STICKLINE1(CEILING(DA*L7/SSS,1)*3>=CURRBARSCOUNT ANDBARSCOUNT(C)>100 ,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0), COLOR3C3C3A,LINETHICK3;STICKLINE1(CEILING(DA*L8/SSS,1)*3>=CURRBARSCOUNT ANDBARSCOUNT(C)>100 ,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0) ,COLOR3C3C3A,LINETHICK3;STICKLINE1(CEILING(DA*L9/SSS,1)*3>=CURRBARSCOUNT ANDBARSCOUNT(C)>100 ,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0) ,COLOR3C3C3A,LINETHICK3;STICKLINE1(CEILING(DA*L10/SSS,1)*3>=CURRBARSCOUNT ANDBARSCOUNT(C)>100 ,LO,LO*POW(GZ,1)*99/100,9,0),COLOR3C3 C3A,LINETHICK3;STICKLINE1(CEILING(DA*L1001/SSS,1)*3>=CURRBARSCOU NT AND BARSCOUNT(C)>100,HI*99/100,HI/GZ,9,0),COLOR3C3C3A,LINET HICK3;DRAWKLINE1(HIGH,OPEN,LOW,CLOSE);/*上榜:=SIGNALS_USER(300, 0), NODRAW;{上榜金额>1,则表示上榜了,这个是上榜总金额}净买入:=SIGNALS_USER(299, 0), NODRAW;DRAWICON(上榜>=1 AND 净买入>=0 ,L*0.995,38);DRAWICON(上榜>=1 AND 净买入<0>NAME_299 := '↖ 龙'OUTTEXT_299:=VARCAT(VARCAT(NAME_299, ' '), VAR2STR(净买入, 0)), NODRAW;DRAWTEXT((上榜>=1) ,-LOW*0.01+LOW,OUTTEXT_299),COLORLIRED;*/N:=8;KK:=0;TYP := (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,6));CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAAB:=(3*C+H+L+O)/6;VVAR1:=(8*AAAB+7*REF(AAAB,1)+6*REF(AAAB,2)+5*REF(A AAB,3)+4*REF(AAAB,4)+3*REF(AAAB,5)+2*REF(AAAB,6)+REF(AA AB,8))/36;VVAR6:=(LLV(VVAR1,2)+LLV(VVAR1,4)+LLV(VVAR1,6))/3;短线:IF(KK=0, VVAR1, NULL),COLORWHITE;中线:IF(KK=0,VVAR6, NULL),COLORYELLOW;FILLRGN1(短线>中线,中线,短线),RGB(200,10,10);FILLRGN1(短线<>下跌:IF(KK=0 AND VVAR1=VVAR6,VVAR6, NULL),COLORGREEN;中:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOS E,24))/4;上轨:IF(KK=1,中+3*STD(中,10),NULL),COLOR000088,LINETHICK1;IF(KK=1,2*MA(上轨,12)-MA(C,21),NULL),COLOR666666;N1:=10;N2:=10;DISP:=2;P1:=PEAK(1,1,1,1);P2:=PEAK(1,1,2,1);WP1:=PEAKBARS(1,1,1,1);WP2:=PEAKBARS(1,1,2,1);T1:=TROUGH(2,1,1,1);T2:=TROUGH(2,1,2,1);WT1:=TROUGHBARS(2,1,1,1);WT2:=TROUGHBARS(2,1,2,1);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,RE F(BARSLAST(TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,RE F(BARSLAST(TJ4),1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<>TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,NULL);ZSG:=IF(TJ8,ZG,NULL);ZSH:=IF(TJ8,HH,NULL);ZSL:=IF(TJ8,LL,NULL);STICKLINE1(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE1(TJ8,ZSD,ZSG,0,1),COLORMAGENTA;DRAWTEXT(DISP=2,ZSH,'中枢'),COLORRED;POLYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8)),COLORRED),CR OSSDOT;POLYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8)),COLORGREEN),C ROSSDOT;POLYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8)),COLORRED),POI NTDOT;POLYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8)),COLORGREEN),P OINTDOT;POLYLINE(DISP=3,ZIGZAG(H,1,1),COLORBLUE);POLYLINE(DISP=3,ZIGZAG(L,1,1),COLORBLUE);局部低点预选A:=BACKSET(LLV(L,5)<>局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L>REF(H,1),1,IF(H<>距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=20;大值周期:=20;低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<>低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=ref(距前低天,1) and="" (距前高天="">=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<>低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<>预判:=IF((距前低天<4 and=""><>1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=ref(距前高天,1) and="" 预判="1" and="" 大值周期="">REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=ref(距前高天,1) and="" ref(低保留s,距前低天)="-1" and="" (距前低天="">=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 and=""><>1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=ref(距前低天,1) and="" 预判a="1" and="" 小值周期="">REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<>低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=ref(距前低天,1) and="" (距前高天="">=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<>距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 and=""><>1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=ref(距前高天a,1) and="" 预判x="1" and="" 大值周期="">REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=ref(距前高天a,1) and="" ref(低保留,距前低天a)="-1" and="" (距前低天a="">=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 and=""><>1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=ref(距前低天a,1) and="" 预判xa="1" and="" 小值周期="">REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<>低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=ref(距前低天a,1) and="" (距前高天a="">=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<>距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 and=""><>1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=ref(距前高天ya,1) and="" 预判yx="1" and="" 大值周期="">REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=ref(距前高天ya,1) and="" ref(低保留x,距前低天ya)="-1" and="" (距前低天ya="">=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 and=""><>1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=ref(距前低天ya,1) and="" 预判yxa="1" and="" 小值周期="">REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<> 低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=ref(距前低天ya,1) and="" (距前高天ya="">=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<>AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<>极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,NULL)) ,CIRCLEDOT ,COLORYELLOW;DRAWLINE1(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORRED;DRAWLINE1(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORYELLOW;DD1:=BARSLAST(ABS(极点保留)<>1);//MA5:MA(CLOSE,5),COLORFF00FF,LINETHICK2;//判:IF(MA5<>DRAWICON(极点保留=1,局部极点,2);DRAWICON(极点保留=-1,局部极点,1);FROMOPEN:=IF(HOUR<>V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL ,1)-1,VOL/REF(VOL,1)-1);STICKLINE(V2>=1,O,C,1,0),COLORYELLOW;TY:=C;//{收盘价}A1:=REF(TY,10)=HHV(TY,2*10+1);//{10日前收盘价等于21天内最高价}VB1:=FILTER(A1,10);//{当出现A1条件时,过滤10天后连续出现的信号}C1:=BACKSET(VB1,10+1);//{将当前位置到11天前的位置设为1}HD:=FILTER(C1,10);//{将当前位置到10天后的位置设为1}A2:=REF(TY,10)=LLV(TY,2*10+1);//{10天前的收盘价等于21天内最低价}VB2:=FILTER(A2,10);//{过滤10天内连续出现的信号}C2:=BACKSET(VB2,10+1);//{将当前位置到11天前的位置设为1}LD:=FILTER(C2,10);//{当出现C2后,10天后的数据不予记录}A:=REF(C,BARSLAST(HD));//{设值上次高点位置}B:=REF(C,BARSLAST(LD));//{设值上次低点位置}T11:=BARSLAST(HD)//{上升波段回调不创新低没新高}T21:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);//{下降波段反弹不创新高没新低}波峰:IF(T11,A,A),COLORFF00FF,POINTDOT;//符合T1条件,高位线为紫色点状线}STICKLINE(T11,A,A,9,0),COLORFF00FF;//{高位画横线}波谷:IF(T21,B,B),COLOR80FF00,POINTDOT;//{符合T2条件,高位线为绿色点状线}STICKLINE1(T21,B,B,9,0),COLOR80FF00;/*低位画横线};{假阳真阴*/AMOUNT:=AVPRICE*V;均价:=AMOUNT/VOL/100;假阳:=C>O AND REF(C,1)>均价 AND C>均价 AND C<300> STICKLINE1(假阳,O,C,1,0);标志阴:=REF(C,1)/C>1.04;STICKLINE1(标志阴,O,C,1,0),COLORWHITE;{假阴真阳}假阴:=O>C AND 均价>REF(C,1) AND C>MA(C,5);STICKLINE(假阴,O,C,1,0),COLORRED;平量:=V>REF(V,1)*0.95 AND V无量平量穿越:=WINNER(C)-WINNER(O)>=0.2 AND 平量;STICKLINE1(无量平量穿越,O,C,1,0),COLORBLUE;倍阴柱:=VOL>=REF(V,1)*1.9 AND CSTICKLINE1(倍阴柱,O,C,1,0);//涨跌停价格显示};AA:=(C-REF(C,1))/REF(C,1)*100;ZS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA>=4.945;DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<>涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW,COLORRED;跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW,COLORGREEN;第一组:=REF(H-REF(L,1),1);第二组:=REF(REF(H,1)-REF(L,2),1);第三组:=REF(REF(H,2)-REF(L,3),1);平均值:=(第一组+第二组+第三组)/3;上线:=平均值+REF(L,1),NODRAW;平均波动:=REF(((H-L)+(REF(H,1)-REF(L,1))+(REF(H,2)-REF(L,2)))/3,1);下线:=上线-平均波动,NODRAW;中线1:=(上线+下线)/2,NODRAW;D_2R3_ZQ1:=CURRBARSCOUNT<>D_2R3_ZQ2:=CURRBARSCOUNT<>D_2R3X1:=IF(D_2R3_ZQ1, 上线, NULL);D_2R3X2:=IF(D_2R3_ZQ1, 中线1,NULL);D_2R3X3:=IF(D_2R3_ZQ1, 下线, NULL);D_2R3X11:IF(D_2R3_ZQ2,D_2R3X1,NULL);D_2R3X12:IF(D_2R3_ZQ2,D_2R3X2,NULL);D_2R3X13:IF(D_2R3_ZQ2,D_2R3X3,NULL);STICKLINE1(D_2R3_ZQ2 ,D_2R3X11,D_2R3X11,20,-1),COLORLIGHTBLUE;STICKLINE1(D_2R3_ZQ2 ,D_2R3X12,D_2R3X12,20,-1),COLORYELLOW;STICKLINE1(D_2R3_ZQ2 ,D_2R3X13,D_2R3X13,20,-1),COLORWHITE;DRAWTEXT(D_2R3_ZQ1,D_2R3X11,' 上线'),COLORLIGHTBLUE;DRAWTEXT(D_2R3_ZQ1,D_2R3X12,' 中线1'),COLORMAGENTA;DRAWTEXT(D_2R3_ZQ1,D_2R3X13,' 下线'),COLORWHITE;/*DRAWTEXT_FIX(ISLASTBAR AND C<上线 and="" c="">中线AND C<>DRAWTEXT_FIX(ISLASTBAR AND C<中线and="" c="">下线AND C<>DRAWTEXT_FIX( ISLASTBAR AND C<下线 ,="">DRAWTEXT_FIX( ISLASTBAR AND C>上线AND C>O , 0.85,0.95,0,'【上线过,可做多】'),COLORWHITE;DRAWTEXT_FIX( ISLASTBAR AND C>中线AND C<上线and="" c="">O, 0.85,0.95,0,'【中线过,分强弱】'),COLORWHITE;DRAWTEXT_FIX( ISLASTBAR AND C>下线AND C<中线and="" c="">O, 0.85,0.95,0,'【中线下,走势弱】'),COLORWHITE;{涨跌停K线标识};*/ST:=NAMELIKE('ST')=1 OR NAMELIKE('*ST')=1 OR NAMELIKE('SST')=1OR NAMELIKE('S*ST')=1 OR NAMELIKE('S ST')=1;涨停:=C>=REF(C,DAYBARPOS)*1.099;跌停:=C<>STICKLINE1(涨停,C,O,3,0),COLORMAGENTA;STICKLINE1(跌停,C,O,3,0),COLORGREEN;//DRAWICON(H=ZTPRICE(REF(CLOSE,1),0.1) AND C!=H,L*0.965,15);STICKLINE1(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96,(c+o)> //{中分线};STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96,(max(o,c)-min(o,c))*2>//{上三一线};STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96,(max(o,c)-min(o,c))>//{下三一线};//{下三一线};。