已破解的交易策略源码[文华财经公式]

合集下载

文华财经指标公式源码顶底卖出买入趋势线公式源码

文华财经指标公式源码顶底卖出买入趋势线公式源码
SQ:=进出线>REF(进出线,1);
XQ:=进出线<REF(进出线,1);
SQS:=BACKSET(BARSLAST(NOT(SQ))>=5,BARSLAST(NOT(SQ))),LINETHICK;
XQS:=BACKSET(BARSLAST(NOT(XQ))>=5,BARSLAST(NOT(XQ))),LINETHICK;
DRAWTEXT(ISLASTBAR,顶,'*'),COLORGREEN;
DRAWTEXT(ISLASTBAR,底,'*'),COLORRED;
DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;
多空线:=(MA1+ma2+maF)/3;
MA3c:=(EMA(c,(3*8))+EMA(c,26)+EMA(c,(4*7)))/3;
MA3h:=(EMA(h,(3*8))+EMA(h,26)+EMA(h,(4*7)))/3;
MA3l:=(EMA(l,(3*8))+EMA(l,26)+EMA(l,(4*7)))/3;
趋势线:EMA(V11,3),LINETHICK1,COLORGRAY;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
//STICKLINE1(趋势线<11,趋势线,11,5,0),COLORYELLOW;
AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线;
/*bc:=((H*0.5+L*0.5)*0.382+(O*0.382+C*0.618)*0.618);

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

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

文华财经期货软件指标公式源码精品CCI指标CCI指标的计算步骤如下:1.计算典型价格(TP):TP=(最高价+最低价+收盘价)/32.计算平均价(MA):MA=TP的n日简单移动平均3.计算平均绝对偏差(MD):MD=TP与MA之差的绝对值的n日简单移动平均4.计算CCI值(CCI):CCI=(TP-MA)/(0.015*MD)根据CCI值的大小,可以判断市场是超买、超卖还是处于区间内:1.当CCI值大于100时,表示市场超买,价格可能会回落;2.当CCI值小于-100时,表示市场超卖,价格可能会反弹;3.当CCI值在-100至100之间时,表示市场处于区间内,没有明显的超买超卖情况。

下面是一个经过优化的CCI指标的Python源码示例:```pythonimport pandas as pdimport numpy as npdef cci(data, n):tp = (data['high'] + data['low'] + data['close']) / 3ma = tp.rolling(n).meanmd = np.abs(tp - ma).rolling(n).meancci = (tp - ma) / (0.015 * md)return cci# 读取数据,例如从csv文件中读取data = pd.read_csv('data.csv')cci_values = cci(data, 20)#打印CCI值print(cci_values)```在以上代码中,`data`是包含股价或期货价格数据的DataFrame,其中包含`high`(最高价)、`low`(最低价)、`close`(收盘价)等字段。

函数`cci`接受数据和时间周期`n`作为输入,返回计算得到的CCI值。

最后,使用示例数据调用`cci`函数并打印CCI值。

文华财经期货软件指标公式源码至尊分析王指标公式源码

文华财经期货软件指标公式源码至尊分析王指标公式源码

文华财经期货软件指标公式源码至尊分析王指标公式源码介绍本文档将为大家提供文华财经期货软件中的指标公式源码,并着重介绍其中的至尊分析王指标公式源码。

这些源码可以帮助开发者更好地理解和应用文华财经期货软件中的指标分析功能。

至尊分析王指标公式源码1. MACD 源码MACD({CLOSE}, SHORT, LONG, MID) :=EMA({CLOSE}, SHORT) - EMA({CLOSE}, LONG)DIFF = EMA(MACD, MID)在这段源码中,我们定义了 MACD 指标,其中 `SHORT`、`LONG` 和 `MID` 分别表示短期、长期和中期移动平均线的周期;`{CLOSE}` 表示收盘价序列。

通过计算这些周期的指数移动平均线,我们可以得到 MACD 和 DIFF 指标。

2. RSI 源码RSI({CLOSE}, N) :=LC = REF({CLOSE}, 1)UP = SMA(MAX({CLOSE}-LC, 0), N)DOWN = SMA(MAX(LC-{CLOSE}, 0), N)RSI = UP / (UP + DOWN) * 100在这段源码中,我们定义了 RSI 指标,其中 `N` 表示计算 RSI的周期;`LC` 表示前一个收盘价;`UP` 表示价格上涨的平均值;`DOWN` 表示价格下跌的平均值。

通过计算这些值,我们可以得到RSI 指标。

3. BOLL 源码MA = MA({CLOSE}, N)MD = STD(MA, N)UPPER = MA + K * MDLOWER = MA - K * MD在这段源码中,我们定义了 BOLL 指标,其中 `N` 表示计算BOLL 的周期;`MA` 表示简单移动平均线;`MD` 表示平均线的标准差;`K` 表示标准差的倍数。

通过计算这些值,我们可以得到BOLL 指标中的上轨和下轨。

总结本文档提供了文华财经期货软件中的至尊分析王指标公式源码。

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

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

/* AMV0:=VOL*(O+C)/2;CG:MA(C,3),COLORFFCC66,LINETHICK2;FL:=HHV(CG,2);黄金线:HHV(CG,2),COLOR00FF00;FS:CG-(FL-CG),COLORRED,LINETHICK2;十:MA(C,13),COLOR00FFFF,LINETHICK2;涨:IF(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWN ULL),COLORRED,LINETHICK2;平:IF(MA(CLOSE,13)=REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWN ULL),COLOR00FFFF,LINETHICK3;跌:IF(MA(CLOSE,13)<REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWN ULL),COLORGREEN,LINETHICK2;DRAWTEXT(平=十,十*0.998-0.01,'关注'),COLORCYAN;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);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);波峰:IF(T1,A,A),COLORFF00FF,POINTDOT;STICKLINE(T1,A,A,9,0),COLORFF00FF;波谷:IF(T2,B,B),COLOR80FF00,POINTDOT;STICKLINE(T2,B,B,9,0),COLOR80FF00;VAR3:=LLV(HIGH,240); VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*10 0;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-R EF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-R EF(CLOSE,1)),13,1)*100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3); VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3); VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3); VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREE N;DRAWTEXT(卖1>0,HIGH*1.02,'卖'),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));X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1); GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(9,17,8)<REF("MACD.MACD"(9,17,8),1);STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055; STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555; STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;*/趋势5:MA(CLOSE,5);CURRBARSCOUNT:=DATACOUNT - BARPOS;拐头卖10:MA(CLOSE,10);方向15:MA(CLOSE,15);中心线:(MA(C,30)+MA(C,72))/2,COLORGRAY,DOT;脱离价格1:中心线*1.2,COLORGRAY,DOT;脱离价格2:中心线*0.8,COLORGRAY,DOT;地心引力线:(MA(C,30)+MA(C,72))/2,COLORGRAY,DOT;地心引力区1:地心引力线*1.1,COLORGRAY,DOT;地心引力区2:地心引力线*0.9,COLORGRAY,DOT;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);平空开多:=CROSS(MACD,0);平多开空:=CROSS(0,MACD);//BUYSHORT_BUY(平空开多,LOW);//SELL_SELLSHORT(平多开空,HIGH);//AUTOFILTER;N:=10;T1:=REFX1(HHVBARS(V,N),10000);T0:IF(CURRBARSCOUNT<=N+3,REFX1(IF(T1=0,C,REF(C,T1)),10000),NULL),COLORYELLOW,DOT; IF(CURRBARSCOUNT=T1+1,T0,NULL),CIRCLEDOT,COLORFF00FF;涨跌:=REF(C,1);涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE1(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE1(涨停,H,L,0,0),COLORMAGENTA;ZT:=C/REF(C,1)>1.0945 AND C=H;AA:=BACKSET(ZT AND CURRBARSCOUNT<60,0);AC:=REF(C,BARSLAST(AA));STICKLINE1(C,AC,AC,5,0),COLORMAGENTA;VAR4:=PEAKBARS(C,15,1,1)<10;VAR5:=IF(VAR4=1,2,0);顶:= IF(VAR5=2,2,0);中线卖出:=IF(顶>REF(顶,1),1,0);止损价:IF(中线卖出=1, C*0.9,0), POINTDOT,COLOR00FF00,LINETHICK5;STICKLINE1(止损价,C*0.9,C*0.9,200,1),COLORRED,COLORGREEN;MA5:=MA(C,5);角度: ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW;。

