文华带标注AO动量震荡指标公式

合集下载

ao震荡指标

ao震荡指标

ao震荡指标摘要:一、ao震荡指标简介二、ao震荡指标计算方法三、ao震荡指标应用策略四、ao震荡指标实战案例分析五、ao震荡指标优缺点六、总结与建议正文:一、ao震荡指标简介AO震荡指标(Accelerator Oscillator)是由著名技术分析师Welles Wilder Jr.开发的一种动量指标,用于识别市场趋势的变化和价格的加速运动。

在我国,AO震荡指标也被称为“加速指标”。

二、ao震荡指标计算方法AO震荡指标计算公式如下:AO = ∑(Close_i - Close_i-1) / N其中,Close_i表示当前周期收盘价,Close_i-1表示前一个周期收盘价,N为计算周期。

三、ao震荡指标应用策略1.判断市场趋势:当AO指标上升,说明市场趋势向上;当AO指标下降,市场趋势向下。

2.寻找买卖点:AO指标上穿零线,可视为买入信号;AO指标下穿零线,可视为卖出信号。

3.确认趋势反转:当AO指标在上升趋势中出现下降,并下穿零线,可视为趋势反转信号;当AO指标在下降趋势中出现上升,并上穿零线,可视为趋势反转信号。

四、ao震荡指标实战案例分析1.案例一:某股票在上涨过程中,AO指标持续上升,表明市场趋势向上,可继续持有。

2.案例二:某股票在下跌过程中,AO指标出现反弹,但未能上穿零线,表明市场仍处于下降趋势,不宜介入。

3.案例三:某股票在横盘整理期间,AO指标出现明显的下跌趋势,预示着可能的下跌行情,可考虑卖出。

五、ao震荡指标优缺点优点:1.能够反映市场加速运动,有助于捕捉趋势变化。

2.操作简单,易于理解。

缺点:1.对市场噪音较敏感,容易产生误判。

2.周期选择和参数设置较为关键,不同市场和品种适用性有限。

六、总结与建议AO震荡指标作为一种动量指标,在识别市场趋势变化和价格加速运动方面具有一定的参考价值。

然而,投资者在使用过程中需注意周期选择和参数设置,并结合其他技术指标和市场信息,以提高分析的准确性。

文华指标公式分享,满足一下大家!

文华指标公式分享,满足一下大家!

文华指标公式分享,满足一下大家!大家在评论都一直跟我说要文化的指标,时间有限,先做这么多吧,很多朋友问我怎么使用,等我下午或者明天有空的时候在整理吧。

