通达信主图波段公式源码(通达信分时图公式源码)
本文目录一览:
- 1、通达信软件的主图和两个副图的指标源码改为条件选股公式
- 2、[通达信公式] 求图中所含公式指标源码,请高手帮忙,万分感谢 !
- 3、通达信主图公式编写:波段最高点画直线
- 4、下面试通达信主图紫阳源码
- 5、通达信主图公式
- 6、麻烦高手写一个 通达信 的主图均线公式,感谢!
通达信软件的主图和两个副图的指标源码改为条件选股公式
第一个
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,5);
B:=REF(A,1);
XG:ABREF(A,1)REF(B,1);
第二个
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR4:=SMA(RV,3,1);
VAR5:=SMA(VAR4,3,1);
XG:CROSS(VAR4,VAR5) AND VAR530;
第三个
N:=21; M:=5;
TH:=SUM(IF(CLOSEREF(CLOSE,1),VOL,0),N);
TL:=SUM(IF(CLOSEREF(CLOSE,1),VOL,0),N);
TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),N);
VAR0:=100*(TH*2+TQ)/(TL*2+TQ);
VAR1:=MA(VAR0,M);
W:=CROSS(VAR0,VAR1);
WL1:=VAR1100;
WLT1:=W AND WL1;
TJ1:FILTER(WLT1,5);
[通达信公式] 求图中所含公式指标源码,请高手帮忙,万分感谢 !
T:=(C+L+H)/3; SL:=((REF(T,1)*REF(V,1)+T*V)/(REF(V,1)+V)); VV:=SL; Y911:=IFF(CURRBARSCOUNT=1, (XMA(VV,9)*9-MA(VV,8)+MA(VV,7) -MA(VV,6)+MA(VV,5) -MA(VV,4)+MA(VV,3) -MA(VV,2) +VV)/9,XMA(VV,9)); Y912:=IFF(CURRBARSCOUNT=1, (XMA(Y911,9)*9-MA(Y911,8)+MA(Y911,7) -MA(Y911,6)+MA(Y911,5) -MA(Y911,4)+MA(Y911,3) -MA(Y911,2) +Y911)/9,XMA(Y911,9)); Y913:=IFF(CURRBARSCOUNT=1, (XMA(Y912,9)*9-MA(Y912,8)+MA(Y912,7) -MA(Y912,6)+MA(Y912,5) -MA(Y912,4)+MA(Y912,3) -MA(Y912,2) +Y912)/9,XMA(Y912,9)); 中期趋势:Y913,LINETHICK2,COLORGREEN; Y291:=IFF(CURRBARSCOUNT=1,(XMA(VV,29)*29-MA(VV,28)+MA(VV,27)-MA(VV,26)+MA(VV,25)-MA(VV,24)+MA(VV,23)-MA(VV,22)+MA(VV,21)-MA(VV,20)+MA(VV,19)-MA(VV,18)+MA(VV,17)-MA(VV,16)+MA(VV,15)-MA(VV,14)+MA(VV,13)-MA(VV,12)+MA(VV,11) -MA(VV,10)+MA(VV,9) -MA(VV,8)+MA(VV,7) -MA(VV,6)+MA(VV,5) -MA(VV,4)+MA(VV,3) -MA(VV,2)+VV)/29,XMA(VV,29)); Y292:=IFF(CURRBARSCOUNT=1,(XMA(Y291,29)*29-MA(Y291,28)+MA(Y291,27)-MA(Y291,26)+MA(Y291,25)-MA(Y291,24)+MA(Y291,23)-MA(Y291,22)+MA(Y291,21)-MA(Y291,20)+MA(Y291,19)-MA(Y291,18)+MA(Y291,17)-MA(Y291,16)+MA(Y291,15)-MA(Y291,14)+MA(Y291,13)-MA(Y291,12)+MA(Y291,11) -MA(Y291,10)+MA(Y291,9) -MA(Y291,8)+MA(Y291,7) -MA(Y291,6)+MA(Y291,5) -MA(Y291,4)+MA(Y291,3) -MA(Y291,2)+Y291)/29,XMA(Y291,29)); Y293:=IFF(CURRBARSCOUNT=1,(XMA(Y292,29)*29-MA(Y292,28)+MA(Y292,27)-MA(Y292,26)+MA(Y292,25)-MA(Y292,24)+MA(Y292,23)-MA(Y292,22)+MA(Y292,21)-MA(Y292,20)+MA(Y292,19)-MA(Y292,18)+MA(Y292,17)-MA(Y292,16)+MA(Y292,15)-MA(Y292,14)+MA(Y292,13)-MA(Y292,12)+MA(Y292,11) -MA(Y292,10)+MA(Y292,9) -MA(Y292,8)+MA(Y292,7) -MA(Y292,6)+MA(Y292,5) -MA(Y292,4)+MA(Y292,3) -MA(Y292,2)+Y292)/29,XMA(Y292,29)); 长期趋势:Y293,LINETHICK2,COLORGREEN; IF(Y293REF(Y293,1),Y293,DRAWNULL),COLORRED,LINETHICK2; IF(Y913REF(Y913,1),Y913,DRAWNULL),COLORMAGENTA,LINETHICK2; 高险区1:Y293*1.036,COLORLICYAN; 高风区2:Y293*1.031,COLORLICYAN; 高风区3:Y293*1.026,COLORLICYAN; 良机区1:Y293*0.974,COLORLICYAN; 良机区2:Y293*0.969,COLORLICYAN; 良机区3:Y293*0.964,COLORLICYAN; WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100; WSR2:=CROSS(WSR1,5); WSR3:=CROSS(8,WSR1); WSR4:=CROSS(WSR1,-5); WSR5:=CROSS(WSR1,-8); WSR6:=WSR3; WSR7:=WSR4 OR WSR5; WSR8:=WSR7 AND FILTER(WSR7,5); WSR10:DRAWICON(WSR8,L-0.01,1); WSR9:=WSR6 AND FILTER(WSR6,5); WSR11:DRAWICON(WSR9,H+0.01,2); WSR12:=O良机区3; DRAWICON(WSR12 AND FILTER(WSR12,12),L-0.03,9); W1:=CREF(C,1) AND MACDREF(MACD,1) AND MACD0 AND VREF(V,1); W2:=CREF(C,1) AND MACD0 AND MACDREF(MACD,1) AND VREF(V,1); XG:=W1 OR W2; VAR1:=AMOUNT/VOL/7; VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7; VAR3:=SUM(AMOUNT,10)/VAR1/7; VAR4:=DMA(VAR2,VOL/VAR3); VAR5:=(CLOSE-VAR4)/VAR4*100,COLORLIMAGENTA; XG1:=CROSS(VAR5,MA(VAR5,2)) AND VAR50 AND C(HHV(H,5)*0.88) AND REF(OC,1) AND REF(OC,2); XG3:=XG AND XG1 AND L良机区1; WSR13:=O良机区3 AND L良机区1 OR XG3; DRAWICON(WSR13 AND FILTER(WSR13,10),L-0.03,5); WSR14:=H高风区3;DRAWICON(WSR14 AND FILTER(WSR14,15),H+0.03,6); WSR15:=H高风区3 AND H高风区2;DRAWICON(WSR15 AND FILTER(WSR15,5),H+0.03,4); WSR16:=(INDEXC-MA(INDEXC,3))/MA(INDEXC,3); WSR17:=(INDEXC-MA(INDEXC,8))/MA(INDEXC,8); WSR18:=(INDEXC-MA(INDEXC,18))/MA(INDEXC,18); WSR19:=(WSR16 + WSR17 + WSR18)/3; WSR20:=(C-MA(C,3))/MA(C,3); WSR21:=(C-MA(C,8))/MA(C,8); WSR22:=(C-MA(C,18))/MA(C,18); WSR23:=(WSR20 + WSR21 + WSR22)/3; WSR24:=(WSR19REF(WSR19,1) AND CROSS(WSR23,WSR19))*50; WSR25:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6); WSR26:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12); WSR27:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24); WSR28:=(WSR25 + WSR26 + WSR27)/3; WSR29:=(C-MA(C,6))/MA(C,6); WSR30:=(C-MA(C,12))/MA(C,12); WSR31:=(C-MA(C,24))/MA(C,24); WSR32:=(WSR29 + WSR30 + WSR31)/3; WSR33:=(WSR28REF(WSR28,1) AND CROSS(WSR32,WSR28))*20; WSR34:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13); WSR35:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34); WSR36:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55); WSR37:=(WSR34 + WSR35 + WSR36)/3; WSR38:=(C-MA(C,13))/MA(C,13); WSR39:=(C-MA(C,34))/MA(C,34); WSR40:=(C-MA(C,55))/MA(C,55); WSR41:=(WSR38 + WSR39 + WSR40)/3; WSR42:=(WSR37REF(WSR37,1) AND CROSS(WSR41,WSR37));
通达信主图公式编写:波段最高点画直线
看看下面的2个图是否符合你的要求,第一个是没有均线的,第二个是有均线的。
下面试通达信主图紫阳源码
把以下源码复制到通达信公式编辑器内,即可通过:
E10:EMA(CLOSE,10);
E40:EMA(CLOSE,40);
M5:MA(CLOSE,5);
M3:MA(CLOSE,3),color00ff00;
F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(CREF(O,1) AND f0,1,0);
p1:=今小昨;
今小前:=IF(CREF(O,2) AND f0,1,0);
p2:=今小前;
stickline(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,open,CLOSE,3,0),colormagenta;
stickline(P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0,open,CLOSE,3,0),colorAAAAAA;
通达信主图公式
综价:=(3*C+O)/4;
综价均3:=WMA(综价,3);
短升:=综价均3REF(综价均3,1);
金操盘线:IF(短升,综价均3*0.95,综价均3*1.05),COLOR006600;
IF(短升,金操盘线,DRAWNULL),COLOR008888,LINETHICK3;
IF(短升,金操盘线,DRAWNULL),COLORYELLOW;
STICKLINE(短升,H,L,0,0),COLORYELLOW;
STICKLINE(短升,O,C,3,0),COLOR3666EE;
STICKLINE(短升,O,C,3,0),COLOR2299EE;
STICKLINE(短升,O,C,3,0),COLOR11AAEF;
STICKLINE(短升,O,C,3,0),COLOR00BBFE;
STICKLINE(短升,O,C,3,0),COLOR00CCFE;
STICKLINE(短升,O,C,3,0),COLOR00DDFF;
STICKLINE(短升,O,C,2,0),COLOR00EEFF;
STICKLINE(短升,O,C,1,0),COLOR00FFFF;
STICKLINE(NOT(短升),H,L,0,0),COLOR006600;
STICKLINE(NOT(短升),O,C,3,0),COLOR006600;
买入:短升 AND COUNT(短升,2)=1,COLOR0000FF,LINETHICK0;
DRAWICON(买入,L,1);
HGY:=17;
转强信号:=FILTER(COUNT((100*(EMA(EMA(EMA(C,HGY),HGY),HGY)-
REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1))/REF(EMA(EMA(EMA(C,HGY),HGY),
HGY),1))REF((100*(EMA(EMA(EMA(C,HGY),HGY),HGY)-REF(EMA(EMA(EMA(C,
HGY),HGY),HGY),1))/REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1)),1),5)=4
AND ((WINNER(C*0.95)0.5 AND COST(85)C AND (100*(EMA(EMA(EMA(C,HGY),
HGY),HGY)-REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1))/REF(EMA(EMA(EMA(C,HGY),
HGY),HGY),1))0) OR ((100*(EMA(EMA(EMA(C,HGY),HGY),HGY)-REF(EMA(EMA
(EMA(C,HGY),HGY),HGY),1))/REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1))
REF((100*(EMA(EMA(EMA(C,HGY),HGY),HGY)-REF(EMA(EMA(EMA(C,HGY),HGY),
HGY),1))/REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1)),1) AND (100*(EMA(EMA(
EMA(C,HGY),HGY),HGY)-REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1))/
REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1))0) OR ((100*(EMA(EMA(EMA(C,HGY),
HGY),HGY)-REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1))/REF(EMA(EMA(EMA(C,HGY),
HGY),HGY),1))=0 AND (100*(EMA(EMA(EMA(C,HGY),HGY),HGY)-REF(EMA(EMA(
EMA(C,HGY),HGY),HGY),1))/REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1))REF((
100*(EMA(EMA(EMA(C,HGY),HGY),HGY)-REF(EMA(EMA(EMA(C,HGY),HGY),HGY),
1))/REF(EMA(EMA(EMA(C,HGY),HGY),HGY),1)),1))),5),COLOR00FFFF;
STICKLINE(转强信号,L*0.99,L*0.97,3,0),LINETHICK1,COLORRED;
STICKLINE(转强信号,L*0.99,L*0.97,1,0),LINETHICK1,COLORYELLOW;
DRAWTEXT(转强信号,L*0.95,'转强信号')COLORYELLOW;
止损:=REF(HHV(H,13),1)*0.95,COLORGRAY,DOTLINE;
STICKLINE(CURRBARSCOUNT=1,止损,止损,80,-1),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,止损*0.995,'盘中破坚决止损★'),COLORGREEN;
买卖:(EMA(C,3.14)+EMA(C,6.28))/2,COLORRED,NODRAW;
吸:买卖*0.935,COLORWHITE,NODRAW;
抛:买卖*1.075,COLORYELLOW,NODRAW;
DRAWTEXT(L买卖*0.935,L*0.98,'吸1/5')COLORWHITE;
DRAWTEXT(L买卖*0.935,L*0.95,'反弹出')COLORYELLOW;
DRAWTEXT(H买卖*1.075 AND C/REF(C,1)1.091,H*1.04,'抛一半')COLORWHITE;
DRAWTEXT(H买卖*1.075 AND C/REF(C,1)1.091,H*1.01,'再低吸')COLORYELLOW;
麻烦高手写一个 通达信 的主图均线公式,感谢!
一、攻击线:即是5日均线。其主要作用是推动价格在短期内形成攻击态势,不断引导价格上涨或下跌。如果攻击线上涨角度陡峭有力(没有弯曲疲软的状态),则说明价格短线爆发力强。反之,则弱。同样,在价格进入下跌阶段时,攻击线也是重要的杀跌武器,如果向下角度陡峭,则杀跌力度极强。
在实战中,当价格突破攻击线,攻击线呈陡峭向上的攻击状态时,则意味着短线行情已经启动,此时应短线积极做多。同理,当价格击穿攻击线,攻击线呈向下拐头状态时,则意味着调整或下跌行情已经展开,此时应短线做空。
二、操盘线:即是指10日均线。也有行情线之称。操盘线的主要作用是推动价格在一轮中级波段行情中持续上涨或下跌。如果操盘线上涨角度陡峭有力,则说明价格中期上涨力度强。反之,则弱。同样,在价格进入下跌波段时,操盘线同样可促使价格反复盘跌。
在实战中,当价格突破操盘线,操盘线呈持续向上的攻击状态时,此时应短线积极做多。同理,当价格击穿操盘线,操盘线呈向下拐头状态时,则意味着上涨行情已经结束,此时应中线做空。
三、生命线:即是指20日均线。生命线的主要作用是指明价格的中期运行趋势。在波段趋势性行情中,生命线有极强的支撑和阻力作用。如果生命线上涨角度陡峭有力,则说明价格中期上涨趋势强烈,主力洗盘或调整至此位置可坚决狙击。在价格进入下跌趋势时,生命线同样可压制价格的反弹行为,促使价格持续走弱。
生命线是波段上涨或下跌行情的生命基础。当价格突破生命线,生命线呈拐头向上攻击状态时,则意味着中线波段行情已经启动,此时应中线积极做多。生命线在波段行情的阶段性调整过程中,不会轻易被击穿。而一旦确认生命线有效跌破,则意味着中期的下跌行情已经展开。
四、决策线:即是指60日均线。决策线的主要作用是指明价格的中期反转趋势,指导价格大波段级别运行于既定的趋势之中。当价格放量向上或向下突破决策线时,则说明中期的反转行情已经启动,临盘应做出相应的操盘决策。
在实战中,决策线对行情性质有着决定性的重大意义。当价格突破决策线,决策线呈拐头向上的攻击状态时,则意味着中线大趋势多头行情已经形成。然而,一旦价格向下击穿决策线,决策线呈向下拐头状态时,则意味着一轮大级别的下跌行情已经展开,此时应中线果断做空。
五、牛熊线:即是指250日均线。250日均线也被称作年线,当股指或股价在年线之上,同时年线又保持上行态势,说明当前股价已经高于这250日内建仓投资者的平均成本,绝大部分资金处于盈利状态,表明行情向多,若年线保持下行态势,说明市场中绝大部分资金被套,场内亏多赢少,多数投资者看淡后市。
年线对于中长期投资有较为重要的指导意义。如果年线逐渐转为上升趋势,指数或股价维持在其上方运行,长期投资者此时应该伺机介入,并坚持持有;如果年线不断下挫则应该空仓回避,或适当反弹减仓;而当年线保持走平的态势,可以结合当时的市场环境在年线附近寻找短线机会。