文华公式30分钟均线稳赚买入指标期货软件最准指标文华财经指标公式源码

文华公式30分钟均线稳赚买入指标期货软件最准指标文华财经指标公式源码

/*A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);VAR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);VAR2:=EMA(VAR1,8);VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55) )/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(VAR3,3)-10;(趋势>80);DRAWICON(CROSS(趋势,0),0,1);((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50))),COLORFFFF00;机构建仓区:0,LINETHICK0,COLORFFFF00;VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,5,0),COLORCC9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),COLORCC9900;STICKLINE(趋势<=13 AND VAR4>13,0,50,5,0),COLOR0099FF;VAR5:=FILTER((趋势<=13 AND VAR4>13),10);DRAWTEXT(VAR5,60,'买入'),COLOR0099FF;STICKLINE(趋势>=90 AND VAR4,0,30,5,0),COLORGRAY;VAR6:=FILTER((趋势>=90 AND VAR4),10);DRAWTEXT(VAR6,40,'清仓'),COLORGRAY;VAR7:=LLV(LOW,30);VAR8:=HHV(HIGH,30);VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;STICKLINE(VAR9>90,100,105,10,2),COLORRED;VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100;DRAWTEXT(IF(CROSS(VAR9,VAR10) AND VAR9>87,95,0),88,'险'),COLOR00FF00,; DRAWICON(CROSS(90,VAR9),95,9);VAR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;VAR12:=HHV(VAR11,30)*8;火焰山:EMA(IF(LOW<=VAR7 AND 趋势<40,(VAR11+VAR12),0),3)/618,COLORRED,LINETHICK2;STICKLINE(火焰山>0,0 ,火焰山*1.2,5,0 ),COLORRED;VAR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;VAR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,COLORFF0000;VAR16:=MAX(EMA(VAR13,2)-EMA(VAR14,5),0)*200;VAR17:=EMA(VAR16,5);波浪峰:VAR17,STICK,COLORFF00FF;STICKLINE(VAR17<REF(VAR17,1),0,VAR17,1,0),COLOR00FF00;VAR18:=MA(趋势线,8);IF(CROSS(VAR2,VAR18) AND VAR2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,VAR2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORFF0000;买入:IF(VAR5,60,0);*/VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);波: VAR3;段: VAR4;VAR5:=CROSS(VAR3,VAR4) AND VAR3<20;DRAWTEXT(FILTER(VAR5,10)=1,40,'抄底'),COLORRED;STICKLINE(FILTER(VAR5,10)=1,0,30,10,0),COLORRED;VAR9:=CROSS(VAR4,VAR3) AND VAR3>80;STICKLINE(FILTER(VAR9,5)=1,80,100,10,0),COLORGREEN;DRAWTEXT(FILTER(VAR9,5)=1,70,'逃顶'),COLORGREEN;VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;100,COLORBBBBBB,LINETHICK3;0,LINETHICK3;AA:=LLV(LOW,36);BB:=HHV(HIGH,30);风险:80,COLORFF00FF;小心:87.5,COLOR00FF00;DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);股神:DD,COLOR0000FF,LINETHICK2;股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);目标出现B:IF(CROSS(股海,90) AND (股神<40),70,0),COLORFFFF00;跟踪:10,COLOR0000FF;目标出现A:IF((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<跟踪),50,0),COLORF00FF0;。

文华财经软件指标源码公式最准不漂移指标公式源码

文华财经软件指标源码公式最准不漂移指标公式源码

/*N=9,M1=3,M2=3}RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1),LINETHICK2,COLORWHITE;D:=SMA(K,M2,1),COLORYELLOW;量能:=3*K-2*D,LINETHICK2;RSIE:=EMA(量能,3);DIFF : EMA(RSIE,12) - EMA(RSIE,26);BBDIFF:=DIFF-REF(DIFF,1);DEA : EMA(DIFF,9);BBDEA:=DEA-REF(DEA,1);MACD : 2*(DIFF-DEA), COLORSTICK;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORFFFF00; STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR00FF00; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR0099FF; STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORRED; 0,COLORFF8855,LINETHICK2;IF(DIFF>DEA,DIFF,DRAWNULL),COLORRED,LINETHICK2;IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORMAGENTA;DRAWICON(CROSS(DIFF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);DRAWBAND(DIFF,RGB(255,105,180),DEA,RGB(34,139,34));低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(低位金叉,0,-1.5,2,0),COLORFFFF00;DRAWTEXT(低位金叉,-1.5,' 低位金叉'),COLORFFFF00;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; STICKLINE(二次金叉,0,-1,5,0),COLORFF00FF;DRAWICON(二次金叉,DEA*1.2,11) ;VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);QYYJ:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13);RQQ:=EMA(0.667*REF(QYYJ,1)+0.333*QYYJ,2);DRAWTEXT(CROSS(QYYJ,RQQ) AND QYYJ<10,L-0.2,'低吸'),COLORCYAN;AR26R:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VAR28R:=SMA(VAR26R,3,1);TTWWW:= SMA(VAR28R,3,1);KUIO:= SMA(TTWWW,3,1);DRAWTEXT(TTWWW<7 AND KUIO<7 AND TTWWW>REF(TTWWW,1),L-1,'底买'),COLORGREEN;VARU:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,2 4)*100+(CLOSE-MA(CLOSE,32))/MACLOSE,32)*100)/3;DRAWTEXT(VARU<-22 AND VARU> REF(VARU,1),L,'大底'),COLORYELLOW;VAR2TX:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR3TX:=SMA(VAR2TX,4,1);VAR4TX:=SMA(VAR3TX,2,1);VAR5TX:=SMA(VAR4TX,2,1);DRAWTEXT(CROSS(VAR4TX,VAR5TX) AND VAR4TX<25 AND REF(C<O,1),L-0.1,'短波'),COLORWHITE;VAR01F:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR02F:=SMA(VAR01F,3,1);VAR03F:=SMA(VAR02F,3,1);VAR04F:=SMA(VAR03F,3,1);VAR06F:=CROSS(VAR03F,VAR04F) AND VAR03F<25;VAR07F:=VAR06F AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2; DRAWTEXT(VAR07F,L-0.2,'波段短线'),COLORYELLOW;DRAWTEXT(二次金叉,-1,' 二次金叉'),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);STICKLINE(底背离,0,1.5,3,0),COLOR00FF00;DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2; DRAWTEXT(底背离,2,' 底背离'),COLOR00FF00;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);STICKLINE(顶背离,0,2,3,0),COLORFF8855;DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFF8855,*/DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA1:=EMA(DIF1,9);MACD1:=2*(DIF1-DEA1),STICK;MACD2:=EMA(MACD1,3);STICKLINE1(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORRED;STICKLINE1(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORGREEN;STICKLINE1(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;STICKLINE1(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;DIF:DIF1,COLOR33FF33;DEA:DEA1,COLORYELLOW;MACD:MACD1,NODRAW,COLORMAGENTA;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;MM:=IF(MACD< 0,MACD,0);JJ:=MM> REF(MM,1);ZZ:=REF(JJ,1)=1;准备:=(JJ AND ZZ)*DEA;JH:=HHV(MAX(K,MAX(D,J)),250);DH:=HHV(MAX(DIF,DEA),250);SH:=INTPART(JH/DH)/2;DIFF50:=SH*DIF+50,COLORFFFF00;DEA50:=SH*DEA+50,COLORBLUE;缩头:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)>REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)< REF(1.5*(DIFF50-DEA50),1),1,0);缩脚:=IF(1.5*(DIFF50-DEA50)<0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);杀多:=IF(1.5*(DIFF50-DEA50)<0 AND REF(1.5*(DIFF50-DEA50),1)> REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)<REF(1.5*(DIFF50-DEA50),1),1,0);诱空:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);阻力:=IF(CROSS(C,MA(C,20)) OR CROSS(C,MA(C,60)),10,0);DRAWTEXT(FILTER(杀多,3) AND 杀多,MACD+0.1,'杀多'),COLORFF00FF;DRAWTEXT(FILTER(缩头,3) AND 缩头,MACD+0.1,'卖'),COLORFF00FF;DRAWTEXT(FILTER(诱空,3) AND 诱空,MACD+0.1,'?洗'),COLOR00FF00;DRAWTEXT(FILTER(缩脚,3) AND 缩脚,MACD-0.1,'买'),COLOR00FF00;IF(MACD>=REF(MACD,1),DIF1,NULL),COLORRED,LINETHICK2;。