还想知道其他的,都可以在评论区提出来,看到我会及时回复的!第一、文华财经副图指标仓量王NN:=BARSLAST(DATE<>REF(DATE,1))+1;KH:=HHV(NN,300);VERTLINE(DATE<>REFX(DATE,1) AND ISLASTBAR<>1 AND KH<>1,COLORBLUE);QQ:=OPI-REF(OPI,1);K1:=IF(CLOSE>OPEN AND QQ>=0,QQ,0);KK1:=IF(CLOSEKKK1:=IF(CLOSE=OPEN,QQ*0.5,0);K2:=IF(CLOSE=0,QQ,0);KK2:=IF(CLOSE>OPEN AND QQ<0,QQ,0);DO:=SUM(K1,NN)+SUM(KK1,NN)+SUM(KKK1,NN);KO:=SUM(K2,NN)+SUM(KK2,NN)+SUM(KKK1,NN);N4:=IF(NN<=4,NN,4);VK1:=IF(CLOSE>=OPEN,VOL,0);VK2:=IF(CLOSE<=OPEN,VOL,0);VDO:=SUM(VK1,N4);VKO:=SUM(VK2,N4);VDK:=VDO-VKO;//STICKLINE(VDK>=0,VDK,0,COLORRED,0);//STICKLINE(VDK<=0,VDK,0,COLORCYAN,0);CC:=SUM(QQ,NN);DRAWNUMBER(ISLASTBAR ANDCC>0,0,CC,0,COLORMAGENTA);DRAWNUMBER(ISLASTBAR AND CC<0,0,CC,0,COLORBLUE);POLYLINE(CLOSE>0,DO,COLORRED);POLYLINE(CLOSE>0,KO,COLORGREEN);W:=MOD(NN,5);J:=BACKSET(ISLASTBAR,5);DRAWNUMBER(ISLASTBAR,DO,DO,0,COLORYELLOW);DRAWNUMBER(ISLASTBAR,KO,KO,0,COLORGREEN);DRAWNUMBER(W=0 AND J=0,DO,DO,0,COLORYELLOW);DRAWNUMBER(W=0 AND J=0,KO,KO,0,COLORGREEN);第二、顶底背离主图源码DIFELSEF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA:= EMA(DIFELSEF,9);LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;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;TR := 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(IFELSE(HD>0 && HD>LD,HD,0),14);MDM:= SUM(IFELSE(LD>0 && LD>HD,LD,0),14);PDI:= PDM*100/TR;MDI:= MDM*100/TR;A1:=BARSLAST(REF(CROSS(DIFELSEF,DEA),1));B1:=REF(CLOSE,A1+1)>CLOSE && REF(DIFELSEF,A1+1) A2:=BARSLAST(REF(CROSS(K,D),1));B2:=REF(CLOSE,A2+1)>CLOSE && REF(K,A2+1)A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));B3:=REF(CLOSE,A3+1)>CLOSE && REF(RSI1,A3+1)C1:=BARSLAST(REF(CROSS(DEA,DIFELSEF),1));D1:=REF(CLOSE,C1+1)>DIFELSEF && CROSS(DEA,DIFELSEF);C2:=BARSLAST(REF(CROSS(D,K),1));D2:=REF(CLOSE,C2+1)K && CROSS(D,K);C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));D3:=REF(CLOSE,C3+1)>RSI1 && CROSS(RSI2,RSI1);C4:=BARSLAST(REF(CROSS(MDI,PDI),1));D4:=REF(CLOSE,C4+1)MDI && CROSS(MDI,PDI);A4:=BARSLAST(REF(CROSS(PDI,MDI),1));B4:=REF(CLOSE,A4+1)>CLOSE && REF(PDI,A4+1) STICKLINE(B4,LOW,LOW-0.06,COLORBLUE,0); DRAWTEXT(B4,LOW-20,'D底');PLAYSOUND(CROSSUP(B4,LOW),'F');STICKLINE(D4,HIGH,HIGH+0.06,COLORWHITE,0); DRAWTEXT(D4,HIGH+20,'D顶');PLAYSOUND(CROSSDOWN(D4,HIGH),'E'); STICKLINE(B1,LOW,LOW-0.06,COLORGREEN,0); DRAWTEXT(B1,LOW-10,'M底');PLAYSOUND(CROSSUP(B1,LOW),'F');STICKLINE(B2,LOW,LOW-0.06,COLORYELLOW,0); DRAWTEXT(B2,LOW-6,'K底');PLAYSOUND(CROSSUP(B2,LOW),'F');STICKLINE(B3,LOW,LOW-0.04,COLORRED,0);DRAWTEXT(B3,LOW-16,'R底');PLAYSOUND(CROSSUP(B3,LOW),'F');STICKLINE(D1,HIGH,HIGH+0.06,COLORMAGENTA,0);DRAWTEXT(D1,HIGH+10,'M顶');PLAYSOUND(CROSSDOWN(D1,HIGH),'E');STICKLINE(D2,HIGH,HIGH+0.06,COLORLIGHTRED,0);DRAWTEXT(D2,HIGH+6,'K顶');PLAYSOUND(CROSSDOWN(D2,HIGH),'E');STICKLINE(D3,HIGH,HIGH+0.06,COLORLIGHTGREEN,0);DRAWTEXT(D3,HIGH+16,'R顶');PLAYSOUND(CROSSDOWN(D3,HIGH),'E');MA13:=MA(CLOSE,13),COLORWHITE;VLL:=CROSS(MA(CLOSE,13),MA(CLOSE,21));DRAWTEXT(VLL,MA13-10,'圆底');PLAYSOUND(CROSSUP(VLL,MA13),'F');第三、瀑布线远离选股公式源码:(通信达把IFELSE改成IF就可以了)M1:=4;M2:=6;M3:=9;M4:=13;M5:=18;M6:=24;PBX1:=(EMA(CLOSE,M1)+MA(CLOSE,M1*2)+MA(CLOSE,M1* 4))/3;PBX2:=(EMA(CLOSE,M2)+MA(CLOSE,M2*2)+MA(CLOSE,M2* 4))/3;PBX3:=(EMA(CLOSE,M3)+MA(CLOSE,M3*2)+MA(CLOSE,M3* 4))/3;PBX4:=(EMA(CLOSE,M4)+MA(CLOSE,M4*2)+MA(CLOSE,M4* 4))/3;PBX5:=(EMA(CLOSE,M5)+MA(CLOSE,M5*2)+MA(CLOSE,M5* 4))/3;PBX6:=(EMA(CLOSE,M6)+MA(CLOSE,M6*2)+MA(CLOSE,M6*4))/3;AAA:=MAX(MAX(MAX(MAX(MAX(PBX1,PBX2),PBX3),PBX4), PBX5),PBX6);SY:IFELSE(CLOSE>AAA AND ISDOWN,85,100),RGB(0,240,0);//上远离收阴BBB:=MIN(MIN(MIN(MIN(MIN(PBX1,PBX2),PBX3),PBX4),PBX 5),PBX6);SY1:IFELSE(CLOSE以上就是我分享的所有东西,虽然我做过期货,但是这个指标不知道适不适合大家,如果有什么问题可以提出来,我会继续改正!希望能帮到大家,还想知道更多可以在评论区提出来,我都会及时回复的!。

趋势型指标之动量震荡指标(AO)

趋势型指标之动量震荡指标(AO)

趋势型指标之动量震荡指标(AO)
指标说明:
动量震荡(Awesome Oscillator)指标是衡量市场动力的指标,通过将一系列所得结果组成柱状图能准确地发现当前动量的变化。

它由5根K线平均价的移动平均线值减去34根K线平均价的移动平均线值而得到。

通常用于确定当前市场的发展趋势,包括趋势形成的点和趋势反转的位置。

应用法则(基于绿涨红跌)
1.当最新的一根柱线高于前一根柱线时,它是绿色的;相反,当最新的一根柱线低于前一根柱线时,它是红色的。

AO能产生三种买入信号和三种卖出信号。

2.在零轴线以上最新的绿柱线出现在红柱线之后就产生了碟型买入信号。

3.最新的柱线从下向上穿越零轴线时就产生了穿越买入信号。

4.在零轴线以下最新的峰值高于前一个峰值并出现了一个绿柱线就产生了双峰买入信号。

5.在零轴线以下最新的红柱线出现在绿柱线之后就产生了碟型卖出信号。

6.最新的柱线从上向下穿越零轴线时就产生了穿越卖出信号。

7.在零轴线以上最新的峰值低于前一个峰值并出现了一个红柱线就产生了双峰卖出信号。

计算方法:
平均价=(最高价+最低价)/2
AO=(5根柱的平均价之和/5)-(34根柱的平均价之和/34)。

文华期货软件公式指标最神奇的主图买卖指标文华财经指标公式源码公式源码

文华期货软件公式指标最神奇的主图买卖指标文华财经指标公式源码公式源码

/*A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);{高点}A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3);C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 ANDCOUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 ANDCOUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK1,POINTDOT; DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK1,POINTDOT;J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD),BARSLAST(LD))+1); J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR,IF(BARSLAST(HD)>BARSLAST( LD),H,L),0),COLORWHITE,LINETHICK1,POINTDOT;{以上语句为新结构波浪}A3:=H<REF(H,REF(BARSLAST(HD),1)+1);B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1 )+2+REF(BARSLAST(HD),REF(BARSLAST(HD),1)+2));D3:=A3 AND B3 AND HD;E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2);HH:=E3>REF(E3,1);{找出全部长期高点}A4:=L>REF(L,REF(BARSLAST(LD),1)+1);B4:=REF(L,REF(BARSLAST(LD),1)+1)<REF(L,REF(BARSLAST(LD),1) +2+REF(BARSLAST(LD),REF(BARSLAST(LD),1)+2));D4:=A4 AND B4 AND LD;E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2); LL:=E4>REF(E4,1);{找出全部长期低点}DRAWICON(HH,H,10),ALIGN2; DRAWICON(LL,L,12),ALIGN1;H3:=HH OR ISLASTBAR OR BARSCOUNT(C)=1; {后面进行过滤,方法同前。

文华财经指标公式源码文华财经指标突破顶底出击

文华财经指标公式源码文华财经指标突破顶底出击

/*{-----主图资金模块-----}超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S);大宗进:=(超B)+(大B);大宗出:=(超S)+(大S);非大宗进:=(中B)+(小B);非大宗出:=(中S)+(小S);主力买力度:=LARGEINTRDVOL*100/VOL,NODRAW;主力卖力度:=LARGEOUTTRDVOL*100/VOL,NODRAW; DRAWRECTREL(0,530,235,999.2,IF(120,RGB(0,10,47),0)); DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;{DAZHIV:=CONST(MAX(ABS(净流入),MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))));} DRAWRECTREL(10,CONST(950-(ABS(净流入)*250/DAZHIV)),40,950,IF(CONST(净流入>0),RGB(250,0,0),RGB(0,250,0)));DRAWRECTREL(55,CONST(950-(ABS(大宗进)*250/DAZHIV)),80,950,IF(CONST(大宗进>0),RGB(255,0,255),RGB(0,0,50)));DRAWRECTREL(84,CONST(950-(ABS(大宗出)*250/DAZHIV)),109,950,IF(CONST(大宗出>0),RGB(50,50,255),RGB(255,0,0)));DRAWRECTREL(120,CONST(950-(ABS(非大宗进)*250/DAZHIV)),145,950,IF(CONST(非大宗进>0),RGB(250,0,250),RGB(0,0,50)));DRAWRECTREL(149,CONST(950-(ABS(非大宗出)*250/DAZHIV)),174,950,IF(CONST(非大宗出>0),RGB(50,50,250),RGB(255,0,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.00,1,0,'资金驱动主力进出散户进出'),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.008,0.68,0,'净流入'),COLORRED;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.008,0.82,0,INTPART(净流入)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.052,0.88,0,INTPART(大宗进)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.085,0.82,0,INTPART(大宗出)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.118,0.88,0,INTPART(非大宗进)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.146,0.82,0,INTPART(非大宗出)),COLORWHITE;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:主买A*100/(主买A+主卖A),COLORRED,NODRAW;主卖:主卖A*100/(主买A+主卖A),COLORGREEN,NODRAW; DRAWRECTREL(0,530,176,580,RGB(0,100,0)); {DRAWRECTREL(50,530,176,580,RGB(0,125,200));} DRAWRECTREL(50,530,50+CONST(主买*120/100),580,RGB(175,50,250));DRAWTEXT_FIX(1,0.00,0.53,0,STRCAT(STRCAT('买卖比:',CON2STR(主买,2)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.12,0.53,0,STRCAT(STRCAT('',CON2STR(主卖,2)),' %')),COLORYELLOW;DRAWRECTREL(1,580,176,630,RGB(0,50,150)); DRAWRECTREL(110,580,176,630,RGB(0,200,50));DRAWRECTREL(50,580,50+CONST(主力买力度*120/100),630,RGB(200,0,50));DRAWTEXT_FIX(1,0.00,0.58,0,STRCAT(STRCAT('买卖力:',CON2STR(主力买力度,2)),' %')),COLORYELLOW; DRAWRECTREL(110,580,176-CONST(主力买力度*120/100),630,RGB(0,50,155));DRAWTEXT_FIX(1,0.12,0.58,0,STRCAT(STRCAT('',CON2STR(主力卖力度,2)),' %')),COLORYELLOW;DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*100000/FINANCE(7), NODRAW;DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRAD ENUM,0);DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TR ADENUM*100,0);DRAWRECTREL(177,530,235,580,IF(CONST(DDX)>0,RGB(255,0,0),R GB(0,150,0)));DRAWRECTREL(177,580,235,630,IF(CONST(DDX)>0,RGB(255,0,0),R GB(0,150,0)));DRAWRECTREL(177,692,235,742,IF(CONST(DDY)>0,RGB(255,0,0),R GB(0,150,0)));DRAWRECTREL(177,742,235,792,IF(CONST(DDY)>0,RGB(255,0,0),R GB(0,150,0)));DRAWRECTREL(177,842,235,892,IF(CONST(DDZ)>0,RGB(255,0,0),R GB(0,150,0)));DRAWRECTREL(177,892,235,942,IF(CONST(DDZ)>0,RGB(255,0,0),R GB(0,150,0)));DRAWTEXT_FIX(1,0.19,0.53,0,STRCAT('',CON2STR(DDX,2))),COLOR YELLOW;DRAWTEXT_FIX(1,0.19,0.69,0,STRCAT('',CON2STR(DDY,2))),COLOR YELLOW;DRAWTEXT_FIX(1,0.19,0.84,0,STRCAT('',CON2STR(DDZ,2))),COLOR YELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.180,0.64,0,'大单动向'),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.180,0.80,0,'涨跌动因'),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.180,0.95,0,'大单差分'),COLORWHITE;T1:=IF (DDX>0 AND REF(DDX,1)<0,1,0);T2:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)<0,2,T1);*/高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;突破:REF(EMA(C,14),1),COLORMAGENTA,LINETHICK2;顶:REFX1(高1,10000),POINTDOT,COLORWHITE;A1X:=(EMA(C,14)-突破)/突破*100;出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),NULL),COLORRED,LINET HICK2;休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),NULL),COLORGREEN,LINE THICK2;STICKLINE1(A1X>=0,出击,突破,0,-1),COLORRED;STICKLINE1(A1X<0,休假,突破,0,-1),COLORGREEN;STICKLINE1(CROSS(A1X,0),C,O,2,0),COLORYELLOW;STICKLINE1(CROSS(0,A1X),C,O,2,0),COLORGREEN;趋势分界线:IF(A1X<0,突破,NULL),COLORGREEN,LINETHICK2;。

