文华财经压力与支撑指标文华财经指标公式源码赢顺云期货软件指标
文华财经期货软件指标公式源码赢顺云指标压力支撑多空指标
文华财经期货软件指标公式源码赢顺云指标压力支撑多空指标赢顺云指标压力支撑多空指标是一种基于市场价格和交易量等数据计算的技术指标,用于分析市场的多空态势。
它是通过计算市场的压力位和支撑位来判断市场多空力量的强弱程度。
赢顺云指标的计算包括以下几个步骤:1.计算最高价、最低价和收盘价的平均价:平均价=(最高价+最低价+收盘价)/32.计算压力位和支撑位:压力位=最高价+最低价/2支撑位=最低价+最高价/23.计算赢顺线:赢顺线=(收盘价-压力位)/(压力位-支撑位)赢顺线=(收盘价-支撑位)/(压力位-支撑位)4.计算多空指标:多空指标=(压力位-支撑位)/(收盘价-平均价)以上就是赢顺云指标压力支撑多空指标的计算公式,下面是该指标的源码实现示例(使用Python语言):```pythondef winshun_cloud(high_price, low_price, close_price):average_price = (high_price + low_price + close_price) / 3pressure = (high_price + low_price) / 2support = (low_price + high_price) / 2winshun_line = (close_price - support) / (pressure - support) long_short_indicator = (pressure - support) / (close_price - average_price)return winshun_line, long_short_indicator```在实际使用中,可以将赢顺云指标压力支撑多空指标应用于具体的期货品种和时间周期,计算出相应的数值,然后与其他指标和工具结合使用,进行市场分析和交易决策。
需要注意的是,不同的软件和平台可能会存在稍微不同的指标计算公式和参数设定,因此在具体使用时需要根据实际情况进行调整和匹配。
文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标
N:=5;WY:EMA(C,12),LINETHICK2,COLORYELLOW;VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;VAR3:=CROSS(69,VAR2);VARA:=FILTER(VAR3,4);DRAWICON(VARA,HIGH*1.035,2);DRAWTEXT(VARA,HIGH*1.04,'卖出'),COLORGREEN;缩量:=V<REF(V,1);新高:=C=HHV(C,20);下跌:=LLV(C,3)*1.04<HHV(C,10);回调:=BARSLASTCOUNT(缩量)>3 ANDEXIST(新高,8) AND 下跌AND C>MA(C,60) AND O<MA(C,20);DRAWTEXT(回调,LOW*1.04,'补仓'),COLORYELLOW;VAR4:=REF(CLOSE,1);VAR5:=SMA(MAX(CLOSE-VAR4,0),6,1)/SMA(ABS(CLOSE-VAR4),6,1)*100;ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;DRAWTEXT(VAR5>REF(VAR5,1) AND VAR5>80 AND ROC<REF(ROC,1),HIGH*1.04,'风险'),COLORBLUE;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;G1:=C<REF(C,1) AND (REF(C,1)<REF(C,2)) AND (REF(C,2)<REF(C,3));MA45:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,4);J5:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,5);MA4:=MA((MA45+J5)/2,1);SSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;KKK:=SMA(SSV,3,1);H1:=EMA(EMA(LLV(J5,15),2),2);YY4:=LLV(C,5)*1.15<HHV(C,15)AND LOW<H1 AND KKK<20AND VOL/MA(V,10)<1.4AND CLOSE/REF(CLOSE,1)>1.02AND COUNT(G1,6)>=1AND CLOSE>OPEN;CAPITAL:=GETPRICE1('流通股本');大盘股:=SUM(REF(V,1),8)/CAPITAL<15/100;中盘股:=SUM(REF(V,1),8)/CAPITAL<25/100;小盘股:=SUM(REF(V,1),8)/CAPITAL<30/100;大盘股1:=SUM(REF(V,1),5)/CAPITAL<10/100;中盘股1:=SUM(REF(V,1),5)/CAPITAL<14/100;小盘股1:=SUM(REF(V,1),5)/CAPITAL<15/100;DP:=CAPITAL>2500000;ZP:=CAPITAL>600000 AND CAPITAL<2500000;XP:=CAPITAL<600000;综合:=IF(DP=1,大盘股,IF(ZP=1,中盘股,小盘股));综合1:=IF(DP=1,大盘股1 ,IF(ZP=1,中盘股1,小盘股1));振幅:=(REF(HHV(C,5),1)-REF(LLV(C,5),1))/REF(LLV(C,5),1)<5.3/100;涨幅:=CLOSE/REF(C,1)>=1.048;JX3:=V/MA(V,10);YY3:=振幅AND ( 涨幅) AND C=HHV(C,5) AND 综合 1 AND 综合AND JX3<1.8 AND HHV(H,20)/C>1.04 ;买入:=YY4 OR YY3 ;DRAWTEXT(买入,LOW*1.01,'买入'),COLORRED;BB:=C/HHV(C,5)<1.15;下:=C<REF(C,1);YF:=LAST(下,4,1) AND COUNT(C<REF(C,1)*0.95,5)>=2AND (C>REF(C,1) OR C/O>1.035 OR (O/L>0.03 AND C>O))AND BB AND (C-L)/C>0.02 AND J<0 AND (H-C)<(C-O);YF1:=COUNT(下,5)>=3 AND COUNT(C<REF(C,1)*0.95,6)>=3AND C*1.15<HHV(C,5) AND C>REF(C,1)AND C>O AND J<2;A44:=V<REF(V,1)*2.8 AND COUNT(C<O*0.95,2)=2;A55:=((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND A44;A6:=FILTER(A55,1);YF2:=A6 AND BB AND H>REF(L,1);二档:=YF OR YF1 OR YF2;DRAWTEXT(二档,LOW*1.01,'二档'),COLORMAGENTA; INDEXC:="999300$C";TQ1:=(INDEXC-MA(INDEXC,58))/MA(INDEXC,58)<-0.152; TQ2:=(C-EMA(C,58))/EMA(C,58)<-0.19;买1:=TQ2 AND TQ1;T4:=(C-MA(C,2))/MA(C,2)*100;T5:=INDEXC;T6:=MA(T5,13);T7:=T6>1.050*T5;T8:=(C-REF(C,26))/REF(C,26)*10;T9:=T7;T10:=T8<-2.30 ;T11:=T4<-2.7 ;T12:=T9 AND T10 AND T11 ;T13:=CROSS(0.5,T12);T14:=CROSS(T13,0.5);T15:=BARSLAST(T14=1);T16:=T15<=5 AND C<REF(C,T15) ;买2:=T13 OR T16;T17:= (C-MA(C,2))/MA(C,2)*100;T18:=INDEXC;T19:=MA(T18,56);T20:=T18/T19<0.94;T21:=(C-REF(C,26))/REF(C,26)*10;T22:=T20;T23:=T21<-2.55;T24:=T17<-2.7;T25:=T22 AND T23 AND T24;T26:=CROSS(0.5,T25);T27:=CROSS(T26,0.5);T28:=BARSLAST(T27=1);T29:=T28<=5 AND C<1.02*REF(C,T28);底4:=T26 OR T29;T30:= (C-MA(C,2))/MA(C,2)*100;T31:=INDEXC;T32:=MA(T31,13);T33:=T32>1.050*T31;T34:=(C-REF(C,26))/REF(C,26)*10;T35:=T33;T36:=T34<-2.69;T37:=T30<-3.09;T38:=T35 AND T36 AND T37;T39:=CROSS(0.5,T38);T40:=CROSS(T39,0.5);T41:=BARSLAST(T40=1);T42:=T41<=5 AND C<REF(C,T41);买3:=COUNT(T39 OR T42,4)=4;T43:=EMA(((C*1.1-LLV(LOW,630))/(HHV(HIGH,630)-LLV(LOW,630))-(C*0.9-LLV(LOW,630))/(HHV(HI GH,630)-LLV(LOW,630)))*80,5);T44:=INDEXC;T45:=MA(T44,5);T46:=MA(T44,20);T47:=MA(T44,30);T48:=T45>T44*1.03 AND T46>T44*1.13;T49:=T48;目标:=COUNT(T43<6 AND T49,3)>=3;新目标:=买3 OR 目标;WYY:=((COUNT(买1 AND 底4,6)=6 OR COUNT(买1 AND 买2,4)=4 OR COUNT(买2 AND 底4,5)=5) OR 新目标)AND C<MA(C,3) AND O<MA(C,3) ;三档:=WYY;DRAWTEXT(三档,LOW*1.01,'三档'),COLORMAGENTA;AMOUNT:=AVPRICE*V;VARQ1:=AMOUNT/VOL/14;VARQ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/14;VARQ3:=SUM(AMOUNT,N)/VARQ1/14;VARQ4:=DMA(VARQ2,VOL/VARQ3);抄底:=(CLOSE-VARQ4)/VARQ4*100;AAQ:=O>MA(C,5) OR O<MA(C,3);BBQ:=(H-O)<(O-C)/2;CCQ:=(O-C)/O>7/100;WY7:=CROSS(-1.65,抄底) AND AAQ AND BBQ AND CCQ;四档:=WY7;DRAWTEXT(四档,LOW*1.01,'四档'),COLORMAGENTA;。
超级准的顶底指标文华财经指标公式源码期货软件指标
N1:=10;MA3:MA(CLOSE,3),COLORWHITE;//不新高破此线短逃/}操作:=MA(C,5);不高破线:HHV(操作,13),LINETHICK1,DOT;//短线趋势线}M5:MA(C,5),COLORYELLOW,LINETHICK2;IF(M5>REF(M5,1),M5,NULL),COLORRED,LINETHICK2;⒑日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORGREEN,NODRAW;短期压力:HHV(H,20),COLORRED,NODRAW;短期支撑:LLV(L,20),COLORYELLOW,NODRAW;//周均线显示}WC:=VALUEWHEN(WEEKDAY<REF(WEEKDAY,1),REF(C,1)),NODRAW;周3:=EMA(WC,3),COLORGRAY;周10:=EMA(WC,10),COLORCYAN;BT1:=MA(WC,1);BT2:=SMA(SMA(SMA(BT1,2,1),2,1),2,1),COLORGREEN,LINETHICK1;SMA2:=MA(BT2,3);周持股:=IF(BT2>SMA2,BT2,NULL),COLORRED,LINETHICK1;周持币:=IF(BT2<SMA2,BT2,NULL),COLORGREEN,LINETHICK1;周EM3:=IF(周3>REF(周3,1),BT2,NULL),COLORRED,LINETHICK1;DRAWICON(CROSS(BT2,周3),H*1.01,2);//买卖全息精选}//RSI周日同显/RSI周叉N1 6 N2 12 N3 24}N3:=12;LC:= REF(CLOSE,1);/*周R1:=MA("RSI.RSI1#WEEK"(6,12,N3),3),COLORYELLOW;周R2:=MA("RSI.RSI1#WEEK"(6,12,N3),5)COLORFF00FF;周R3:=MA("RSI.RSI2#WEEK"(6,12,N3),7),COLORGREEN;*/RSI:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,LINETHICK2,COLORWHITE;R角度:=SMA(MAX(C-REF(C,1),0),21,1)/SMA(ABS(C-REF(C,1)),21,1)*100,COLORYELLOW; //转强区:=IF((周R2>REF(周R2,1) ),30,0),COLOR0000FF,NODRAW;//辅助限定信号}N1:=9;N2:=5;MTM:=C-REF(C,1);多:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE;空:=MA(多,N2),COLORYELLOW;XD主力进:=多>REF(多,1) ;限定卖:=多<REF(多,1);//辅助限定信号}//逃顶指标}VAR9T:=EMA(CLOSE,2)-EMA(CLOSE,55);VAR10T:=EMA(VAR9T,13);VAR11T:=2*(VAR9T-VAR10T);主力资金:=(POW(VAR11T,3)*0.1+POW(VAR11T,1))/4,COLORWHITE,LINETHICK1,DOT;主升区:=多>空OR 主力资金>REF(主力资金,1) ;XD主升:=主升区=1 ;//X:=转强区=30 AND CROSS(周3,BT2);//买入信号综合}//DRAWICON(FILTER(X=1,2),L*0.99,1);//自动计算止赢损}买天:=BARSLAST(X);//买价:=REF(C,买天),NODRAW;手续费:=0.003;/*盈亏%:=100*((C-买价)/买价-手续费),NODRAW,COLORE66878;止赢5%:=买价*(1+0.03+手续费),NODRAW,COLOR000999;止损2%:=买价*(1-0.02+手续费),COLORGREEN,NODRAW;回调止赢:=HHV(H,X+1)*(1-0.03+手续费),COLORMAGENTA,NODRAW;//比近两日最高价下跌3%,进行回调止赢};//实战冠军}止赢条件:=H>止赢5%;止赢天数:=BARSLAST(止赢条件);止损条件:=C<止损2%;止损天数:=BARSLAST(止损条件);止赢:=买天> 止赢天数AND 止赢天数<止损天数;止赢天数2:=BARSLAST(止赢条件AND 止赢AND COUNT(REF(止赢,1),1)=0);止损:=买天>止损天数AND 止赢天数>止损天数;止损天数2:=BARSLAST(止损AND COUNT(REF(止损,1),1)=0);DRAWICON(止赢AND COUNT(REF(止赢,1),1)=0 AND 买天<止损天数2,H,11); DRAWICON(止损AND COUNT(REF(止损,1),1)=0 AND 买天<止赢天数2,L,12);手续费1:=0.003;//实盘指定买价A.止盈损}A买价:=指定买价A,NODRAW;A盈亏%:=100*((C-A买价)/A买价-手续费),COLORE66878,NODRAW;A止赢5%:=A买价*(1+0.05+手续费),COLOR000999,NODRAW;//从买进到当天股价上涨5%止赢,可以自定设置}A止损2%:=A买价*(1-0.02+手续费),COLORGREEN,NODRAW;//从买进到当天股价下跌2%止损,可以自定设置};//实盘指定买价B.止盈损}B买价:=指定买价B,NODRAW;B盈亏%:=100*((C-B买价)/B买价-手续费),COLORE66878,NODRAW;B止赢5%:=B买价*(1+0.05+手续费),COLOR000999,NODRAW;//从买进到当天股价上涨5%止赢,可以自定设置}B止损2%:=B买价*(1-0.02+手续费),COLORGREEN,NODRAW;//从买进到当天股价下跌2%止损,可以自定设置};//渐进止赢点}ZL止赢价差:=(C-REF(H,1))/C*100,NODRAW;//近两日最高价与现价差。
文华财经软件-期货界最准确指标公式源码
文华财经软件-期货界最准确指标公式源码简介本文档提供了文华财经软件中期货界最准确指标的源码。
这些指标公式经过独立决策而非用户协助,旨在发挥我作为法律硕士的优势,并遵循简单策略,避免法律复杂性。
所有引用内容均可确认。
目标本文档的目标是提供文华财经软件中期货界最准确指标的源码,以便用户能够使用这些源码进行技术分析和预测。
源码以下是文华财经软件中几个期货界最准确指标的源码示例:1. 移动平均线指标def moving_average(data, period):return data.rolling(window=period).mean()2. 相对强弱指标(RSI)def rsi(data, period):delta = data.diff()up, down = delta.copy(), delta.copy()up[up < 0] = 0down[down > 0] = 0average_gain = up.rolling(window=period).mean()average_loss = abs(down.rolling(window=period).mean())rs = average_gain / average_lossrsi = 100 - (100 / (1 + rs))return rsi3. 布林带指标def bollinger_bands(data, period, std):mid_band = data.rolling(window=period).mean()upper_band = mid_band + std * data.rolling(window=period).std() lower_band = mid_band - std * data.rolling(window=period).std() return mid_band, upper_band, lower_band4. 随机指标(KDJ)def kdj(data, period):lowest_low = data.rolling(window=period).min()highest_high = data.rolling(window=period).max()rsv = (data - lowest_low) / (highest_high - lowest_low) * 100k = rsv.rolling(window=3).mean()d = k.rolling(window=3).mean()j = 3 * k - 2 * dreturn k, d, j请注意,以上仅是示例源码,实际使用时需要适应具体的数据来源和参数设置。
文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi ddx ddy ddz
AF1:=REF(O,1);AF2:=ABS((REF(C,1)-AF1)/AF1);AF3:=ABS((REF(H,1)-AF1)/AF1);AF4:=ABS((REF(L,1)-AF1)/AF1);BF1:=ABS((AF2+AF3+AF4)/3);BF2:=O*BF1;预测低一:=O-BF2;预测高一:=O+BF2;今日保护价:=(REF(C,2)+REF(C,1)+O)/3 ,COLOR4080FF,NODRAW; 开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AAF:=最高价2;BBF:=最低价2;CCF:=开盘价2;DDF:=收盘价2;EEF:=(AAF+BBF+CCF+2*DDF)/5;AAAF:=EEF+(AAF-BBF);BBBF:=2*EEF-BBF;CCCF:=2*EEF-AAF;DDDF:=EEF-(AAF-BBF);上升突破价:=AAAF;上升阻力价:=BBBF;下跌支撑价:=CCCF;下跌反转价:=DDDF;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;阻力:=E+(HIGH-LOW);支撑:=E-(HIGH-LOW);EEE:=(EEF+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:MIN(GGG,支撑),NODRAW;预测高二:MAX(MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1),阻力),NODRAW;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。
文华财经指标公式源码文华期货软件指标公式公式源码
/*拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE; 拉升力A:=SMA(拉升力,6.3,1);波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;拉升力B:=3*拉升力A-2.1*波峰波谷;空方:=3*波峰波谷-1* 拉升力A;做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;多头:IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3; DRAWICON(做空>=REF(做空,1) AND REF(做空,1)<REF(做空,2),做空,23);空头:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3; {DRAWICON(做空<=REF(做空,1) AND REF(做空,1)>REF(做空,2),做空,19);} 短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE; 中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;{红柱}STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR000088; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLOR0000AA; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLOR0000DD; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLOR0000FF; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,2,0),COLOR008800; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,1,0),COLOR00AA00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.8,0),COLOR00DD00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.3,0),COLOR00FF00;{蓝柱}STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR880088;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAA00AA; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDD00DD; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFF00FF; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,2,0),COLOR009999; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);B1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;B2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;B3:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;B4:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;M:=(LOW+HIGH+CLOSE)/3;HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD>0) AND (HD>LD)),HD,0),5) );DMM:=SUM(IF(((LD>0) AND (LD>HD)),LD,0),5);STX:=(((DMP)*100)/TR);FZX:=((DMM*100)/TR);XXX:=(MA(((ABS((FZX-STX))/(FZX+STX)) * 100),3));WJDB:=IF(((XXX>88) AND (STX<5.8)),25,0);DRAWICON(WJDB=25,-5,9);STICKLINE(B1<-7,5,0,3,0),COLOR0099FF;STICKLINE(B2<-9,10,0,2.2,0),COLOR0066FF;STICKLINE(B3<-11,15,0,1.4,0),COLOR0033FF;STICKLINE(B4<-13,20,0,0.6,0),COLOR0000FF;DRAWTEXT(B1<-7 AND B2<-9 AND B3<-11 AND B4<-13,18,'超跌'),COLORYELLOW; STICKLINE(B1>10,0,-5,3,0),COLORFFFF33;STICKLINE(B2>15,0,-10,2.2,0),COLORFFCC00;STICKLINE(B3>20,0,-15,1.4,0),COLORFF9933;STICKLINE(B4>25,0,-20,0.6,0),COLORFF6633;DRAWTEXT(B1>10 AND B2>15 AND B3>20 AND B4>25,-18,'预警'),COLORYELLOW; BL:(B1+B2+B3+B4)/2,LINETHICK2,COLORFF00FF;BLMA:MA(BL,6),LINETHICK2,COLORCC0000;DRAWTEXT(BL>50,BL-2,'◆谨慎'),COLORYELLOW;DRAWTEXT(BL<-35,BL+2,'◆关注'),COLORYELLOW;操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,5,0,4,0),COLOR770077;STICKLINE(A1,5,0,3,0),COLOR990099;STICKLINE(A1,5,0,2,0),COLORBB00BB;STICKLINE(A1,5,0,1,0),COLORDD00DD;STICKLINE(A1,5,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,5.2,'全仓买入'),COLORRED;*/S:=CROSS(CLOSE,EMA(HIGH,30));X:=CROSS(EMA(LOW,30),CLOSE);WS:=BARSLAST(S)+1;WX:=BARSLAST(X)+1;SS:=CROSS(SUM(S,WX),0.5);XX:=CROSS(SUM(X,WS),0.5);STICKLINE1(CLOSE>EMA(HIGH,30),EMA(HIGH,30),EMA(LOW,30),1,1),COLORRED; STICKLINE1(CLOSE<EMA(LOW,30),EMA(LOW,30),EMA(HIGH,30),1,1),COLORGREEN; STICKLINE1(CLOSE>EMA(HIGH,150),EMA(HIGH,150),EMA(LOW,150),1,1),COLORMAGENTA; STICKLINE1(CLOSE<EMA(LOW,150),EMA(LOW,150),EMA(HIGH,150),1,1),COLORBLUE; PARTLINE1(CLOSE>EMA(HIGH,30),EMA(HIGH,30)),COLORRED;PARTLINE1(CLOSE<EMA(HIGH,30),EMA(HIGH,30)),COLORGREEN;PARTLINE1(CLOSE>EMA(LOW,30),EMA(LOW,30)),COLORRED;PARTLINE1(CLOSE<EMA(LOW,30),EMA(LOW,30)),COLORGREEN;PARTLINE1(CLOSE>EMA(HIGH,150),EMA(HIGH,150)),COLORMAGENTA;PARTLINE1(CLOSE<EMA(HIGH,150),EMA(HIGH,150)),COLORBLUE;PARTLINE1(CLOSE>EMA(LOW,150),EMA(LOW,150)),COLORMAGENTA;PARTLINE1(CLOSE<EMA(LOW,150),EMA(LOW,150)),COLORBLUE;DRAWTEXT(SS,LOW*0.965,'B'),COLORRED;DRAWICON(SS,LOW*0.98,8);DRAWTEXT(XX,HIGH*1.035,'S'),COLORGREEN;DRAWICON(XX,HIGH*1.02,9);。
赢顺云指标公式源码文华财经指标数浪指标精品
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,BARSLAST(FD01)))) AND FD02=0 ,NODRAW;FD0:=FD01 AND IF(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=H HV(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 ANDREF(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;TT:=HHH||LLL;TNN:=SUMBARS(TT,6);TB:=BACKSET(ISLASTBAR,TNN);TBN:=BARSLAST(CROSS(TB=1,0.5))+1;DRAWLINE1(HHH&&TB ,H,LLL&&TB,L,0),COLORYELLOW;DRAWLINE1(LLL&&TB,L,HHH&&TB ,H,0),COLORMAGENTA;PARTLINE(FG0 &&TB ,H,COLORYELLOW),POINTDOT,LINETHICK2;PARTLINE(FD0 &&TB ,L,COLORCYAN),CIRCLEDOT,LINETHICK2;DRAWNUMBER(HHH&&TB,H,COUNT(TT,TBN),0,COLORMAGENTA),FONTSIZE27; DRAWNUMBER(LLL&&TB,L,COUNT(TT,TBN),0,COLORYELLOW),FONTSIZE27;DRAWSL(HHH&&TB&&COUNT(TT,TBN)>=2,(H+REF(L,SUMBARS(TT,2)-1))/2,0,-SUMB ARS(TT,2),0,COLORRED);DRAWSL(LLL&&TB&&COUNT(TT,TBN)>=2,(L+REF(H,SUMBARS(TT,2)-1))/2,0,-SUMBA RS(TT,2),0,COLORGREEN);。
文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi ddx ddy ddz
AF1:=REF(O,1);AF2:=ABS((REF(C,1)-AF1)/AF1);AF3:=ABS((REF(H,1)-AF1)/AF1);AF4:=ABS((REF(L,1)-AF1)/AF1);BF1:=ABS((AF2+AF3+AF4)/3);BF2:=O*BF1;预测低一:=O-BF2;预测高一:=O+BF2;今日保护价:=(REF(C,2)+REF(C,1)+O)/3 ,COLOR4080FF,NODRAW; 开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AAF:=最高价2;BBF:=最低价2;CCF:=开盘价2;DDF:=收盘价2;EEF:=(AAF+BBF+CCF+2*DDF)/5;AAAF:=EEF+(AAF-BBF);BBBF:=2*EEF-BBF;CCCF:=2*EEF-AAF;DDDF:=EEF-(AAF-BBF);上升突破价:=AAAF;上升阻力价:=BBBF;下跌支撑价:=CCCF;下跌反转价:=DDDF;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;阻力:=E+(HIGH-LOW);支撑:=E-(HIGH-LOW);EEE:=(EEF+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:MIN(GGG,支撑),NODRAW;预测高二:MAX(MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1),阻力),NODRAW;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。
文华财经指标公式源码文华财经指标压力支撑划线
/* LJX:EMA(攻击流量,3),LINETHICK0;力度:(HSL / 1000),LINETHICK0;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);资金流量:LLJX+LLJX*0.03,LINETHICK0;流量增幅:IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0 - QZJJ),QZJJ)),LINETHICK0;流量递增:REF(LLJX,1)>REF(LLJX,2) AND LLJX>REF(LLJX,1) AND LLJX>0,COLOR0000FF,POINTDOT;STICKLINE(((HSL * 4) > 0),((HSL * 4) * 1.5),0,3,0),COLOR00FFFF; STICKLINE(((HSL * 4) < 0),((HSL * 4) * 1.5),0,3,0),COLORFFFF00; STICKLINE((LLJX > 0),LLJX*10,0,2,0),COLORFF00FF; STICKLINE((LLJX < 0),LLJX*10,0,2,0),COLORFF0000;4、筹码分布,来自云自云端老师,筹码动态是一支股票运行的灵魂。
指标源码;主力持仓%:EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)) ,3),COLORYELLOW,LINETHICK2;DRAWBAND(主力持仓%,RGB(150,10,150),50,RGB(50,55,150));浮筹比例:(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))/WINNER(HHV(HIGH ,0))*100,NODRAW;STICKLINE(浮筹比例<10,10,浮筹比例,4,0),COLORRED; DRAWTEXT(浮筹比例<10,18,'低'),COLORYELLOW;DRAWTEXT(浮筹比例<10,13,'吸'),COLORYELLOW;{筹码多空线}开盘:=WINNER(O)*100;收盘:=WINNER(C)*100;最高:=WINNER(H)*100;最低:=WINNER(L)*100;获利比例%:收盘,COLORBROWN,NODRAW;{换手率}换手:100*VOL/(FINANCE(7)/100),NODRAW;换手5日:MA(换手,5),NODRAW;换手10日:MA(换手,10),NODRAW;换手20日:MA(换手,20),NODRAW;85,COLORRED;10,COLORLIGREEN;DRAWTEXT_FIX(ISLASTBAR,0.01,0.00,0,'提示☆【主力持仓<50主力轻度或无控盘,主力持仓及获利比>80以上注意☆获利了结☆】'),COLORCYAN;DIFW:="MACD.DIF#WEEK"(12,26,9);DEAW:="MACD.DEA#WEEK"(12,26,9);FCA:=FILTER(CROSS(DIFW,DEAW) ANDREF(DEAW,1)<0,13),NODRAW;XG2:=FCA;选股:= XG2 AND FCA;STICKLINE(选股,10,15,3,0),COLOR0000FF;STICKLINE(选股,15,20,2,0),COLORLICYAN;STICKLINE(选股,20,25,1,0),COLORBLUE;DRAWTEXT(选股,20,'*小散'),COLORYELLOW;5、四线抓牛指标源码;FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COL ORWHITE;FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORW HITE;BB:IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17)),COLORWHITE;年线:=EMA(C,250);A:=BB-(EMA(C,3)-BB),COLORWHITE;DIFF:EMA((年线-(EMA(C,3)-年线)),5),LINETHICK2;IF(BB=FS,BB,BB), COLORWHITE,LINETHICK2;追涨跌破止损: EMA(COST(81),10) COLORRED,LINETHICK2;牛熊线: EMA(COST(27),120), CIRCLEDOT;日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前);顶:REFDATE(高1,DATE),COLORBLACK;绝顶:=REFDATE(顶,DATE),NODRAW;跑:=绝顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW; STICKLINE(跑,C,O,3,0),COLOR777777;STICKLINE(跑,C,O,2,0),COLORAAAAAA;STICKLINE(跑,C,O,1,0),COLORCCCCCC; STICKLINE(跑,C,O,0.1,0),COLORFFFFFF; STICKLINE(跑,L,H,0,0),COLORFFFFFF; DRAWTEXT(跑,C*1.02,'绝顶')COLORFFFFFF;*/A:=HHV(H,13)=H AND H>REF(H,1);ABB1:=FILTER(A,12);BAA:=LLV(L,13)=L AND L<REF(L,1);B1:=FILTER(BAA,12);TS1:=BARSLAST(ABB1);压力:REF(C,TS1),COLORGREEN,NODRAW; STICKLINE(1,压力,压力,1.5,0),COLORGREEN;TS2:=BARSLAST(B1);支撑:REF(C,TS2),COLORYELLOW,NODRAW; STICKLINE(1,支撑,支撑,1.5,0),COLORYELLOW;。
文华财经指标公式源码文华财经指标压力支撑阻力画线
/*,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)/TRADENUM*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); T3:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)<0,3,T2);T4:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)<0,4,T3);T5:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)<0,5,T4); T6:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)<0,6,T5);T7:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)<0,7,T6);T8:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)<0,8,T7); T9:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 ANDREF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 ANDREF(DDX,9)<0,9,T8);T:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 ANDREF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 ANDREF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 ANDREF(DDX,9)>0,10,T9);DRAWTEXT_FIX(1,0.19,0.58,0,STRCAT(STRCAT(' ',CON2STR(T,0)),' [天] ')),COLORYELLOW;T11:=IF (DDY>0 AND REF(DDY,1)<0,1,0);T21:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)<0,2,T11); T31:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)<0,3,T21);T41:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)<0,4,T31);T51:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)<0,5,T41);T61:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 ANDREF(DDY,6)<0,6,T51);T71:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 ANDREF(DDY,6)>0 AND REF(DDY,7)<0,7,T61);T81:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 ANDREF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)<0,8,T71);T91:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 ANDREF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 ANDREF(DDY,9)<0,9,T81);TY:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 ANDREF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 ANDREF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 ANDREF(DDY,9)>0,10,T91);DRAWTEXT_FIX(1,0.19,0.74,0,STRCAT(STRCAT(' ',CON2STR(TY,0)),' [天] ')),COLORYELLOW;T1Z:=IF (DDZ>0 AND REF(DDZ,1)<0,1,0);T2Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)<0,2,T1Z);T3Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)<0,3,T2Z);T4Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)<0,4,T3Z);T5Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)<0,5,T4Z);T6Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 ANDREF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 ANDREF(DDZ,6)<0,6,T5Z);T7Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 ANDREF(DDZ,6)>0 AND REF(DDZ,7)<0,7,T6Z);T8Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 ANDREF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)<0,8,T7Z);T9Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 ANDREF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 ANDREF(DDZ,9)<0,9,T8Z);TZ:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 ANDREF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 ANDREF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 ANDREF(DDZ,9)>0,10,T9Z);DRAWTEXT_FIX(1,0.19,0.89,0,STRCAT(STRCAT(' ',CON2STR(TZ,0)),' [天] ')),COLORYELLOW;*/MA3:MA(C,10);BF1:=REF(EVERY(MA3>REF(MA3,1),5),1)&&MA3<REF(MA3,1);//判断前一根波峰BG1:=REF(EVERY(MA3<REF(MA3,1),5),1)&&MA3>REF(MA3,1);//判断前一根波谷BF2:V ALUEWHEN(BF1,REF(MA3,5));BG2:V ALUEWHEN(BG1,REF(MA3,5));BFX:BF1&&(REF(MA3,1)>BG2+10*MINPRICE); BGX:BG1&&(REF(MA3,1)<BF2-10*MINPRICE);BF3:V ALUEWHEN(BFX,REF(MA3,5));//取波峰MA3 BG3:V ALUEWHEN(BGX,REF(MA3,1));//取波谷MA3DRAWICON(BFX,H,5),V ALIGN2;DRAWICON(BGX,L,4),V ALIGN0;。
文华财经期货软件指标公式源码期货指标共振公式源码
/*{ 万法归一《之波段王》}{INPUT:N(3,1,10),N2(6,1,10),N3(-23,-50,0),N4(75,50,100),P1(19,1,100),P2(118,1,250),N1(9,1,100); } VAR2:=(C-REF(C,1))/REF(C,1)*100;VAR3:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);J:3*VAR4-2*VAR5,COLOR00FFFF;VAR6:=J> 1*REF(J,1);VAR7:=LLVBARS(L,50);VAR8:=SUM(V,VAR7);VAR9:=HHVBARS(H,50);VAR10:=SUM(V,VAR9);VAR11:=(C-REF(O,VAR9))/REF(O,VAR9)*100;VAR12:=VAR10/CAPITAL*100;VAR13:=(C-REF(O,VAR7))/REF(O,VAR7)*100;VAR14:=VAR8/CAPITAL*100;VAR15:=MA(WINNER(C),N)*100;VAR16:=EMA(VAR4,N);A2:EMA(VAR4,N),COLORFFDDCC;A3:=EMA(A2,N);A4:=EMA(A3,N);A5:=EMA(A4,N);A6:=EMA(A5,N);A7:=EMA(A6,N);VAR17:=EMA(A7,N);VAR18:=EMA(VAR17,N);VAR19:=EMA(VAR18,N);AA:=EMA(A5,N2);中期大底:LLV(J,AA),LINETHICK2,COLOR0000FF;上:=IF(MA(H,3)*1.05,30,0)*10-AA;下:=IF(MA(L,3)*0.96,30,0)*2/中期大底;中:=IF(MA(H,3)*1.05,30,0);电:=J;DRAWTEXT(CROSS(A4,AA) AND VAR11< N3,AA,'●底'),COLORFFFF00;DRAWTEXT(CROSS(A2,J) AND A2> N4,A2+4.22,'●峰'),COLOR00FFFF;DRAWTEXT(CROSS(J,A2) AND VAR6 AND A2< 20 AND VAR2> 9 OR A2> 1*REF(A2,1) AND VAR2> 4 AND A2< 60,A2,'●拉升'),COLORFFFFCC;STICKLINE(J>= A2,A2,J,6,0),COLOR0000FF;STICKLINE(J<= A2,J,A2,6,0),COLOR00FF00;压力:HHV(J,60),COLOR00FFFF;支撑:=LLV(AA,13);STICKLINE(J<= 中期大底 AND 中-REF(中,1)> 0 AND C>= O*0.99,1,88,3,0),COLOR0000FF; DRAWICON(J<= 中期大底 AND 中-REF(中,1)> 0 AND C>= O*0.99,88,1),COLOR00FF00; STICKLINE(FILTER(CROSS(上,中期大底) AND 中-REF(中,1)>= 0,3),中期大底,70,3,0),COLOR00FF00;兔子:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1; K1:=BACKSET(兔子>REF(兔子,1),2);IF(K1,兔子,DRAWNULL),COLORLIMAGENTA,LINETHICK1;J:=SUM(VOL*CLOSE,5)/SUM(VOL,5);寻宝:EMA(J,2),COLORCYAN,LINETHICK1;K2:=BACKSET(寻宝>REF(寻宝,1),2);IF(K2,寻宝,DRAWNULL),COLORRED,LINETHICK1;DRAWICON((CROSS(寻宝,兔子)),兔子,10);DRAWTEXT((CROSS(寻宝,兔子)),兔子,' ←兔兔介入,'),COLOR00FF00;买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00FFFF;平衡:=SMA(EMA(SMA((CLOSE+LOW)/2,3,1),3),5,1);限制:=EMA((((HIGH+CLOSE)/2+LOW+(CLOSE+LOW)/2)/3-EMA(LLV(((HIGH+CLOSE)/2+L OW+(CLOSE+LOW)/2)/3,89),2))/(EMA(HHV(((HIGH+CLOSE)/2+LOW+(CLOSE+LOW)/2)/3,21),2)-EMA(LLV(((HIGH+CLOSE)/2+LOW+ (CLOSE+LOW)/2)/3,89),2)),8)*100;DRAWICON(FILTER(平衡>REF(平衡,1)AND HHV(MA((HIGH+CLOSE)/2,13),10)REF((CLOSE+LOW)/2,1),5)AND 限制<88,LOW*0.98,5); DRAWTEXT(FILTER(平衡>REF(平衡,1)AND HHV(MA((HIGH+CLOSE)/2,13),10)REF((CLOSE+LOW)/2,1),5)AND 限制<88,LOW*0.95,'←兔子追涨'),,COLORFFFF33;一剑封喉:=((CROSS(CLOSE,MA(CLOSE,13)) AND CROSS(CLOSE,MA(CLOSE,34))) AND CROSS(CLOSE,MA(CLOSE,55)));A1:=(((CLOSE - LLV(LOW,22)) / (HHV(HIGH,22) - LLV(LOW,22))) * 100);A2:=(((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100);A:=((3 * SMA(A1,5,1)) - (2 * SMA(SMA(A2,5,1),3,1)));YNGS:=(一剑封喉 AND (A < 30)),LINETHICK0;DRAWICON((一剑封喉 AND (A < 30)),(LOW * 0.99),1);DRAWTEXT((一剑封喉 AND (A < 30)),(LOW * 0.99),' ←兔子封喉'),COLORYELLOW; LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(EMA(EMA(CLOSE,13),50)>EMA(EMA(CLOSE,13),50*3) AND CROSS(84,RSI), HIGH*1.02,'←风险'),COLOR00FF33;DRAWTEXT(EMA(EMA(CLOSE,13),50) < EMA(EMA(CLOSE,13),50*3) AND CROSS(80,RSI), HIGH*1.02,'←风险'),COLOR00FF33;AAA:=(MA(CLOSE,13)+MA(CLOSE,17))/2;CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;BBB:=AAA+2.1*CCC;DRAWICON(FILTER(CROSS(上,中期大底) AND 中-REF(中,1)>= 0,3),70,1);STICKLINE(CROSS(上,下) AND C>= O,中期大底,60,2,0),COLORFF0000;B0:=MA(C,3);B01:=MA(C,4);B1:=(H+L+C)/3;B2:=HHV(B1,15);B3:=LLV(B1,15);B4:=B2-B3;B5:MA((B1-B3)/B4,2)*100,COLOR000080;B6:=HHV(B1,4*15);B7:=LLV(B1,4*15);B8:=B6-B7;B9:=MA((B1-B7)/B8,2)*100;BA:=HHV(B1,16*15);BB:=LLV(B1,16*15);BC:=BA-BB;*/廷引1:=EMA(EMA(EMA(CLOSE,5),5),5);廷引2:=EMA(EMA(EMA(CLOSE,7),7),7);廷引3:=EMA(EMA(EMA(CLOSE,12),12),12);峰谷1线:(廷引1-REF(廷引1,1))/REF(廷引1,1)*200,COLORFF00FF,LINETHICK2;峰谷2线:(廷引2-REF(廷引2,1))/REF(廷引2,1)*250,COLORGREEN,LINETHICK2; 议事线:(廷引3-REF(廷引3,1))/REF(廷引3,1)*300,COLOR99EEEE,LINETHICK1; 门廷线:MA(议事线,9),COLORRED,LINETHICK1;FILLRGN(议事线>门廷线,议事线,门廷线,RGB(255,0,0));FILLRGN(议事线<门廷线,议事线,门廷线,RGB(0,100,50));红蓝带:(廷引1-廷引2)*5,COLORSTICK;零轴线:0.00,COLOR0099FF,DOT;。
缠论指标公式源码文华财经公式源码期货软件指标赢顺云指标
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IF(CLOSE>HH2,-3,IF(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
M8:=EMA(CLOSE,8),C0FF;
M62:EMA(M8,65),COLORBLUE,LINETHICK3;
M81:EMA(M62,81),COLOR0000FF,LINETHICK2;
HH1:=IF(H<REF(H,1)&&REF(H,1)<REF(H,2),REF(H,2),0);
缠论指标公式源码文华财经公式源码期货软件指标赢顺云指标
INDEXC:="999001$C";
大盘:=EMA(INDEXC,500)/EMA(C,500);
大盘线:=INDEXC/大盘,LINETHICK1,COLORBLUE;
二号线:EMA(C,25),COLORWHITE,LINETHICK2;
六号线:EMA(C,610),LINETHICK2,COLORYELLOW;
G:=IF(K2=1,HH2,LL2);
G1:=VALUEWHEN(ISLASTBAR,G);
W2:=OPEN-CLOSE;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE1(K2>0,OPEN,CLOSE,1.5,0),COLORFFFF00;
缠论指标公式源码文华财经公式源码期货软件指标赢顺云指标
INDEXC:="999001$C";
大盘:=EMA(INDEXC,500)/EMA(C,ቤተ መጻሕፍቲ ባይዱ00);
大盘线:=INDEXC/大盘,LINETHICK1,COLORBLUE;
二号线:EMA(C,25),COLORWHITE,LINETHICK2;
六号线:EMA(C,610),LINETHICK2,COLORYELLOW;
CC:=VALUEWHEN(K2=1,G);
压力线:CC,COLOR00FF00,NODRAW;
支撑线:AA,COLORYELLOW,NODRAW;
LL1:=IF(L>REF(L,1)&&REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IF(CLOSE>HH2,-3,IF(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
STICKLINE1(K2<=0,OPEN,CLOSE,1.5,0),COLOR0000FF;
STICKLINE1(W2>0 AND K2<=0,H,L,0,1),COLOR0000FF;
STICKLINE1(W2>0 AND K2>0,H,L,0,1),COLORFFFF00;
AA:=VALUEWHEN(K2=-3,G);
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),COLORWHITE;
DEA:=EMA(DIFF,9),COLORF00FF0 ;
文华财经指标文华财经期货软件指标压力支撑指标公式源码
/*MA5:MA(C,5)LINETHICK3,COLOR00CCFF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORGREEN;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) ANDMA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB5,60),10);加仓:=FILTER(COUNT(CROSS(BB5,30),5)>=1 AND MA5>REF(MA5,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1),10);清仓:=FILTER(COUNT(CROSS(30,BB5),5)>=1 AND (C>MA30 OR O>MA30) ANDMA5<REF(MA5,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10<REF(MA10,1),10);DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1)AND MA5>REF(MA5,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;买入:=FILTER(MR,10);MA5:MA(C,5)LINETHICK3,COLOR00CCFF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORGREEN;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) ANDMA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB5,60),10);加仓:=FILTER(COUNT(CROSS(BB5,30),5)>=1 AND MA5>REF(MA5,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1),10);清仓:=FILTER(COUNT(CROSS(30,BB5),5)>=1 AND (C>MA30 OR O>MA30) ANDMA5<REF(MA5,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10<REF(MA10,1),10);DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA5>REF(MA5,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(强势狙击,LOW*0.95,'←狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(强势狙击,LOW*0.95,'←狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;*/VAR1:=(LOW+HIGH+CLOSE+O)/4;操作:MA(VAR1,5),COLOR00FFFF,LINETHICK2;拉升:HHV(操作,13),COLORFF00FF;买卖:LLV(操作,13),COLOR00FFFF;压力:HHV(操作,60),COLORFF6600;支撑:LLV(LOW,60)*1.02,COLOR00FF00,LINETHICK2;顶部:HHV(HIGH,60)*0.98,COLORFFFF00,LINETHICK2;涨:IF(MA(VAR1,5)>REF(MA(VAR1,5),1),MA(VAR1,5),NULL),COLORRED,LINETHICK2;平:IF(MA(VAR1,5)=REF(MA(VAR1,5),1),MA(VAR1,5),NULL),COLOR00FFFF,LINETHICK3;跌:IF(MA(VAR1,5)<REF(MA(VAR1,5),1),MA(VAR1,5),NULL),COLORGREEN,LINETHICK2; DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,30),L,'★<--极品绝底'), LINETHICK1;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD:=2*(DIFF-DEA),COLORSTICK;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;DRAWTEXT(REF(C,BARSLAST(REF(CROSS(DIFF,DEA),1))+1)>C AND REF(DIFF,BARSLAST(REF(CROSS(DIFF,DEA),1))+1)<DIFF AND CROSS(DIFF,DEA)>0,L-0.02,'★M'),COLOR00FFFF;DRAWTEXT(REF(C,BARSLAST(REF(CROSS(K,D),1))+1)>C AND REF(K,BARSLAST(REF(CROSS(K,D),1))+1)<K AND CROSS(K,D),L-0.10,'◎K'),COLORFF00FF; DRAWTEXT(REF(C,BARSLAST(REF(CROSS(RSI1,RSI2),1))+1)>C AND REF(RSI1,BARSLAST(REF(CROSS(RSI1,RSI2),1))+1)<RSI1 AND CROSS(RSI1,RSI2)>0,L-0.18,'◆R'),COLOR0000FF;DRAWTEXT(REF(C,BARSLAST(REF(CROSS(DEA,DIFF),1))+1)<C AND REF(DIFF,BARSLAST(REF(CROSS(DEA,DIFF),1))+1)>DIFF AND CROSS(DEA,DIFF)>0,H+0.16,'★M'),COLOR00FF00;DRAWTEXT(REF(C,BARSLAST(REF(CROSS(D,K),1))+1)<C ANDREF(K,BARSLAST(REF(CROSS(D,K),1))+1)>K AND CROSS(D,K)>0,H+0.08,'◎K'),COLORFFFFCC; DRAWTEXT(REF(C,BARSLAST(REF(CROSS(RSI2,RSI1),1))+1)<C AND REF(RSI1,BARSLAST(REF(CROSS(RSI2,RSI1),1))+1)>RSI1 AND CROSS(RSI2,RSI1)>0,H+0.04,'◆R'),COLORFF9900;。
文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标
N:=5;WY:EMA(C,12),LINETHICK2,COLORYELLOW;VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;VAR3:=CROSS(69,VAR2);VARA:=FILTER(VAR3,4);DRAWICON(VARA,HIGH*1.035,2);DRAWTEXT(VARA,HIGH*1.04,'卖出'),COLORGREEN;缩量:=V<REF(V,1);新高:=C=HHV(C,20);下跌:=LLV(C,3)*1.04<HHV(C,10);回调:=BARSLASTCOUNT(缩量)>3 ANDEXIST(新高,8) AND 下跌AND C>MA(C,60) AND O<MA(C,20);DRAWTEXT(回调,LOW*1.04,'补仓'),COLORYELLOW;VAR4:=REF(CLOSE,1);VAR5:=SMA(MAX(CLOSE-VAR4,0),6,1)/SMA(ABS(CLOSE-VAR4),6,1)*100;ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;DRAWTEXT(VAR5>REF(VAR5,1) AND VAR5>80 AND ROC<REF(ROC,1),HIGH*1.04,'风险'),COLORBLUE;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;G1:=C<REF(C,1) AND (REF(C,1)<REF(C,2)) AND (REF(C,2)<REF(C,3));MA45:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,4);J5:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,5);MA4:=MA((MA45+J5)/2,1);SSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;KKK:=SMA(SSV,3,1);H1:=EMA(EMA(LLV(J5,15),2),2);YY4:=LLV(C,5)*1.15<HHV(C,15)AND LOW<H1 AND KKK<20AND VOL/MA(V,10)<1.4AND CLOSE/REF(CLOSE,1)>1.02AND COUNT(G1,6)>=1AND CLOSE>OPEN;CAPITAL:=GETPRICE1('流通股本');大盘股:=SUM(REF(V,1),8)/CAPITAL<15/100;中盘股:=SUM(REF(V,1),8)/CAPITAL<25/100;小盘股:=SUM(REF(V,1),8)/CAPITAL<30/100;大盘股1:=SUM(REF(V,1),5)/CAPITAL<10/100;中盘股1:=SUM(REF(V,1),5)/CAPITAL<14/100;小盘股1:=SUM(REF(V,1),5)/CAPITAL<15/100;DP:=CAPITAL>2500000;ZP:=CAPITAL>600000 AND CAPITAL<2500000;XP:=CAPITAL<600000;综合:=IF(DP=1,大盘股,IF(ZP=1,中盘股,小盘股));综合1:=IF(DP=1,大盘股1 ,IF(ZP=1,中盘股1,小盘股1));振幅:=(REF(HHV(C,5),1)-REF(LLV(C,5),1))/REF(LLV(C,5),1)<5.3/100;涨幅:=CLOSE/REF(C,1)>=1.048;JX3:=V/MA(V,10);YY3:=振幅AND ( 涨幅) AND C=HHV(C,5) AND 综合 1 AND 综合AND JX3<1.8 AND HHV(H,20)/C>1.04 ;买入:=YY4 OR YY3 ;DRAWTEXT(买入,LOW*1.01,'买入'),COLORRED;BB:=C/HHV(C,5)<1.15;下:=C<REF(C,1);YF:=LAST(下,4,1) AND COUNT(C<REF(C,1)*0.95,5)>=2AND (C>REF(C,1) OR C/O>1.035 OR (O/L>0.03 AND C>O))AND BB AND (C-L)/C>0.02 AND J<0 AND (H-C)<(C-O);YF1:=COUNT(下,5)>=3 AND COUNT(C<REF(C,1)*0.95,6)>=3AND C*1.15<HHV(C,5) AND C>REF(C,1)AND C>O AND J<2;A44:=V<REF(V,1)*2.8 AND COUNT(C<O*0.95,2)=2;A55:=((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND A44;A6:=FILTER(A55,1);YF2:=A6 AND BB AND H>REF(L,1);二档:=YF OR YF1 OR YF2;DRAWTEXT(二档,LOW*1.01,'二档'),COLORMAGENTA; INDEXC:="999300$C";TQ1:=(INDEXC-MA(INDEXC,58))/MA(INDEXC,58)<-0.152; TQ2:=(C-EMA(C,58))/EMA(C,58)<-0.19;买1:=TQ2 AND TQ1;T4:=(C-MA(C,2))/MA(C,2)*100;T5:=INDEXC;T6:=MA(T5,13);T7:=T6>1.050*T5;T8:=(C-REF(C,26))/REF(C,26)*10;T9:=T7;T10:=T8<-2.30 ;T11:=T4<-2.7 ;T12:=T9 AND T10 AND T11 ;T13:=CROSS(0.5,T12);T14:=CROSS(T13,0.5);T15:=BARSLAST(T14=1);T16:=T15<=5 AND C<REF(C,T15) ;买2:=T13 OR T16;T17:= (C-MA(C,2))/MA(C,2)*100;T18:=INDEXC;T19:=MA(T18,56);T20:=T18/T19<0.94;T21:=(C-REF(C,26))/REF(C,26)*10;T22:=T20;T23:=T21<-2.55;T24:=T17<-2.7;T25:=T22 AND T23 AND T24;T26:=CROSS(0.5,T25);T27:=CROSS(T26,0.5);T28:=BARSLAST(T27=1);T29:=T28<=5 AND C<1.02*REF(C,T28);底4:=T26 OR T29;T30:= (C-MA(C,2))/MA(C,2)*100;T31:=INDEXC;T32:=MA(T31,13);T33:=T32>1.050*T31;T34:=(C-REF(C,26))/REF(C,26)*10;T35:=T33;T36:=T34<-2.69;T37:=T30<-3.09;T38:=T35 AND T36 AND T37;T39:=CROSS(0.5,T38);T40:=CROSS(T39,0.5);T41:=BARSLAST(T40=1);T42:=T41<=5 AND C<REF(C,T41);买3:=COUNT(T39 OR T42,4)=4;T43:=EMA(((C*1.1-LLV(LOW,630))/(HHV(HIGH,630)-LLV(LOW,630))-(C*0.9-LLV(LOW,630))/(HHV(HI GH,630)-LLV(LOW,630)))*80,5);T44:=INDEXC;T45:=MA(T44,5);T46:=MA(T44,20);T47:=MA(T44,30);T48:=T45>T44*1.03 AND T46>T44*1.13;T49:=T48;目标:=COUNT(T43<6 AND T49,3)>=3;新目标:=买3 OR 目标;WYY:=((COUNT(买1 AND 底4,6)=6 OR COUNT(买1 AND 买2,4)=4 OR COUNT(买2 AND 底4,5)=5) OR 新目标)AND C<MA(C,3) AND O<MA(C,3) ;三档:=WYY;DRAWTEXT(三档,LOW*1.01,'三档'),COLORMAGENTA;AMOUNT:=AVPRICE*V;VARQ1:=AMOUNT/VOL/14;VARQ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/14;VARQ3:=SUM(AMOUNT,N)/VARQ1/14;VARQ4:=DMA(VARQ2,VOL/VARQ3);抄底:=(CLOSE-VARQ4)/VARQ4*100;AAQ:=O>MA(C,5) OR O<MA(C,3);BBQ:=(H-O)<(O-C)/2;CCQ:=(O-C)/O>7/100;WY7:=CROSS(-1.65,抄底) AND AAQ AND BBQ AND CCQ;四档:=WY7;DRAWTEXT(四档,LOW*1.01,'四档'),COLORMAGENTA;。
文华财经期货软件指标公式源码期货指标赢顺云指标文华指标破解
MA5:=MA(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;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
AMOUNT:=AVPRICE*V;
A:=AMOUNT/V/100;
VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);
QQ:=EMA(((VARA/10)+EMA(A,13)),0);
行情线:=MA(A,1);
重心:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382; 【操盘线】:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK4;
【黄金线】:IF(重心>=【操盘线】,【操盘线】,NULL),COLORRED,LINETHICK2; 【空仓线】:IF(重心<【操盘线】,【操盘线】,NULL),COLORCYAN,LINETHICK2; DRAWTEXT(ISLASTBAR,【操盘线】,'【操盘线】'),COLORRED;
变:EMA(CLOSE,5),LINETHICK2,COLORYELLOW;
金:IF(变>REF(变,1),变,NULL),COLORRED,LINETHICK2;
空:IF(变<REF(变,1),变,NULL),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR,变,'【钻石】'),COLORRED;
{顶底信号}
辅助线:MA(C,8),COLORMAGENTA,LINETHICK1;
上升:IF(辅助线>REF(辅助线,1),辅助线,NULL),COLORMAGENTA,LINETHICK2;
下降:IF(辅助线<REF(辅助线,1),辅助线,NULL),COLORGRAY,LINETHICK1;
DA:=(EMA(H,1)+EMA(L,1)+EMA(H,1)+EMA(H,1))/4,LINETHICK2;
DB:=EMA(REF(HHV(H,25),1),2),COLORGREEN,LINETHICK1;
DRAWICON(CROSS(DA,【操盘线】) AND DA>REF(DA,2),【操盘线】,9);
{涨跌停显示}
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,1,0),COLORYELLOW;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF<-9.9,O,C,1,0),COLORBLUE;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100; VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)<=REF(ZIGZAG(C,6,1),3);
VAR12:=ZIGZAG(C,6,1)=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),3); VAR13:=ZIGZAG(C,22,1)>REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)<=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)<=REF(ZIGZAG(C,22,1),3);
VAR14:=ZIGZAG(C,22,1)=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),3);
VAR15:=ZIGZAG(C,51,1)>REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)<=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)<=REF(ZIGZAG(C,51,1),3);
VAR16:=ZIGZAG(C,51,1)=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),3);
VAR17:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);
VAR18:=ZIGZAG(C,72,1)=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
买1:=VAR10;
买2:=(VAR11+VAR13+VAR15+VAR17);
卖1:=(VAR12+VAR14+VAR16+VAR18);
B:IF(买1>0 OR 买2>0,LOW*0.99,NULL),CROSSDOT,LINETHICK3,COLORYELLOW;
S:IF(卖1>0,HIGH*1.01,NULL),CROSSDOT,LINETHICK3,COLORGREEN;
VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));
F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,NULL),CROSSDOT,LINETHICK3,COLORFF00FF;
DRAWTEXT(CROSS(S,卖1),S*1.02,'逃'),COLORWHITE,LINETHICK1;
DRAWTEXT(CROSS(B,买1),B*0.98,'←准备'),COLORRED,LINETHICK1;
{价:}
PH:=TROUGHBARS(H,5,1,1);
LL:=HHV(H,PH);
TJ1:=LL=HIGH AND LL<REF(LL,1);
//=1}
TS:=SUMBARS(TJ1,2);
TJ:=PEAKBARS(H,5,1,1)=1 AND TS>=PH;
DRAWICON(TJ,HIGH*1.03,2);
DRAWICON(TJ,HIGH*1.008,15);
PL:=BARSLAST(TJ);
支撑:IF(BARSLAST(TJ1),
REF(LOW,BARSLAST(TJ1)),NULL),COLOREA91B5;
压力:IF(BARSLAST(TJ),REF(HIGH,PL),NULL),COLORYELLOW; TJ_2:=LOW>REF(REF(LOW,TS),PL);
DRAWTEXT(ISLASTBAR,压力,'压力'),COLORYELLOW; DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLOREA91B5;。