文华财经指标公式源码文华财经指标突破上轨下轨

文华财经指标公式源码文华财经指标突破上轨下轨

/*A:=(COST(99.999)-COST(0.001))/10; J0:=COST(0.001);J1:=J0+A;J2:=J0+2*A;J3:=J0+3*A;J4:=J0+4*A;J5:=J0+5*A;J6:=J0+6*A;J7:=J0+7*A;J8:=J0+8*A;J9:=J0+9*A;J10:=COST(99.999);Q1:=WINNER(J1);Q2:=WINNER(J2)-WINNER(J1);Q3:=WINNER(J3)-WINNER(J2);Q4:=WINNER(J4)-WINNER(J3);Q5:=WINNER(J5)-WINNER(J4);Q6:=WINNER(J6)-WINNER(J5);Q7:=WINNER(J7)-WINNER(J6);Q8:=WINNER(J8)-WINNER(J7);Q9:=WINNER(J9)-WINNER(J8);Q10:=1-WINNER(J9);最大筹码区:=MAX(Q1,MAX(Q2,MAX(Q3,MAX(Q4,MAX(Q5,MAX(Q6,MAX(Q7,MAX(Q8,MAX(Q9,Q10) ))))))));筹码密集价:IF(最大筹码区=Q1,(J1+J0)/2,IF(最大筹码区=Q2,(J1+J2)/2,IF(最大筹码区=Q3,(J3+J2)/2,IF(最大筹码区=Q4,(J4+J3)/2,IF(最大筹码区=Q5,(J5+J4)/2,IF(最大筹码区=Q6,(J6+J5)/2,IF(最大筹码区=Q7,(J7+J6)/2,IF(最大筹码区=Q8,(J8+J7)/2,IF(最大筹码区=Q9,(J9+J8)/2,IF(最大筹码区=Q10,(J10+J9)/2,0)))))))))),NODRAW;筹码密集度:(WINNER(筹码密集价*1.1)-WINNER(筹码密集价*0.9))*100;日相对筹码价位:=(筹码密集价-COST(0.001))/(COST(99.999)-COST(0.001))*100;年股价相对位:=(C-LLV(L,250))/(HHV(H,240)-LLV(L,250))*100;年最大收益:=(C-LLV(L,250))/LLV(L,250)*100;低位密集:=筹码密集度>70 AND 日相对筹码价位<40 AND 年股价相对位<50 AND 年最大收益<50;STICKLINE(低位密集,0,50,0,0),COLORLIRED;高位密集:=筹码密集度>70 AND 日相对筹码价位>60 AND 年股价相对位>80 AND 年最大收益>100;STICKLINE(高位密集,50,100,0,0),COLORLIGREEN;当前获利盘%:WINNER(C)*100,COLORWHITE;STICKLINE(WINNER(C)>0.9 AND V/CAPITAL<3/100,0,100,0,0),COLORMAGENTA;浮筹比例%:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,COLORCYAN,NODRAW; ~90%成本集中:(COST(95)-COST(5))/COST(99.9999)*100,COLORWHITE,NODRAW;~70%成本集中:(COST(8 */上轨:EMA(H,25),COLORGREEN,LINETHICK2;下轨:EMA(L,25),COLORGREEN,LINETHICK2;//POL YLINE1(C>上轨,上轨);NA1:=上轨;IF(C>上轨,NA1,NULL),COLORRED,LINETHICK2;//POL YLINE1(C>下轨,下轨);NB1:=下轨;IF(C>下轨,NB1,NULL),COLORRED,LINETHICK2;QS:=(C+上轨+下轨)/3;STICKLINE1(C>REF(QS,1) AND O>=C,C,O,-1,0),COLORRED; STICKLINE1(C>REF(QS,1) AND O>=C,L,H,0,0),COLORRED; STICKLINE1(C<=REF(QS,1) AND O<=C,O,C,-1,1),COLORCYAN; STICKLINE1(C<=REF(QS,1) AND O<=C,O,L,0,1),COLORCYAN; STICKLINE1(C=REF(QS,1) AND O<=C,C,H,0,1),COLORCYAN; {涨停K线}ZT_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);ZT_2:=ZT_1>=0.099 AND CLOSE=HIGH AND LOW<>HIGH; STICKLINE1(ZT_2,OPEN,CLOSE,2,0),COLORYELLOW;{KDJ测顶底}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;DRAWICON(CROSS(J,0),L*0.98,5);DRAWICON(CROSS(100,J),H*1.02,6);A1:=C>REF(C,4);A2:=C<REF(C,4);T1:=A2 AND REF(A1,1);T2:=A2 AND REF(T1,1);T3:=A2 AND REF(T2,1);T4:=A2 AND REF(T3,1);T5:=A2 AND REF(T4,1);T6:=A2 AND REF(T5,1);T7:=A2 AND REF(T6,1);T8:=A2 AND REF(T7,1);T9:=A2 AND REF(T8,1);DRAWTEXT(T6,L*0.99,'?'),COLORGREEN;DRAWTEXT(T7,L*0.99,'?'),COLORGREEN;DRAWTEXT(T8,L*0.99,'?'),COLORGREEN;DRAWTEXT(T9,L*0.99,'?'),COLORGREEN;B1:=C<REF(C,4);B2:=C>REF(C,4);D1:=B2 AND REF(B1,1);D2:=B2 AND REF(D1,1);D3:=B2 AND REF(D2,1);D4:=B2 AND REF(D3,1);D5:=B2 AND REF(D4,1);D6:=B2 AND REF(D5,1);D7:=B2 AND REF(D6,1);D8:=B2 AND REF(D7,1);D9:=B2 AND REF(D8,1);DRAWTEXT(D6,H*1.01,'?'),COLORYELLOW; DRAWTEXT(D7,H*1.01,'?'),COLORYELLOW; DRAWTEXT(D8,H*1.01,'?'),COLORYELLOW; DRAWTEXT(D9,H*1.01,'?'),COLORYELLOW;。

文华公式15分钟k线稳定盈利买卖提示指标公式源码文华财经期货软件期货

文华公式15分钟k线稳定盈利买卖提示指标公式源码文华财经期货软件期货