文华带标注AO动量震荡指标公式

文华带标注AO动量震荡指标公式

文华带标注AO动量震荡指标公式AO动量震荡指标(Awesome Oscillator)是一种技术分析指标,用于测量股票、期货或其他交易资产的趋势力量和趋势变化的信号。

AO动量震荡指标由计算两个移动平均线的差异而得出。

它基于市场的两个移动平均线:5日简单移动平均线(SMA)和34日SMA。

这两个移动平均线分别描绘了较短期和较长期的趋势。

计算AO指标的公式如下:AO=SMA(5)-SMA(34)其中,SMA(5)是5日简单移动平均线,SMA(34)是34日简单移动平均线。

AO指标将两个移动平均线的差异显示为一条波动的线。

AO的数值会上下波动,显示了市场中买卖力量的变化。

当AO指标值为正时,表示市场上升趋势强劲。

当AO指标值为负时,表示市场下降趋势强劲。

AO指标值的变化幅度可以用来判断买卖力量的强弱,从而预测股票或其他交易资产的价格趋势。

AO指标的应用有以下几个方面:1.识别趋势转折点:当AO指标由负变正时,表示市场从下降趋势转为上升趋势;当AO指标由正变负时,表示市场从上升趋势转为下降趋势。

投资者可以利用这种趋势转折点来捕捉交易机会。