/*K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=((3 * RSV12) - (2 * K12));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));{J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));}压力位:IF(CROSS(D24,D),HIGH,L),POINTDOT,COLORFFFFFF;支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);{L2L:=IF(((D < 支撑位) AND (REF(D,1) >= 支撑位)),HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),BARSLAST(((D < 支撑位) AND REF(D,1)))));RH1:=IF((HIGH > L2L),LOW,REF(LOW,BARSLAST((HIGH > L2L))));RH4:=IF((HIGH > L2L),D,REF(D,BARSLAST((HIGH > L2L))));RH42:=IF((((HIGH > RH1) AND (D < RH4)) AND (D < D24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH1) AND (D < RH4)) AND (D < D24))))); RH5:=IF(((D > U2L) AND (REF(D,1) <= U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1)))));RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5))));RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5))));RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D > D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24)))));}长期底部:LLV(HIGH,30),COLOR00FF00;{DRAWTEXT(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 长期底部)) AND (LOW <= J24)),20),(LOW - 0.12),'←底成'),COLOR0EABFF;}RL5:=(SMA(HIGH,5,2) * 1.05);上:=(SMA(LOW,5,2) * 0.96);下:=SMA(LOW,2,1);{DRAWTEXT(FILTER((((((LOW <= 压力位) AND (WINNER(CLOSE) <= 0.07)) AND (CLOSE >= 压力位)) AND (CLOSE < 上1)) AND ((CLOSE / OPEN) > 1.02)),3),LOW,'追'),COLOR936EF0;}中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1:=EMA(中,10);X2:=REF(X1,1);X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X5:=REF(CLOSE,1);X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR1M:=EMA(CLOSE,8);飞龙顶底线一:=EMA(VAR1M,20);VAR2M:=CROSS(VAR1M,飞龙顶底线一);VAR3M:=(VAR1M < MA(CLOSE,20));VAR4M:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR5M:=SMA(VAR4M,5,1);VAR6M:=SMA(VAR5M,8,1);VAR7M:=(CROSS(VAR5M,VAR6M) AND (VAR6M < 5));VAR8M:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR7M);VAR9M:=IF((CLOSE > 1000),VAR7M,VAR8M);VARFM:=CROSS(X1,X2);MA115:=VARFM;低买:=(VAR2M AND VAR3M);黑码起步:=VAR9M;DRAWTEXT(X8,(HIGH * 1.03),'←出货'),COLOR9000F5;DRAWTEXT((黑码起步 > 0),(HIGH * 1.04),'←逃命'),COLOR0000FF;逃遁:=(SMA(HIGH,21,2) * 1.05);STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),COLORFF5B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.8,0),COLORFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.7,0),COLORFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.6,0),COLORFF9C00; */INDEXC:="999001$C";A:=EMA((CLOSE-REF(C,1))/REF(C,1)*10-(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*10,5),LINETHICK 1;//STICKLINE1(A>0,0,A,1,2),COLORFF00FF;//STICKLINE1(A<0,0,A,1,2),COLORGREEN;HSNP1:=CLOSE-REF(CLOSE,1);HSNP2:=IF(CLOSE-REF(CLOSE,1)>=0,HSNP1,0);HSNP3:=REF(CLOSE,1)-CLOSE;HSNP4:=IF(CLOSE-REF(CLOSE,1)<=0,HSNP3,0);HSNP5:=SUM(HSNP2,90)/SUM(HSNP4,90);HSNP6:=100-100/(1+HSNP5);HSNP7:=EMA(HSNP6,21);HSNP8:=EMA(HSNP7,5);HSNP:=EMA(HSNP7,3);NP:=(HSNP7-HSNP);NL:=(HSNP-HSNP7);// STICKLINE1(NL<0,0,NL,1,2),COLOR0B0B77;// STICKLINE1(NP<0,0,NP,1,2),COLOR666666;JJ :=(C*2+H+L)/4;SK := EMA(JJ,13) - EMA(JJ,21);SD := EMA(SK,3);SP := EMA(SK,10);长线1:=IF(SD>=SP,SD,SP),LINETHICK1,COLORYELLOW;长线2:=IF(SP-SD,SP,SD),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),LINETHICK2,COLORFF00FF;短空:IF(B1-A1,B1,A1),LINETHICK1,COLORGREEN;。

文华财经期货软件指标公式源码突破买卖点指标公式源码

文华财经期货软件指标公式源码突破买卖点指标公式源码

/*VAR1:=EMA(EMA(EMA(C,5),8),13);VAR2:=((VAR1-REF(VAR1,1))/REF(VAR1,1))*618;VAR3:=MA(VAR2,8);VAR4:=VAR2-VAR3;VAR5:=SMA(VAR4,3,1);短:WMA(EXPMA(((3*C)+(2*O)+H+L)/7,3),3),COLORFFFFFF; 道:IF(1,SMA(短,8,1),DRAWNULL),COLORCC99AA,LINETHICK2; IF(VAR2>=VAR3,道,DRAWNULL),COLOR6600CC,LINETHICK2; VARC:=BARSLAST(VAR4>=REF(VAR4,1));VARD:=BARSLAST(VAR4<=REF(VAR4,1));神10:MA(C,10);神30:=MA(C,30);神60:MA(C,60);神120:MA(C,120);神250:MA(C,250);STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160) ANDC<O,H,L,0,0),COLORFFCC00;{好}STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160) AND C>O,H,L,0,0),COLOR0000FF; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,4 ,0 ),COLOR0000AA; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,3.3 ,0 ),COLOR0011BB; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,2.2,0 ),COLOR0022CC; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,1.65 ,0 ),COLOR0033DD; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,1.1 ,0 ),COLOR0044EE; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,0.55 ,0 ),COLOR0055FF; STICKLINE(VARC=0 AND C<MA(C,250) ANDC>O ,H,L,0,0),COLOR0000FF;STICKLINE(VARC=0 AND C<MA(C,250) ANDC<O ,H,L,0,0),COLORFFCC00;STICKLINE(VARC=0 AND C<MA(C,250),C,O,0,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,3,0),COLORFF5500;STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,2.8,0),COLORFF6600; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,2.5,0),COLORFF7700; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,2.2,0),COLORFF8800; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,1.7,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,1.2,0),COLORFFAA00; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,0.7,0),COLORFFCC00; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,0.2,0),COLORFFFF00; STICKLINE(VARC=0 AND C<MA(C,20) ANDC>O ,H,L,0,0),COLOR0000FF;STICKLINE(VARC=0 AND C<MA(C,20) ANDC<O ,H,L,0,0),COLORFFCC00;STICKLINE(VARC=0 AND C<MA(C,20),C,O,0,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,3,0),COLORFF5500;STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,2.8,0),COLORFF6600; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,2.5,0),COLORFF7700; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,2.2,0),COLORFF8800; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,1.7,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,1.2,0),COLORFFAA00; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,0.7,0),COLORFFCC00; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,0.2,0),COLORFFFF00; STICKLINE(VARC=0 AND C<MA(C,60) ANDC>O ,H,L,0,0),COLOR0000FF;STICKLINE(VARC=0 AND C<MA(C,60) ANDC<O,H,L,0,0),COLORFFCC00;STICKLINE(VARC=0 AND C<MA(C,60),C,O,0,0),COLORFF9900;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,3,0),COLORFF5500;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,2.8,0),COLORFF6600;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,2.5,0),COLORFF7700;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,2.2,0),COLORFF8800;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,1.7,0),COLORFF9900;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,1.2,0),COLORFFAA00;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,0.7,0),COLORFFCC00;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,0.2,0),COLORFFFF00;STICKLINE(VARC=0 AND C<MA(C,160) ANDC>O,H,L,0,0),COLOR0000FF;STICKLINE(VARC=0 AND C<MA(C,160) ANDC<O,H,L,0,0),COLORFFCC00;STICKLINE(VARC=0 AND C<MA(C,160) ,C,O,0,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,3,0),COLORFF5500; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,2.8,0),COLORFF6600; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,2.5,0),COLORFF7700; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,2.2,0),COLORFF8800; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,1.7,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,1.2,0),COLORFFAA00; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,0.7,0),COLORFFCC00; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,0.2,0),COLORFFFF00; STICKLINE(VARD=0 AND C>O,H,L,0,0),COLOR0000FF; STICKLINE(VARD=0 AND C<O,H,L,0,0),COLORFFCC00; STICKLINE(VARD=0,C,O,0,0),COLORFF9900; STICKLINE(VARD=0,CLOSE,OPEN,3,0),COLORFF5500; STICKLINE(VARD=0,CLOSE,OPEN,2.8,0),COLORFF6600; STICKLINE(VARD=0,CLOSE,OPEN,2.5,0),COLORFF7700; STICKLINE(VARD=0,CLOSE,OPEN,2.2,0),COLORFF8800;STICKLINE(VARD=0,CLOSE,OPEN,1.7,0),COLORFF9900; STICKLINE(VARD=0,CLOSE,OPEN,1.2,0),COLORFFAA00; STICKLINE(VARD=0,CLOSE,OPEN,0.7,0),COLORFFCC00; STICKLINE(VARD=0,CLOSE,OPEN,0.2,0),COLORFFFF00;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20) AND C>O,H,L,0,0),COLOR0000FF;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20) AND C<O,H,L,0,0),COLORFFCC00;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,0,0),COLOR0088EE;{好} STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,4 ,0 ),COLOR0000AA;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,3.3 ,0 ),COLOR0011BB; STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,2.2,0 ),COLOR0022CC;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,1.65 ,0 ),COLOR0033DD;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,1.1 ,0 ),COLOR0044EE;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,0.55 ,0 ),COLOR0055FF;情3:=VARC=0 AND C>MA(C,20) AND (BARSCOUNT(C)+1)<365 ; STICKLINE(情3 AND C>O,H,L,0,0),COLOR0000FF; STICKLINE(情3 AND C<O,H,L,0,0),COLORFFCC00; STICKLINE(情3,C,O,-1,0),COLOR001235;STICKLINE(情3 AND C<O,H,L,0,0),COLORFFCC00; STICKLINE(情3 AND C>O,H,L,0,0),COLOR0000FF; STICKLINE(情3,C,O,4 ,0 ),COLOR0000AA;STICKLINE(情3,C,O,3.3 ,0 ),COLOR0011BB;STICKLINE(情3,C,O,2.2,0 ),COLOR0022CC;STICKLINE(情3,C,O,1.65 ,0 ),COLOR0033DD;STICKLINE(情3,C,O,1.1 ,0 ),COLOR0044EE;STICKLINE(情3,C,O,0.55 ,0 ),COLOR0055FF;神线1:=MA(C,20)-MA(C,250);神线2:=MA(C,60)-MA(C,250);神功1:=MA(神线1,1)*4;神功2:=EMA(神线2,1)*4,COLORFFFF80;YS1:=(HIGH+LOW+CLOSE*2)/4;RK3:=EMA(YS1,10);RK4:=STD(YS1,10);RK5:=(YS1-RK3)*100/RK4;RK6:=EMA(RK5,5);RK7:=EMA(RK6,10);涨:=EMA(RK6,10)+100/2-5,COLORRED;股灾2:=NOT(REF(C<O,1) AND C<REF(H,1) );股灾3:=NOT(C<REF(H,1) AND C<REF(H,2) OR C<REF(H,3) ORC<REF(H,4) OR C<REF(H,5));股灾4:=NOT(COUNT(C<O,7) >=5 ANDSUM(C/REF(C,1)<0.96,7)>=1);股灾5:=NOT( 道<MA(C,60) AND MA(C,60)<REF(MA(C,60),1) AND C<MA(C,60) );股灾6:=NOT(道<REF(道,1) AND C<道);股灾7:=SUM(SUM(C/REF(C,1)>1.099,7)>=5 ANDC>MA(C,250),60)<1;股灾8:=SUM(HHVBARS(HIGH,90)>LLVBARS(HIGH,90) AND(HHV( HIGH,90)-LLV( LOW,90))/LLV( LOW,90)*100>50 ANDC>MA(C,250) ,90) <1;股灾9:=NOT(MA(C,5)<MA(C,10) AND MA(C,10)<MA(C,20) ANDMA(C,20)<MA(C,30) AND MA(C,20)<MA(C,120) ANDMA(C,120)<MA(C,90) AND MA(C,20)<REF(MA(C,20),1) ANDMA(C,30)<REF(MA(C,30),1) AND MA(C,60)<REF(MA(C,60),1) ) ;股灾12:=SUM((C/REF(C,1)<0.91 AND L=C),30)<1;股灾13:=SUM((C/REF(C,1))<0.93,10)<1;股灾15:=NOT( MA(C,10)<MA(C,20) AND MA(C,20)<MA(C,30) AND MA(C,30)<MA(C,60) AND MA(C,10)<REF(MA(C,10),1) ANDMA(C,20)<REF(MA(C,20),1) AND MA(C,30)<REF(MA(C,30),1) AND MA(C,120)>MA(C,250) AND MA(C,90)>MA(C,120) AND O<MA(C,120) AND C<MA(C,20) ) ;股灾总:=股灾2 AND 股灾3 AND 股灾4 AND 股灾5 AND 股灾6 AND 股灾7 AND 股灾8 AND 股灾9 AND 股灾12 AND 股灾13 AND 股灾15;P1:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) AND H>MA(C,250) AND MA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) ANDMA(C,250)>REF(MA(C,250),1) AND LLV(C,15)<MA(C,250) AND 股灾13 AND C>O;P2:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) ANDMA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) ANDMA(C,250)>REF(MA(C,250),1) AND MA(C,120)>REF(MA(C,120),1) AND LLV(C,15)<MA(C,120) AND C>O AND C>MA(C,120) AND 股灾12 AND 股灾15 AND 股灾9;P3:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) AND H>MA(C,60) AND MA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) ANDMA(C,250)>REF(MA(C,250),1) AND MA(C,20)>REF(MA(C,20),1) AND MA(C,90)>REF(MA(C,90),1) AND C>MA(C,20) AND C>O ANDC/REF(C,1)<1.099 AND LLV(C,5)<MA(C,120);P4:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) AND H>MA(C,20) AND MA(C,20)>MA(C,60) AND MA(C,60)>MA(C,120) ANDMA(C,120)>MA(C,250) AND MA(C,250)>REF(MA(C,250),1) ANDMA(C,20)>REF(MA(C,20),1) AND MA(C,60)>REF(MA(C,60),1) AND C>MA(C,20) AND C>O AND NOT(REF(C,1)/REF(C,2)<0.97) AND LLV(C,5)<MA(C,20) AND REF(C,1)/REF(C,2)<1.099 ANDSUM(C<=O,7)<5 AND C>神功2 AND 神功2>REF(神功2,1)+0.01 AND ABS(MA(C,10)-MA(C,20))>ABS(MA(C,10)-MA(C,30));P5:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) ANDMA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) ANDMA(C,250)>REF(MA(C,250),1) AND MA(C,120)>REF(MA(C,120),1) AND LLV(C,15)<MA(C,120) AND C>O AND C>MA(C,250) ANDC<MA(C,120) AND 股灾12 AND 股灾15 AND 股灾9;停牌:=NOT(NAMELIKE('ST') AND NAMELIKE('*ST') OR NAMELIKE('S')) AND (BARSCOUNT(C)+1)>30 AND DYNAINFO(10)>100;{好}选:=P1 OR P2 OR P3 OR P4 OR P5 AND 停牌 AND 股灾总;STICKLINE(选 AND SUM(选,10)<2,L,L-0.01,3,0) ,COLORYELLOW; DRAWTEXT( 选 AND SUM(选,10)<2,L-0.02,'↖买'),COLOR00FFFF;*/CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;通达信:(EMA(CS,3)-50)*2,COLORRED,LINETHICK3;买入点:IF(通达信<-80,35,0),LINETHICK1,COLORWHITE;极弱:-80,COLORFF00FF;超买:73,COLORCY AN,LINETHICK3;弱势:-60,COLORFFFF00;STICKLINE1(通达信<REF(通达信,1) AND 通达信>0,0,通达信,4,0),COLOR00AAFF; STICKLINE1(通达信<REF(通达信,1) AND 通达信>0,0,通达信,4.4,0),COLOR00CCFF; STICKLINE1(通达信>=REF(通达信,1) AND 通达信>0,0,通达信,4,0),COLOR0000AA; STICKLINE1(通达信>=REF(通达信,1) AND 通达信>0,0,通达信,4.4,0),COLOR0022CC; STICKLINE1(通达信>REF(通达信,1) AND 通达信<0,0,通达信,4,0),COLORAA00BB; STICKLINE1(通达信>REF(通达信,1) AND 通达信<0,0,通达信,4.4,0),COLORCC22BB; STICKLINE1(通达信<=REF(通达信,1) AND 通达信<0,0,通达信,4,0),COLORFF7700; STICKLINE1(通达信<=REF(通达信,1) AND 通达信<0,0,通达信,4.4,0),COLORFFAA22;V AR18:=(HIGH+LOW+CLOSE)/3;V AR19:=(V AR18-MA(V AR18,14))/(0.015*A VEDEV(V AR18,14));V AR1A:=(V AR18-MA(V AR18,70))/(0.015*A VEDEV(V AR18,70));V AR1B:=IF(VAR19>=150 AND V AR19<200 AND V AR1A>=150 AND V AR1A<200,-10,0);V AR1C:=IF(VAR19<=-150 AND V AR19>-200 AND V AR1A<=-150 AND V AR1A>-200,10,0);V AR1D:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;V AR1E:=100-ABS(V AR1D);买入:IF(BARSCOUNT(CLOSE)<70,-80,IF(V AR1A<=-200 AND V AR19<=-150,15,V AR1C)-80),COLORYELLOW,LINETHICK2;DRAWICON(CROSS(通达信,超买) ,通达信,'ICO1');。

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

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

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

文华财经软件指标公式源码期货周线为王公式源码

文华财经软件指标公式源码期货周线为王公式源码

/*VARF:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);VAR19:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);VAR20:=VARF<REF(VAR19,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); AA:=(WINNER(CLOSE+CLOSE*15/100))*100;BB:=(WINNER(CLOSE+CLOSE*0/100))*100;CC:=AA-BB;DD:=(WINNER(CLOSE-CLOSE*0.1/100)-(WINNER(CLOSE-CLOSE*15/100)))*100;EE:=CC<3 AND DD<0.5 ;A1:=DYNAINFO(6);A2:=IF(LOW>A1,0,IF(HIGH<A1,1,(A1-LOW+0.01)/(HIGH-LOW+0.01)));A3:=VOL/WINNER(LOW);A4:=REF(HHV(CLOSE,120),1);A5:=REF(LLV(CLOSE,120),1);A6:=100*(CLOSE-A5)/(A4-A5);A7:=A2>0 OR A2=1;A8:=A7 AND A3/REF(A3,3)>=3 AND A6<80;A9:=REF(A8,1) OR REF(A8,2) OR REF(A8,3) OR REF(A8,4);A10:=A8 AND A9;A11:=IF(FILTER(A8,3),5,0);A12:=IF(FILTER(A10,3) OR EE,10,0);资金进场日:=IF(A11,8,0);STICKLINE(A12,0,15,5,0),COLORFF00FF;资金加仓日:=IF(A12,88,0);STICKLINE(A12,0,15,5,0),COLORFF00FF;STICKLINE(A11,0,5,5,0),COLORFF7700;VAR2:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LO W,14))));VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(L OW,6))),34));STICKLINE(VAR2<MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE; STICKLINE(VAR2>MA(VAR3,6),LOW,HIGH,0,1),COLORRED; STICKLINE(((OPEN>CLOSE)AND(VAR2<MA(VAR3,6))),(CLOSE-0.03), OPEN,2.5,0),COLORLIBLUE;STICKLINE(((OPEN<CLOSE)AND(VAR2<MA(VAR3,6))),CLOSE,OPEN, 2.5,1),COLORLIBLUE;STICKLINE(((OPEN>CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,(CLOSE -0.03),2.5,0),COLORRED;STICKLINE(((OPEN<CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,CLOSE, 2.5,1),COLORRED;DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.02)),7); DRAWICON(CROSS(MA(VAR3,6),VAR2),(HIGH+(HIGH*0.02)),8); DA:=(3*CLOSE+OPEN+LOW+HIGH)/6;DB:(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+10*REF(DA,10)+9* REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5*REF(DA,15)+4*REF(DA,16)+3*R EF(DA,17)+2*REF(DA,18)+REF(DA,20))/210,COLORYELLOW;DC:MA(DB,5),COLORRED;选股指标如下:VAR2:=(100-((90*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LO W,14))));VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(L OW,6))),34));B点买:CROSS(VAR2,MA(VAR3,6)) AND DYNAINFO(17)>0; STICKLINE(A11,0,5,4.5,0),COLORFF8800;STICKLINE(A11,0,5,4,0),COLORFF9900;STICKLINE(A11,0,5,3.5,0),COLORFFAA00;STICKLINE(A11,0,5,3,0),COLORFFBB00;STICKLINE(A11,0,5,2.5,0),COLORFFCC00;STICKLINE(A11,0,5,2,0),COLORFFDD00;STICKLINE(A11,0,5,1,0),COLORFFEE00;STICKLINE(A12,0,15,4.5,0),COLOR102099;STICKLINE(A12,0,15,4,0),COLOR1020AA;STICKLINE(A12,0,15,3.5,0),COLOR1020BB;STICKLINE(A12,0,15,3,0),COLOR1020CC;STICKLINE(A12,0,15,2.5,0),COLOR1020DD;STICKLINE(A12,0,15,2,0),COLOR1020EE;STICKLINE(A12,0,15,1,0),COLOR1020FF;DRAWTEXT(A12,17,'资金加仓'); */RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,3,1);A:=K>REF(K,1)&&K>REFX(K,1);H1:=VALUEWHEN(A,H);H2:=VALUEWHEN(A,REF(H1,1));R1:=VALUEWHEN(A,K);R2:=VALUEWHEN(A,REF(R1,1));DRAWICON(H1>H2&&R1<R2&&A,K,2);AA:=K<REF(K,1)&&K<REFX(K,1);L1:=VALUEWHEN(AA,L);L2:=VALUEWHEN(AA,REF(L1,1));R11:=VALUEWHEN(AA,K);R22:=VALUEWHEN(AA,REF(R11,1)); DRAWICON(L1<L2&&R11>R22&&AA,K,1);。