2.确认趋势的持续性:当市场处于上升趋势时,AO指标维持在正值区间,表示市场买卖力量均衡,上涨趋势可能持续。

同样,当市场处于下降趋势时,AO指标维持在负值区间,表示市场买卖力量均衡,下跌趋势可能持续。

3.验证其他技术指标的信号:将AO指标与其他技术指标如移动平均线、相对强弱指标(RSI)等结合使用,可以提高交易信号的准确性。

例如,当移动平均线发生金叉(短期移动平均线上穿长期移动平均线)时,如果AO指标同样处于正值区间,那么买入信号更加可靠。

需要注意的是,AO指标是一种较为简单的技术指标,对于短期交易者可能更有意义。

长期投资者可能需要结合更多的指标和分析方法来进行决策。

总之,AO动量震荡指标通过计算两个移动平均线的差异来衡量市场的趋势力量和趋势变化的信号。

投资者可以利用AO指标来识别趋势转折点、确认趋势的持续性,并与其他技术指标结合使用,以提高交易决策的准确性。

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

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

文华指标公式源码(多空参考)文华指标公式源码(多空参考)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;。

文华财经指标公式 混沌理论指标 精准买卖点指标 黄金白银原油

文华财经指标公式 混沌理论指标 精准买卖点指标 黄金白银原油

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 );。

混沌动量震荡指标

混沌动量震荡指标

混沌动量震荡指标动量震荡指标(AO)是一种技术指标,它可以帮助分析价格动量并判断市场趋势的强弱。

AO指标是由亚历山大·艾尔德(Alexander Elder)在他的书籍《如何在股市行进中藏身》中提出的。

该指标通过计算市场上两个不同时间段的移动平均线之间的差异来描绘价格动量。

AO指标的计算方法是通过计算价格的5日简单移动平均线和34日简单移动平均线之间的差异来衡量市场动量。

AO指标通常以柱状图的形式呈现。

柱状图上方的柱代表市场牛市趋势,下方的柱代表市场熊市趋势。

在分析AO指标时,交易员可以关注以下几个因素:1.峰值和谷底:当AO柱状图向上延伸并形成一系列峰值时,这表明市场处于强势。

相反,当AO柱状图向下延伸并形成一系列谷底时,这表明市场处于弱势。

2.零线:当AO柱状图从负数区域穿越零线并向上延伸时,这表明市场处于上升趋势。

相反,当AO柱状图从正数区域穿越零线并向下延伸时,这表明市场处于下降趋势。

3.背离:AO指标还可以帮助交易员发现价格和指标之间的背离。

如果价格创造新的高点,但AO柱状图没有创造新的高点,这可能表明市场动量减弱,可能发生趋势反转。

相反,如果价格创造新的低点,但AO柱状图没有创造新的低点,这可能表明市场动量增强,可能会继续发展趋势。

AO指标可以与其他技术指标和图表模式一起使用,以提供更全面的市场分析。

例如,交易员可以将AO指标与移动平均线、趋势线和其他指标如相对强弱指标(RSI)结合使用,以确认市场趋势的可靠性。

尽管AO指标是一种有用的技术工具,但它也有一些局限性。

首先,AO指标是一种迟滞指标,因为它是基于移动平均线计算的。

其次,AO指标在侧向市场中可能产生错误的信号。

因此,交易员需要结合其他指标和图表模式进行确认,以减少错误信号的出现。

总的来说,动量震荡指标(AO)是一种可以帮助分析价格动量和判断市场趋势强弱的技术指标。

尽管它有一些局限性,但结合其他指标和图表模式使用,可以提供更全面的市场分析。

文华财经指标公式波段最准确的指标最准的实战指标准确率最高指标公式源码

文华财经指标公式波段最准确的指标最准的实战指标准确率最高指标公式源码

/*VAR1:=(HHV(HIGH,5)-LLV(LOW,5));VAR2:=(HHV(HIGH,9)-CLOSE);VAR3:=(CLOSE-LLV(LOW,9));VAR4:=VAR2/VAR1*100-70 ;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR6:=(2*C+H+L)/4;VAR7:=SMA((VAR3/VAR1*100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:= IF(VAR9>100,VAR9-100,0);VARA:=HHV(HIGH,34);主力线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLO SE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW,LINETHIC K2;底线: 11, LINETHICK2,COLORGREEN ;上线:100,LINETHICK2,COLORWHITE ;准备抄底:主力线<=10;IF(主力线<=10,50,0), LINETHICK2,COLORLIBLUE;抄底: CROSS(主力线,底线), LINETHICK2,COLORFF00FF;STICKLINE(抄底=1,20,30,4,0),COLORFF00FF;DRAWTEXT(抄底=1,40,'抄'),COLORFF00FF;波:EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLOR3366FF;段:EMA(波,5),COLORFF00FF;加仓:CROSS(波,段) AND 波<30;STICKLINE(加仓=1,50,60,4,0),COLORYELLOW;DRAWTEXT(加仓=1,70,'加'),COLORYELLOW;VAR1:=(HHV(HIGH,5)-LLV(LOW,5));VAR2:=(HHV(HIGH,9)-CLOSE);VAR3:=(CLOSE-LLV(LOW,9));VAR4:=VAR2/VAR1*100-70 ;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR6:=(2*C+H+L)/4;VAR7:=SMA((VAR3/VAR1*100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:= IF(VAR9>100,VAR9-100,0);VARA:=HHV(HIGH,34);主力线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLO SE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW,LINETHIC K2;底线: 11, LINETHICK2,COLORGREEN ;上线:100,LINETHICK2,COLORWHITE ;准备抄底:主力线<=10;IF(主力线<=10,50,0), LINETHICK2,COLORLIBLUE;抄底: CROSS(主力线,底线), LINETHICK2,COLORFF00FF;STICKLINE(抄底=1,20,30,4,0),COLORFF00FF;DRAWTEXT(抄底=1,40,'抄'),COLORFF00FF;波:EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLOR3366FF;段:EMA(波,5),COLORFF00FF;加仓:CROSS(波,段) AND 波<30;STICKLINE(加仓=1,50,60,4,0),COLORYELLOW;DRAWTEXT(加仓=1,70,'加'),COLORYELLOW;VAR1:=(HHV(HIGH,5)-LLV(LOW,5));VAR2:=(HHV(HIGH,9)-CLOSE);VAR3:=(CLOSE-LLV(LOW,9));VAR4:=VAR2/VAR1*100-70 ;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR6:=(2*C+H+L)/4;VAR7:=SMA((VAR3/VAR1*100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:= IF(VAR9>100,VAR9-100,0);VARA:=HHV(HIGH,34);主力线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLO SE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW,LINETHIC K2;底线: 11, LINETHICK2,COLORGREEN ;上线:100,LINETHICK2,COLORWHITE ;准备抄底:主力线<=10;IF(主力线<=10,50,0), LINETHICK2,COLORLIBLUE;抄底: CROSS(主力线,底线), LINETHICK2,COLORFF00FF; STICKLINE(抄底=1,20,30,4,0),COLORFF00FF; DRAWTEXT(抄底=1,40,'抄'),COLORFF00FF;波:EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLOR3366FF; 段:EMA(波,5),COLORFF00FF;加仓:CROSS(波,段) AND 波<30;STICKLINE(加仓=1,50,60,4,0),COLORYELLOW; DRAWTEXT(加仓=1,70,'加'),COLORYELLOW;*/VAR1:=HHV(HIGH,13)-LLV(LOW,13);VAR2:=HHV(HIGH,13)-CLOSE;VAR3:=CLOSE-LLV(LOW,13);VAR4:=VAR2/VAR1*100-70;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=SMA(VAR3/VAR1*100,3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF(VAR9>100,VAR9-100,0);VAR11:=HHV(HIGH,34);VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2); DRAWCOLORKLINE(VAR12-VAR13>0,COLORRED,0); DRAWCOLORKLINE(VAR12-VAR13<0,COLORGREEN,0);。

文华带标注AO动量震荡指标公式

文华带标注AO动量震荡指标公式

带标注AO动量震荡指标公式Y:=(HIGH+LOW)/2;AO:=MA(Y,5)-MA(Y,34);AO1:=REF(AO,1);STICKLINE(AO>AO1,0,AO,COLORRED,0);STICKLINE(AO<AO1,0,AO,COLORYELLOW,0);S1:=CROSS(0,AO);//DRAWICON(S1,AO,5),ALIGN0; //文华此函数绘图不佳DRAWTEXT(S1,AO,'S'),COLORWHITE;//----------------------------以上是下穿0信号;S2:=AO<0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);//DRAWNUMBER(1>0,AO,LU2,0);//DRAWICON(S2,AO,5),ALIGN0;DRAWTEXT(S2,AO,'S'),COLORWHITE;//-----------------------------以上碟型卖出信号;SCOUNT:=BARSLAST(AO<0);//上一次AO>0后到现在的周期数;//DRAWNUMBER(1>0,AO-0.1,SCOUNT,0);SD:=HHV(AO,SCOUNT);//求上面周期的最大AO;SCOUNTD:=HHVBARS(AO,SCOUNT);//求最大值到现在的周期数;//DRAWNUMBER(1>0,AO-0.3,SCOUNTD,0);S3:=AO>0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);//满足峰的条件; S31:=COUNT(S3,SCOUNTD);//满足上面条件的次数;//DRAWNUMBER(1>0,AO-0.5,S31,0);//DRAWICON(S31>=2 AND S3,AO,5),ALIGN0;DRAWTEXT(S31>=2 AND S3,AO,'S'),COLORWHITE;//----------------------------以上是双峰卖出信号;B1:=CROSS(AO,0);//DRAWICON(B1,AO,4),ALIGN0;DRAWTEXT(B1,AO,'B'),COLORWHITE;//----------------------------以上是上穿0信号;B2:=AO>0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1) ;//DRAWNUMBER(1>0,AO,LU2,0);//DRAWICON(B2,AO,4),ALIGN0;DRAWTEXT(B2,AO,'B'),COLORWHITE;//-----------------------------以上碟型买入信号;BCOUNT:=BARSLAST(AO>0);//上一次AO>0后到现在的周期数;//DRAWNUMBER(1>0,AO-0.1,BCOUNT,0);BD:=LLV(AO,BCOUNT);//求上面周期的最小AO;BCOUNTD:=LLVBARS(AO,BCOUNT);//求最小值到现在的周期数;//DRAWNUMBER(1>0,AO-0.3,BCOUNTD,0);B3:=AO<0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1);//满足峰的条件;B31:=COUNT(B3,BCOUNTD);//满足上面条件的次数; //DRAWNUMBER(1>0,AO-0.5,LU31,0);//DRAWICON(B31>=2 AND B3,AO,4),ALIGN0; DRAWTEXT(B31>=2 AND B3,AO,'B'),COLORWHITE; //----------------------------以上是双峰买进信号;。

文华指标公式

文华指标公式

文华指标公式CURRBARSCOUNT:=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))>//{下三一线};//{下三一线};。

期货最好用的指标公式文华财经指标公式过滤盘整震荡指标

期货最好用的指标公式文华财经指标公式过滤盘整震荡指标