文华财经期货软件指标公式源码RSI顶底背离KDJ背离

文华财经期货软件指标公式源码RSI顶底背离KDJ背离

文华财经期货软件指标公式源码RSI顶底背离KDJ背离以下是文华财经期货软件中两个常用指标的计算方法和代码实现:RSI(相对强弱指标)和KDJ(随机指标)。

1.RSI(相对强弱指标):RSI指标是一种衡量市场当前价格的涨跌力量的指标,可以用于判断市场的超买和超卖情况。

下面是RSI指标的计算公式:RSI(n)=100-(100/(1+RS))RS=平均上升价格动量/平均下降价格动量其中,n表示计算RSI的周期数。

一般来说,常用的周期数是14下面是用Python实现RSI指标计算的代码:```pythondef rsi(prices, n=14):deltas = np.diff(prices)seed = deltas[:n+1]up = seed[seed >= 0].sum( / ndown = -seed[seed < 0].sum( / nrs = up / downrsi = np.zeros_like(prices)rsi[:n] = 100. - 100. / (1. + rs)for i in range(n, len(prices)):delta = deltas[i - 1]if delta > 0:upval = deltaelse:downval = -deltaup = (up * (n - 1) + upval) / ndown = (down * (n - 1) + downval) / nrs = up / downrsi[i] = 100. - 100. / (1. + rs)return rsi```2.KDJ(随机指标):KDJ指标是一种以价格波动和流动性为基础的技术分析指标,常用于判断股票和期货的超买和超卖情况。

下面是KDJ指标的计算公式:K=(2/3)*上一期K值+(1/3)*当期RSVD=(2/3)*上一期D值+(1/3)*当期KJ=3*D-2*K其中,RSV表示(当期收盘价-最近n个周期最低价)/(最近n个周期最高价-最近n个周期最低价)*100。

文华财经指标公式超准买卖点指标买卖一绝指标公式源码

文华财经指标公式超准买卖点指标买卖一绝指标公式源码

文华财经指标公式超准买卖点指标买卖一绝指标公式源码指标源码://指标变量VAR1:=REF(C,1);//昨收VAR2:=LLV(LOW,9);//最低价VAR3:=HHV(HIGH,9);//最高价VAR4:=50;//云图均线(可设定)VAR5:=MA(C,20);//20日均线VAR6:=MA(C,80);//80日均线VAR7:=EMA(CLOSE,10);//10日指数平均线VAR8:=EMA(CLOSE,20);//20日指数平均线VAR9:=(EMA(CLOSE,20)-EMA(CLOSE,40))/EMA(CLOSE,40);//短线与长线变形指标(可设定)VAR10:=LOW-REF(HIGH,1);//本周期最低价与上周期最高价差VAR11:=EMA((OPEN+HIGH+LOW+CLOSE)/4,13);//13日指数平均线//指标公式{新华证券超精准买卖额外指标公式V1.0}模式A:VAR1<VAR2ANDVAR3<VAR4ANDVAR5>VAR6ANDVAR7>VAR8ANDVAR9<0ANDVAR10<VAR11ANDC<REF(C,1);模式B:VAR1>VAR2ANDVAR3>VAR4ANDVAR5<VAR6ANDVAR7<VAR8ANDVAR9>0ANDVAR10>VAR11ANDC>REF(C,1);//版权信息STICKLINE(模式A,O,C,2,0);STICKLINE(模式B,O,C,2,0);DRAWICON(模式A,H*0.99,4);DRAWICON(模式B,L*1.01,3);{新华证券超精准买卖额外指标公式V1.0}//相关解释文华财经指标公式超准买卖点指标,是一种股票技术分析的重要指标,由新华证券提供。