CURRBARSCOUNT:=DATACOUNT - BARPOS;DRAWGBK(C>0,RGB(0,20,100),RGB(80,80,80),0);DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//DEA := EMA(DIFF,9);//MACD1:=2*(DIFF-DEA),COLORSTICK;//MACD:=MACD1*3,NODRAW;STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.0001,0),COLORRED; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.0001,0),COLORRED; STICKLINE(MACD<REF(MACD,1),0,MACD,0.0001,0),COLORCYAN;VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5); DRAWLINE1(VA2,MACD,REF(VA2,1),REF(MACD,1),0),COLORBLUE;前高:=VALUEWHEN(REF(VA2,1),REF(MACD,1));VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);BD:=BARSLAST(FILTER(CROSS(0,MACD),20));DRAWLINE1(VA4,MACD,REF(VA4,1),REF(MACD,1),0);前低:=VALUEWHEN(REF(VA4,1),REF(MACD,1));BDTJ:=IF(MACD<0,FILTER(MACD=LLV(MACD,BARSLAST(MACD>0)),20),NULL);TSBDTJ:=BARSLAST(BDTJ);BDZH:=FILTER(MACD<REFX1(LLV(MACD,BD+1),10000),20);BDTS:=BARSLAST(BDZH);本低:IF(BD+1>=1,REFX1(LLV(MACD,BD+1),10000),NULL);BDCL:=CROSS(COUNT(CROSS(MACD>本低/2 AND MACD<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0; 终点:=IF(ISLASTBAR AND MACD>0 AND MACD=HHV(MACD,BARSLAST(MACD<0)),1,IF(FILTER(QG,20),2,NULL));UU:=(终点=1 OR 终点=2) AND MACD>0;ZZ:=FILTER(UU,20);DRAWLINE1(ZZ,MACD,REF(ZZ,1),REF(MACD,1),0),COLORWHITE;本高:=VALUEWHEN(REF(ZZ,1),REF(MACD,1));横线:=REFX1(REF(MACD,BARSLAST(ZZ)),10000);WW:=MACD>横线;起始点:=FILTER(REFX(BARSLAST(WW),1)=1,20);天数:BARSLAST(起始点),COLORYELLOW,NODRAW;//{多空与微积分}SHORT:=12;LONG:=26;MID:=9;M1:=3;M2:=3;KG:=1;DFC:=C-REF(C,1);WJXS:=(LONG-SHORT)/2;JGL_JF:WJXS*EMA(DFC,SHORT),COLORYELLOW;DIF_JIP:=EMA(JGL_JF,LONG),COLOR1188FF;DEA_GEM:=EMA(DIF_JIP,MID),COLORGREEN;MACD_LING:=2*(DIF_JIP-DEA_GEM),COLOR1133FF,COLORSTICK;K_DF_J:=SMA(JGL_JF,M1,1),DOT,COLORFEDCBA;D_DF_G:=SMA(K_DF_J,M2,1),DOT,COLOR13F8F9;J_DF_L:=2.5*K_DF_J-1.5*D_DF_G,COLORF813F9;RF:=REF(J_DF_L,1);DJ:=ABS(J_DF_L-RF);MM:=(HHV(DJ,120)+LLV(DJ,120))/2;STICKLINE1(J_DF_L>RF,J_DF_L,RF,2.3,0),COLOR1388D3;STICKLINE1(J_DF_L>RF,J_DF_L,RF,1.0,0),COLOR13AAD3;STICKLINE1(J_DF_L<RF,J_DF_L,RF,2.3,0),COLOR338833;STICKLINE1(J_DF_L<RF,J_DF_L,RF,1.0,0),COLOR33AA33;N:=SQRT(SHORT*LONG);NN:=IF(N<9,9,N);BZC:=STD(DFC,NN);U:IF(KG=1,K_DF_J+2*BZC,MA(C,25600)),COLORFE9813,CROSSDOT,LINETHICK2;D:IF(KG=1,K_DF_J-2*BZC,MA(C,25600)),COLORFE9813,CROSSDOT,LINETHICK2;IF( U >= REF(U,1), U, NULL ), COLORRED,CROSSDOT,LINETHICK2;IF( D >= REF(D,1), D, NULL ), COLORRED,CROSSDOT,LINETHICK2;DRAWTEXT(TIME=700,-0.4,'亚盘'),COLORCYAN;DRAWTEXT(TIME=1600,-0.4,'欧盘');DRAWTEXT(TIME=2100,-0.4,'美盘'),COLORYELLOW;U1:(U+D)/2;G:=REFX1(IF(CURRBARSCOUNT<=81,HHV(H,BARSLAST(CURRBARSCOUNT=81)),0),10000);DA:=REFX1(IF(CURRBARSCOUNT<=81,LLV(L,BARSLAST(CURRBARSCOUNT=81)),0),10000); STICKLINE(DATE<>REF(DATE,1) AND PERIOD<5,0.4,-0.4,0,-1),COLORWHITE;DRAWLINE1(起始点,横线,ZZ,横线,0),COLORGREEN,DOT;上横线:=VALUEWHEN(ZZ,横线);DRAWLINE1(BDZH,REFX1(LLV(MACD,BD+1),10000),BDTJ=1,MACD,0),COLOR8080FF,DOT;下横线:=VALUEWHEN(BDTJ=1,MACD);DRAWNUMBER(BDTJ,REFX1(LLV(MACD,BD+1),10000)*0.9,BDTS,2,COLORYELLOW); DRAWNUMBER(ZZ,上横线*1.1,天数,2,COLORYELLOW);TJ:=IF(起始点,BARSLAST(ZZ),NULL);红柱数量:=IF(天数>0 AND 天数<=REF(TJ,天数),SUM(MACD>0,天数),NULL),COLORWHITE,NODRAW;横线起始价:=REF(C,天数),NODRAW;空间评估:=(横线起始价-C)/C*100,NODRAW;TT:=BARSLAST(ZZ);WQG:=CROSS(COUNT(CROSS(MACD<本高/2 AND MACD>0,0.5),ZZ)=1,0.5) AND ZZ>=0; STICKLINE(MACD>前高AND 本高>前高AND BARSLAST(CROSS(MACD<本高/2,0.5))>0 AND MACD>(前高+本高)/2,MACD,前高,1,0),COLORYELLOW;//前高本高二分位:IF(MACD>0 AND 本高<>前高,,NULL)DRAWLINE1(WQG&&MACD>0 AND 本高<>前高,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),0),COLORC0C000,DOT;DRAWTEXT(WQG,MACD*1.1,'本高成立'),COLORWHITE;DRAWTEXT(BDCL,MACD*1.1,'本低成立'),COLORWHITE;STICKLINE1(WQG,MACD,0,1,0),COLORGREEN;TSB1:=BARSLAST(MACD>0)-1;STICKLINE(BARSLAST(BDCL)>=0 AND MACD<前低AND MACD<0,MACD,前低,1,0),COLORGREEN;STICKLINE(BDCL,MACD,0,1,0),COLORWHITE;STICKLINE(MACD>前高AND 本高>前高AND BARSLAST(WQG)>0,MACD,前高,1,0),COLORRED; DRAWTEXT(VA2 AND VA2<>UU,U,'空');DRAWTEXT(ZZ,(MACD/10)*9,'本'),COLORWHITE;DRAWTEXT(ZZ,MACD/10,'高'),COLORWHITE;DRAWTEXT(BDTJ,(MACD/10)*9,'低'),COLORRED;DRAWTEXT(BDTJ,MACD/10,'本'),COLORRED;IF(BARSLAST(BDCL)>=0,本低/2,NULL),COLORRED,DOT;STICKLINE(MACD>前高,MACD,前高,0.0001,0),COLORYELLOW;STICKLINE(MACD<0 AND MACD<前低AND 前低<0,MACD,前低,2,0),COLORBLUE; 倍量:=U>=2*REF(U,1) AND REF(U,1)<=REF(U,2) AND C>REF(C,1);DRAWTEXT(倍量>=1 AND U >= REF(U,1),0.25,'∠多'),COLORYELLOW; STICKLINE(倍量>=1 AND U >= REF(U,1),0.2,-0.2,0.00001,0),COLORRED;EMA(JGL_JF,LONG),COLORGREEN,LINETHICK2;IF(DIF_JIP>REF(DIF_JIP,1),DIF_JIP,NULL),COLORRED,LINETHICK3;反均差:=EMA(CLOSE,26)*10-EMA(CLOSE,12)*10;正均差:=EMA(CLOSE,12)*10-EMA(CLOSE,26)*10;均差:=(正均差-反均差),COLORRED,LINETHICK1;量比:VOL/REF(MA(VOL,5),1),COLORYELLOW,NODRAW;STICKLINE(量比>1.5 AND C>O AND 均差>0,U,0,0.5,0),COLORMAGENTA;。