该指标利用了多少技术指标,如最高价、最低价、50日云图均线,20日、80日均线,以及10日、20日、40日指数平均线和本周期最低价与上周期最高价差等,经过严谨细致的研判,最后给出了买卖点的判断。

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

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

/*{-----主图资金模块-----}超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;。

文华财经期货软件指标公式源码十战八胜指标公式源码

文华财经期货软件指标公式源码十战八胜指标公式源码

/*价量: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),COLOR00CCFF,NODRAW;主线:(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25),COLORCYAN,NODRAW;快线:(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25),COLOR55AAFF,NODRAW;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;{变异KD风险系数}TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向}{红}STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA; STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC; STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF; {粉}STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB; STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB; STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB; {黄}STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF; STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00CCFF; STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF; {蓝}STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700; STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22; STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55; STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN; STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,TGLXS+100,8,0),COLORWHITE; ZLCM:=EMA(WINNER(CLOSE)*70,3);{主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{散户筹码估算} ZSHTL:=SHCM/(ZLCM+SHCM)*100;{散户套牢筹码系数}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{主力控盘筹码系数}ZSHJJ:=EMA(ZSHTL,55);{散户警戒}ZZLJJ:=EMA(ZZLKP,55);{主力警戒}散兵坑:IF(ZZLKP<=10,ZZLKP,ZZLKP),COLORMAGENTA,NODRAW;{散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,2,0),COLOR808080;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C0C0;{主力控盘筹码}{粉}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORAA00BB; STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORCC22BB; STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5,0 ),COLOREE44BB; {蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORFF7700; STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORFFAA22; STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5 ,0 ),COLORFFFF55;{亮红}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLOR131FFD; STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLOR5050FF; STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5,0 ),COLOR7E7EFF;{深蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLORAA0000; STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLORCC0000; STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5 ,0 ),COLORFF0000;{主力筹码警戒}{黄}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0 ),COLOR00AAFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0 ),COLOR00CCFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0 ),COLOR00FFFF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,1.5,0 ),COLOR0022CC; STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,0.5 ,0 ),COLOR0055FF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0 ),COLOR0022CC;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,0.5 ,0 ),COLOR0055FF;{铸顶风险区}{绿}STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,2.5,0),COLOR00AA00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,1.5,0),COLOR00CC00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,0.5,0),COLOR00FF00;{散兵坑}STICKLINE(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;100,COLORGREEN;80,COLORGREEN;{0,COLORGREEN;}{主线快线}价量,COLOR0CC0FF,LINETHICK2;主线,COLOR00FFAA,LINETHICK2;快线,LINESTICK,COLORFF68DD;*/MMM:=1;CAPITAL:=GETPRICE1('流通股本');SVOL:=INTPART(SUM(V,0)/CAPITAL);TJ0:=SVOL>REF(SVOL,1) OR BARSSINCE(CLOSE)=0;SF1:=BARSLAST(TJ0)+1;TJJ2:=SF1<REF(SF1,1);S2:=IF(TJJ2,REF(SF1,1)+1,SF1);S3:=SUM(TJJ2,0);DIFF:=EMA(CLOSE,5) - EMA(CLOSE,34);DEA:=EMA(DIFF,5);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值。

文华财经期货指标公式源码极高胜率交易系统公式源码

文华财经期货指标公式源码极高胜率交易系统公式源码

/*VAR1:=(H+L+O+3*C)/6;WLT:=EMA(VAR1,3);WLTA:=EMA(WLT,1),COLORFFFFFF;空:HHV(MA(H,3),2),LINETHICK2,COLOR00DD00;多:LLV(MA(H,3),1),LINETHICK2,COLOR0000DD;JCBT:=LAST(多<空,9,1) AND 多=空;STICKLINE(JCBT,O,(O+C)/2,4,0),COLOR0000FF;DRAWTEXT(JCBT,L*0.98,'短B'),COLOR0000FF;{超跌反弹买点}VARA:=(C-REF(O,21))/REF(O,21)*100;VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);WLBT1:=V>=1.3*MA(V,5) AND REF(L,1)=LLV(L,55) AND VARA>=VARB AND VARA<-6.18; WLBT2:=V>=1.3*MA(V,5) AND CROSS(VARA,VARB) AND VARA<-10.18;WLBT:=WLBT1 OR WLBT2;DRAWTEXT(WLBT,L*0.98,'反弹'),COLOR00FFFF;STICKLINE(WLBT,C,O,3,0),COLOR00FFFF;{卖点设置}S1:=EMA(EMA(EMA(C,8),13),55);S2:=(REF(H,1)+REF(L,1))/2;S3:=MA(C,21)+2*STD(C,21);ST11:=CROSS(S2,S3);S4:=REF(C,1);S5:=SMA(MAX(C-S4,0),7,1)/SMA(ABS(C-S4),7,1)*100;S6:=CROSS(80,S5);ST2:=FILTER(S6,5);V1:=EMA(EMA(EMA(C,8),13),55);V2:=(REF(H,1)+REF(L,1))/2;V3:=MA(C,21)+2*STD(C,21);V4:=REF(C,1);V5:=SMA(MAX(C-V4,0),7,1)/SMA(ABS(C-V4),7,1)*100;V6:=CROSS(80,V5);ST:=FILTER(V6,5);DRAWICON(ST11,H*1.030,19);DRAWICON(ST2,HIGH*1.033,12);DRAWTEXT(ST OR CROSS(V2,V3),HIGH*1.02,'卖'),COLORGREEN;{乖离共振买点}BIAS6:=(C-MA(C,6))/MA(C,6)*100;BIAS12:=(C-MA(C,12))/MA(C,12)*100;BIAS24:=(C-MA(C,24))/MA(C,24)*100;TJ1:=BIAS6<=-8;TJ2:=BIAS12<=-12;TJ3:=BIAS24<=-18;BBT:=(TJ1 AND TJ2 AND TJ3) OR (TJ1 AND TJ2 ) OR (TJ1 AND TJ3);BTJ5:=CROSS(BIAS6,-10);BTJ6:=CROSS(BIAS6,-6.2);BIASXG:=FILTER(BBT OR BTJ5 OR BTJ6,3);STICKLINE(BIASXG,C,O,0.11,0),COLOR0078FF;DRAWTEXT(BIASXG,L*0.98,'BIAS'),COLOR0078FF;{以上3组信号综合或共振买点}WLTBT:=COUNT(WLBT OR JCBT OR BIASXG,2);XG1:=WLTBT>=2;XG:=FILTER(XG1,3);DRAWTEXT(XG,L*0.99,'金牛'),COLOR00FFFF;{选股及成功率统计}年选股:SUM(XG,250),NODRAW;设定利润:=REF(XG,20) AND HHV(H,20)>=REF(C,20)*1.15;{20个交易日内涨15%} 成功数:SUM(设定利润,250),NODRAW;成功率%:成功数/年选股*100,NODRAW;{基本面技术面数据解盘}套牢盘%:=100*(1-WINNER(C));获利盘%:=100*WINNER(C);集中度90%:=(COST(95)-COST(5))/(COST(100))*100;集中度70%:=(COST(85)-COST(15))/(COST(100))*100;平均成本:=COST(50);主力成本:=COST(5);最高:=HHV(H,21);最低:=LLV(L,21);PT:=REF(HIGH,1)-REF(LOW,1);中价:=(H+L+C)/3;近高:=2*中价-LOW;近低:=2*中价-HIGH;短期压力:=中价+PT;短期支撑:=中价-PT;DRAWTEXT_FIX(1,0.02,0.00,0,'【获利盘%】'),COLORRED;DRAWTEXT_FIX(1,0.02,0.06,0,'【套牢盘%】'),COLOR00FF00;DRAWTEXT_FIX(1,0.02,0.12,0,'【90%成本】'),COLORYELLOW;DRAWTEXT_FIX(1,0.02,0.18,0,'【70%成本】'),COLOR008FFF;DRAWTEXT_FIX(1,0.02,0.24,0,'【平均成本】'),COLORFF99FF;DRAWTEXT_FIX(1,0.02,0.30,0,'【主力成本】'),COLORFF00FF;DRAWTEXT_FIX(1,0.02,0.36,0,'【短期压力】'),COLORFFFFBF;DRAWTEXT_FIX(1,0.02,0.42,0,'【短期支撑】'),COLORF0F000;DRAWTEXT_FIX(1,0.3,0.00,0,'【中价】'),COLORWHITE;DRAWTEXT_FIX(1,0.3,0.06,0,'【近高】'),COLORFFFFBF;DRAWTEXT_FIX(1,0.3,0.12,0,'【近低】'),COLORF0F000;DRAWTEXT_FIX(1,0.3,0.18,0,'【最高】'),COLORFF99FF;DRAWTEXT_FIX(1,0.3,0.24,0,'【最低】'),COLORFF00FF;DRAWNUMBER_FIX(1,0.16,0.00,0,CONST(获利盘%)),COLORRED;DRAWNUMBER_FIX(1,0.16,0.06,0,CONST(套牢盘%)),COLOR00FF00; DRAWNUMBER_FIX(1,0.16,0.12,0,CONST(集中度90%)),COLORYELLOW; DRAWNUMBER_FIX(1,0.16,0.18,0,CONST(集中度70%)),COLOR008FFF; DRAWNUMBER_FIX(1,0.16,0.24,0,CONST(平均成本)),COLORFF99FF; DRAWNUMBER_FIX(1,0.16,0.30,0,CONST(主力成本)),COLORFF00FF; DRAWNUMBER_FIX(1,0.16,0.36,0,CONST(短期压力)),COLORFFFFBF; DRAWNUMBER_FIX(1,0.16,0.42,0,CONST(短期支撑)),COLORF0F000; DRAWNUMBER_FIX(1,0.38,0.00,0,CONST(中价)),COLORWHITE;DRAWNUMBER_FIX(1,0.38,0.06,0,CONST(近高)),COLORFFFFBF;DRAWNUMBER_FIX(1,0.38,0.12,0,CONST(近低)),COLORF0F000;DRAWNUMBER_FIX(1,0.38,0.18,0,CONST(最高)),COLORFF99FF;DRAWNUMBER_FIX(1,0.38,0.24,0,CONST(最低)),COLORFF00FF;DRAWTEXT_FIX(1,0.5,0.0,0,'【每股收益 (元)】:'),COLOR0000FF;DRAWNUMBER_FIX(1,0.63,0.00,0,FINANCE(33)),COLOR0000FF;DRAWTEXT_FIX(1,0.5,0.06,0,'【每股净资产(元)】:'),COLOR00FFFF; DRAWNUMBER_FIX(1,0.63,0.06,0,FINANCE(34)),COLOR00FFFF;BHD:=(AMOUNT/C)/HHV((AMOUNT/C),26)*100;DRAWTEXT_FIX(1,0.5,0.12,0,'【量能饱和度℅】:'),COLORFF00FF;DRAWNUMBER_FIX(1,0.63,0.12,0,CONST(BHD)),COLORFF00FF;PSY:=COUNT(C>REF(C,1),34)/34*100;DRAWTEXT_FIX(1,0.5,0.18,0,'【心理乐观度℅】:')COLOR00FF00;DRAWNUMBER_FIX(1,0.63,0.18,0,CONST(PSY)),COLOR00FF00;{五里头操作理念}DRAWTEXT_FIX(1,0.0,0.98,0,'★五里理念★:改掉恶习,严守纪律,趋势为先,波段操作;安全第一,坚决止损! ★:本指标依据:多空转化→【短B】、超跌反弹→【反弹】、*/ MID:=(2.97*CLOSE+LOW+OPEN+HIGH)/6;主力:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED,LINETHICK2; DRAWCOLORLINE(主力>REF(主力,1),主力,COLORRED,COLORGREEN),LINETHICK2;。

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

已破解的交易策略源码:
DIRECTION:=CLOSE-REF(CLOSE,10);
VOLATILITY:=SUM(ABS((CLOSE-REF(CLOSE,1))),10);
ER:=ABS(DIRECTION/VOLATILITY);
FASTSC:=2/(2 + 1);
SLOWSC:=2/(30 + 1);
SSC:=ER*(FASTSC-SLOWSC)+SLOWSC;
:c,nodraw;
CONSTANT:=SSC*SSC;
AMAHIGH:=REF(EMA(HIGH,100),1)+CONSTANT*(HIGH- EMA(HIGH,100)); AMACLOSE:=REF(EMA(CLOSE,100),1)+CONSTANT*(CLOSE- REF(EMA(CLOSE,100),1)); AMALOW:=REF(EMA(LOW,100),1)+CONSTANT*(LOW- EMA(LOW,100));
REF(LOW>AMAHIGH,1),BK;
REF(CLOSE<AMACLOSE OR CLOSE<=0.995*BKPRICE,1),SP;
REF(HIGH<AMALOW,1),SK;
REF(CLOSE>AMACLOSE OR CLOSE>=1.005*SKPRICE,1),BP;
AUTOFILTER;
源码解析:
DIRECTION赋值:收盘价-10日前的收盘价
VOLATILITY赋值:(收盘价-昨收)的绝对值的10日累和
ER赋值:DIRECTION/VOLATILITY的绝对值
FASTSC赋值:2/(2 + 1)
SLOWSC赋值:2/(30 + 1)
SSC赋值:ER*(FASTSC-SLOWSC)+SLOWSC
输出:收盘价,NODRAW
CONSTANT赋值:SSC*SSC
AMAHIGH赋值:昨日最高价的100日指数移动平均+CONSTANT*(最高价- 最高价的100日指数移动平均)
AMACLOSE赋值:昨日收盘价的100日指数移动平均+CONSTANT*(收盘价- 昨日收盘价的100日指数移动平均)
AMALOW赋值:昨日最低价的100日指数移动平均+CONSTANT*(最低价- 最低价的100日指数移动平均)
昨日最低价>AMAHIGH,BK
昨日收盘价<AMACLOSEORCLOSE<=0.995*BKPRICE,SP
昨日最高价<AMALOW,SK
昨日收盘价>AMACLOSEORCLOSE>=1.005*SKPRICE,BP
AUTOFILTER。

相关文档
最新文档