文华赢顺云交易软件(wh6)指标公式——标注函数

文华赢顺云交易软件(wh6)指标公式——标注函数
drawnumber1conddatanumberprecision当条件满足时在data位置写数字numberprecision为精度小数点后有几位数字该凼数支持在凼数后设置文字的颜色文字的大小和文字对齐方式
文华
(一)DRAWICON:绘制小图标。
用法:
DRAWICON(COND,PRICE,ICON);
即可以写为如下格式:
CLOSE<OPEN,ICON(1,'阴'),VALIGN0;
例1:
CLOSE>OPEN,ICON(1,'ICO1');//表示K线收盘大于开盘时,在最高价上显示图标1。
写完“ICON(1,”以后,点击插入图标按钮,再单击选中的图标插入到函数中,图标用
'ICO1'~'ICO105'表示
(二)DRAWNUMBER:输出数值。
用法:
DRAWNUMBER(COND,DATA,NUMBER,PRECISION,COLOR);
当条件满足时在DATA位置写数字NUMBER。PRECISION为精度(小数点后有几位数字)。COLOR为颜色。
注:
该函数支持在函数后设置文字的大小和文字对齐方式。即支持下面的写法:
DRAWNUMBER1(CLOSE/OPEN>1.08,HIGH,(CLOSE-OPEN)/OPEN*100,2),COLORRED;//表示当日涨幅大于8%时在最高价位置红色显示涨幅数值(相对开盘价的百分比,精确2位小数)。
例2:
DRAWNUMBER1(DATE<>REF(DATE,1),L,REF(C,1),2),COLORRED,ALIGN0,VALIGN0;//表示在当天第一根k线的最低价处以红色显示昨收盘价数值(精确2位小数),标注文字居左,居上对齐。

文华财经指标公式集1[转]待续

文华财经指标公式集1[转]待续

文华财经指标公式集1[转]待续[1]K线倒置源码:STICKLINE(-CLOSE>-OPEN,-CLOSE,-OPEN,COLORRED,1);DRAWLINE(-CLOSE>-OPEN,-HIGH,-CLOSE>-OPEN,-MAX(CLOSE,OPEN),COLORRED);DRAWLINE(-CLOSE>-OPEN,-MIN(CLOSE,OPEN),-CLOSE>-OPEN,-LOW,COLORRED);STICKLINE(-CLOSE=-OPEN,-CLOSE,-OPEN,COLORWHITE,0);DRAWLINE(-CLOSE=-OPEN,-HIGH,-CLOSE=-OPEN,-LOW,COLORWHITE);STICKLINE(-CLOSE<-OPEN,-CLOSE,-OPEN,COLORCYAN,0);DRAWLINE(-CLOSE<-OPEN,-HIGH,-CLOSE<-OPEN,-MAX(CLOSE,OPEN),COLORCYAN);DRAWLINE(-CLOSE<-OPEN,-MIN(CLOSE,OPEN),-CLOSE<-OPEN,-LOW,COLORCYAN);MA20:MA(-CLOSE,20);图示:评价:如果你不知道什么时候卖出,那么如果你知道什么时候买入,用此办法就可以解决问题;[2]平均线波段源码:DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MA(CLOSE,5),COLORWHITE;MA(CLOSE,15),COLORYELLOW;STICKLINE(DIFF>DEA,CLOSE,OPEN,COLORRED,0);STICKLINE(DIFF>DEA,HIGH,LOW,COLORRED,0);STICKLINE(DIFF<=DEA,CLOSE,OPEN,COLORGREEN,0);STICKLINE(DIFF<=DEA,HIGH,LOW,COLORGREEN ,0);DRAWTEXT(CROSS(DIFF,DEA),LOW-0.2,''买入''),COLORWHITE;DRAWTEXT(CROSS(DEA,DIFF),HIGH+0.2,''卖出''),COLORGREEN;图示:评价:有趋势的行情,平均线最管用,没有趋势的行情,平均线最无用。

文华期货软件指标公式文华财经期货软件指标公式成交量量比筹码k线均线

文华期货软件指标公式文华财经期货软件指标公式成交量量比筹码k线均线

VA1:HHV(HIGH,9)-LLV(LOW,9);VA2:HHV(HIGH,9)-CLOSE;VA3:CLOSE-LLV(LOW,9);VA4:VA2/VA1*100-70;VA5:(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VA6:(CLOSE+HIGH+LOW)/3;VA7:SMA(VA3/VA1*100,3,1);VA8:LLV(LOW,34);VA9:SMA(VA7,3,1)-SMA(VA4,9,1);VARA:=IF(VA9>100,VA9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);INDEXH:="999001$H";INDEXL:="999001$L";INDEXC:="999001$C";VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8 ,1)*100-25;VARF:=MA(VARE,3);VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=(VAR2)/(VAR1)*(100)-70;VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);DRAWKLINE1(EMA(B1,5),EMA(B1,5),B1+1,B1);牛市:EMA(B1,5),COLORCYAN;熊市:EMA(VARD,1),COLORYELLOW;V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;VV:=V1 AND V2 AND V3 AND V4;A1:=EMA(CLOSE,8);A2:=EMA(A1,20);A3:=CROSS(A1,A2);A4:=A1<EMA(CLOSE,120);A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-L LV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1),CIRCLEDOT,COLORFF9900;安全:=20;关注:=IF(CROSS(A5,安全),50,0),STICK,COLORMAGENTA,LINETHICK2;收钱:=IF(CROSS(VARC, 牛市) AND VARC>VARD AND VARC<55 AND C>0,50,0),COLORRED,POINTDOT;A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);SEU:IF(A6,牛市,0),COLORGREEN,LINETHICK2;STICKLINE1((收钱>0 AND 收钱<400) OR (SEU>0 AND SEU<400)OR (关注>0 AND 关注<400) OR (关注>0),30,收钱,1,0),COLORRED;A:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3),COLORYELLOW,NODRAW;警惕线:80,COLORRED,LINETHICK2;关注线:10,COLORGREEN,LINETHICK2;操盘线:A,COLORWHITE,LINETHICK2;。

混沌_动量震荡指标(AO)

混沌_动量震荡指标(AO)

THE AWESOME OSCILLATOR(AO)股票及商品市场中最好的动能指针。

AO测量最近的5个价格之条形图动能,并和过去的34支条形图作比较。

它是以5个价格之条形图之中点价(最高+最低)/2取移动平均,再减去34支条形图之中点价(最高+最低)/2之移动平均,并以柱状图之形式表示。

AO精确地告诉我们当下动能发生的变化。

作者提到,当了解及适当的使用,AO是超过40年所发现最好最精确的指针。

其实大家可以参考混沌操作法中之MACD。

而在软件使用上,AO 的柱状图如果比前一根高,则标记为绿色;反之若比前一根来的低,则标记为红色。

如此我们只要看颜色之改变,就能知道动能之改变了。

知道了颜色变化之义意后,在进一步介绍AO之买卖讯号之前,我们须回顾之前所教的,在鳄鱼嘴巴外还没有产生碎形之买卖讯号之前,我们不采取任何AO之买卖讯号。

此点务必切记!接下来进入主题开始介绍AO之买卖讯号。

AO三买讯:SAUCER BUY SIGNAL(浅碟买讯),CROSS BUY SIGNAL(穿越买讯),TWIN PEAKS BUY SIGNAL(双峰买讯)。

AO三卖讯:SAUCER SELL SIGNAL(浅碟卖讯),CROSS SELL SIGNAL(穿越卖讯),TWIN PEAKS SELL SIGNAL(双峰卖讯)。

1、SAUCER BUY SIGNAL(浅碟买讯):说明:在SAUCER BUY 中,至少需要三根柱状图,而中间之b(red )为最低,而右方之c(green)比b高,如此便构成中间凹陷如同碟子一般之SAUCER BUY。

而碟子中,凹陷部份可以有几根柱状图则没有限制。

而当c产生时,我们便找符合条件之条形图,在其最高点加一文件作为进场之价位。

1、SAUCER BUY。

2、CROSS BUY SIGNAL(穿越买讯):说明:当柱状图由零轴下翻转到零轴之上即产生cross buy ,而a可以为红色也可以为绿色,但b(signal bar)一定是为绿色。

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

带标注AO动量震荡指标公式
Y:=(HIGH+LOW)/2;
AO:=MA(Y,5)-MA(Y,34);
AO1:=REF(AO,1);
STICKLINE(AO>AO1,0,AO,COLORRED,0);
STICKLINE(AO<AO1,0,AO,COLORYELLOW,0);
S1:=CROSS(0,AO);
//DRAWICON(S1,AO,5),ALIGN0;//文华此函数绘图不佳
DRAWTEXT(S1,AO,'S'),COLORWHITE;
//----------------------------以上是下穿0信号;
S2:=AO<0AND REF(AO,1)>REF(AO,2)AND AO<REF(AO,1);
//DRAWNUMBER(1>0,AO,LU2,0);
//DRAWICON(S2,AO,5),ALIGN0;
DRAWTEXT(S2,AO,'S'),COLORWHITE;
//-----------------------------以上碟型卖出信号;
SCOUNT:=BARSLAST(AO<0);//上一次AO>0后到现在的周期数;
//DRAWNUMBER(1>0,AO-0.1,SCOUNT,0);
SD:=HHV(AO,SCOUNT);//求上面周期的最大AO;
SCOUNTD:=HHVBARS(AO,SCOUNT);//求最大值到现在的周期数;
//DRAWNUMBER(1>0,AO-0.3,SCOUNTD,0);
S3:=AO>0AND REF(AO,1)>REF(AO,2)AND AO<REF(AO,1);//满足峰的条件; S31:=COUNT(S3,SCOUNTD);//满足上面条件的次数;
//DRAWNUMBER(1>0,AO-0.5,S31,0);
//DRAWICON(S31>=2AND S3,AO,5),ALIGN0;
DRAWTEXT(S31>=2AND S3,AO,'S'),COLORWHITE;
//----------------------------以上是双峰卖出信号;
B1:=CROSS(AO,0);
//DRAWICON(B1,AO,4),ALIGN0;
DRAWTEXT(B1,AO,'B'),COLORWHITE;
//----------------------------以上是上穿0信号;
B2:=AO>0AND REF(AO,1)<REF(AO,2)AND AO>REF(AO,1);
//DRAWNUMBER(1>0,AO,LU2,0);
//DRAWICON(B2,AO,4),ALIGN0;
DRAWTEXT(B2,AO,'B'),COLORWHITE;
//-----------------------------以上碟型买入信号;
BCOUNT:=BARSLAST(AO>0);//上一次AO>0后到现在的周期数;
//DRAWNUMBER(1>0,AO-0.1,BCOUNT,0);
BD:=LLV(AO,BCOUNT);//求上面周期的最小AO;
BCOUNTD:=LLVBARS(AO,BCOUNT);//求最小值到现在的周期数;
//DRAWNUMBER(1>0,AO-0.3,BCOUNTD,0);
B3:=AO<0AND REF(AO,1)<REF(AO,2)AND AO>REF(AO,1);//满足峰的条件;
B31:=COUNT(B3,BCOUNTD);//满足上面条件的次数; //DRAWNUMBER(1>0,AO-0.5,LU31,0);
//DRAWICON(B31>=2AND B3,AO,4),ALIGN0; DRAWTEXT(B31>=2AND B3,AO,'B'),COLORWHITE; //----------------------------以上是双峰买进信号;。

相关文档
最新文档