股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 抄底魔鬼和逃顶天王副图,见红必涨主图 源码说明)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-17 20:08:48

抄底魔鬼 逃顶天王 见红必涨

逃顶天王副图源码:
P1:=34;P2:=55;N:=21;N1:=3;

Var1jo:=IF(DATE<1500830 AND DATE>900101,1,0);
Var2jo:=LLV(LOW,10);
Var3jo:=HHV(HIGH,25);
警戒线:= 2.8*Var1jo;
减仓线:= 3.2*Var1jo;
动力线:=EMA((CLOSE-Var2jo)/(Var3jo-Var2jo)*4,4)*Var1jo;
警戒:if(CROSS(动力线,警戒线),50,60),color000fff;

RC:=C/REF(C,13);
ARC:=SMA(REF(RC,1),13,1);
ARC1:=SMA(REF(RC,1),47,1)+0.04;
卖出1:CROSS(ARC,ARC1)*40,COLOR00ff00,LINETHICK2;

Var3o:=REF(CLOSE,1);
Var4o:=SMA(MAX(CLOSE-Var3o,0),6,1)/SMA(ABS(CLOSE-Var3o),6,1)*100;
卖出a:=CROSS(80,Var4o){,stick};
卖出:if(卖出a,50,2),coloryellow,linethick2;

Z001:=SMA(Vol,5,1);
Z002:=(Z001-llv(Z001,10))/(hhv(Z001,10)-llv(Z001,10))*100;
Z003:=SMA(Z002,3,1);
Z004:=100-Z003;
Z005:=REF(Z004,1)>REF(Z004,2) AND Z004<34;
Z006:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
Z007:=FILTER(Z005,3);
巫山1:=SMA(Z006,3,1){,LINESTICK, COLORBLUE};
山顶1:if(Z007 AND 巫山1>60,30,0),stick,COLORred,LINEThICK7;

cjl10:=if((ma(v,5)/capital)/(ma(v,20)/capital)>1.618,2,1);
cjl20:=if((ma(v,10)/capital)/(ma(v,30)/capital)>1.618,2,1);
cjl40:=if((ma(v,20)/capital)/(ma(v,60)/capital)>2.618,2,1);
cjl60:=if((ma(v,20)/capital)/(ma(v,90)/capital)>3.191,2,1);
cjl120:=if((ma(v,20)/capital)/(ma(v,120)/capital)>3.618,2,1);
cjl250:=if((ma(v,20)/capital)/(ma(v,250)/capital)>4.382,2,1);
cjl1:=cjl10;
cjl2:=cjl10*cjl20;
cjl3:=cjl10*cjl20*cjl40;
cjl4:=cjl10*cjl20*cjl40*cjl60;
cjl5:=cjl10*cjl20*cjl40*cjl60*cjl120;
cjl6:=cjl10*cjl20*cjl40*cjl60*cjl120*cjl250;
price10:=if(c=hhv(c,10),2,1);
price20:=if(hhv(c,5)=hhv(c,20),2,1);
price40:=if(hhv(c,5)=hhv(c,40),2,1);
price60:=if(hhv(c,5)=hhv(c,60),2,1);
price120:=if(hhv(c,5)=hhv(c,120),2,1);
price250:=if(hhv(c,5)=hhv(c,250),2,1);
price1:=price10;
price2:=price10*price20;
price3:=price10*price20*price40;
price4:=price10*price20*price40*price60;
price5:=price10*price20*price40*price60*price120;
price6:=price10*price20*price40*price60*price120*price250;
zhangfu10:=if(c>ma(c,5),2,1);
zhangfu20:=if(c>ma(c,20),2,1);
zhangfu40:=if(c>ma(c,40),2,1);
zhangfu60:=if(c>ma(c,60),2,1);
zhangfu120:=if(c>ma(c,120),2,1);
zhangfu250:=if(c>ma(c,250),2,1);
zhangfu1:=(zhangfu10);
zhangfu2:=(zhangfu10*zhangfu20);
zhangfu3:=(zhangfu10*zhangfu20*zhangfu40);
zhangfu4:=(zhangfu10*zhangfu20*zhangfu40*zhangfu60);
zhangfu5:=(zhangfu10*zhangfu20*zhangfu40*zhangfu60*zhangfu120);
zhangfu6:=(zhangfu10*zhangfu20*zhangfu40*zhangfu60*zhangfu120*zhangfu250);
卖出2:cjl5*price5*zhangfu5/100,colorf0f000,LINETHICK1;

追顶神剑1:="RSI.RSI1"(6,12,24)>78 AND "ROC.ROC"(12,6)<REF("ROC.ROC"(12,6),1) OR "BIAS.BIAS3"(6,12,24)>20{,coloryellow};
追顶神剑:if(追顶神剑1,40,2),linethick2,colorf00ff0;

i:=MA(BARSLAST(HIGH=HHV(HIGH,16))*IF(CLOSE<OPEN,VOL,1),3);
r:=MA(BARSLAST(LOW=LLV(LOW,18))*IF(CLOSE>OPEN,VOL,1),4);
短线逃顶1:=IF(i,0,1){,colorgreen};
短线逃顶:if(短线逃顶1,30,60),linethick2,colorblue;

卖出线:=99;
阶段卖:=90{,COLORCYAN};
趋势:=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){,COLORYELLOW};
底部:=10;
警报2: IF(趋势>=90,50,60),COLORf0f000,LINETHICK2;

Vari:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
巫山:=SMA(Vari,5,1)-8{,colorcyan,linethick2};
Varii:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
登山者:=SMA(varii,5,1)-16{,circledot,coloryellow};
山顶2:if(cross(巫山,登山者) and 登山者>=55 and 登山者<70,40,0),stick,colorgreen,LINETHICK7;
山顶3:if(filter(cross(巫山,80),20)=1,50,0),stick,colorwhite,LINETHICK7;

Var1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
Var2:=SMA(Var1,9,1)+100;
Var3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Var4:=SMA(Var3,3,1);
Var5:=SMA(Var4,3,1)+100;
Var6:=Var5-Var2;
警报1:IF(Var6>100,Var6-100,0),color88b7ea,LINETHICK2;
if(REF(警报1,1)<警报1,警报1,0),pointdot,linethick4,COLOR3399FF;
if(REF(警报1,1)>警报1,REF(警报1,1),0),pointdot,linethick4,COLOR9900ff;

Var1j:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Var2j:=SMA(Var1j,3,1);
Var3j:=SMA(Var2j,3,1);
Var4j:=Var1j*1.05;
Var6j:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var7j:=SMA(Var6j,5,1);
Var9j:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);
顶:CROSS(Var2j,Var4j) AND Var3j>60 AND Var7j<Var9j+10,colorffcccc,linethick2;
{DRAWICON(顶,20,2)};
抄底魔鬼和逃顶天王的用法;
抄底魔鬼:当出现预警信号时,可关注股票;当同一位置有三个以上信号出现时,可大胆买入;结合均线效果更佳;可用于选股,底5=60.
逃顶天王:当有一个信号出现时,可作为短线或超短线逃顶;之后,经过调整,很多股票都还有上升空间;当同一位置有三个信号以上出现时,要坚决卖出;结合均线效果更佳;
抄底魔鬼和逃顶天王可配合使用;
有的同学说这两个指标不太准。我认为凡是指标都是利用各种数值,尤其是利用股票市场上各种资金量的变化,来揣摩主力庄家的意图,只要我们大体上掌握了主力的趋势就可以了,与庄共舞,先于庄家了断,尽量做到少赔、不赔,赚比较大的钱,不赚最大的钱,只有庄家能赚最大的钱。知足者常乐嘛……
同学们可以用十字光标,在逃顶天王指标中逐日移动,看指标上部警戒、卖出1、卖出、山顶1、卖出2,等等各项指标数值的变化,就可以明白了。
昨晚有同学发短信要“见红必涨”主图源码,就在此公布了吧,这是我加了点东东的“见红必涨”,在此向原作者老师致敬。但愿同学们喜欢。喜欢过后给个币吧哈,,,
见红必涨主图源码
{以下设置个股信息}
DRAWTEXTABS(15,10,'■所属板块:'+BKNAME),COLORFFFFFF;
DD:=FINANCE2(35)/10000;SS:=FINANCE2(37)/10000;
DRAWTEXTABS(15,25,'■总股本:'+NUMTOSTRN(DD,2)+'亿' +' 流通A股:'+NUMTOSTRN(SS,2)+'亿'),COLOR00FFFF;
DRAWTEXTABS(15,55,'■建议查阅K线:短线30天,中长线120天!'),COLORffffff;
DRAWTEXTABS(15,70,'■120天最大成交量:'+HHV(VOL,120)+'手'),Coloryellow;
DRAWTEXTABS(15,85,'■120天最小成交量:'+LLV(VOL,120)+'手'),Coloryellow;
DRAWTEXTABS(15,100,'■30天最高价:'+HHV(HIGH,30)+'元'),Colorffff00;
DRAWTEXTABS(15,115,'■30天最低价:'+LLV(LOW,30)+'元'),Colorffff00;
DRAWTEXTABS(15,130,'■13天均价:'+MA(C,13)+'元'),Colorwhite;
DRAWTEXTABS(15,145,'■34天均价:'+MA(C,34)+'元'),Colorwhite;
DRAWTEXTABS(15,160,'■55天均价:'+MA(C,55)+'元'),Colorwhite;
DRAWTEXTABS(15,175,'■90天均价:'+MA(C,90)+'元'),Colorwhite;
DRAWTEXTABS(15,190,'■250天均价牛熊分界:'+MA(C,250)+'元'),Colorwhite;

MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA40:MA(C,40);
MA60:MA(C,60);
STICKLINE(MA5>=MA60 AND MA60>=MA10,MA10,MA60,4,0),COLORBLUE;
STICKLINE(MA5>=MA10 AND MA5<=MA60,MA10,MA5,4,0),COLORBLUE;
STICKLINE(MA20>=MA60 AND MA60>=MA40,MA40,MA60,4,0),COLORFF00FF;
STICKLINE(MA20>=MA40 AND MA20<MA60,MA40,MA20,4,0),COLORFF00FF;
STICKLINE(MA5>=MA20 AND MA20>=MA10,MA10,MA20,4,0),COLORWHITE;
STICKLINE(MA5>=MA10 AND MA5<MA20,MA10,MA5,4,0),COLORWHITE;
STICKLINE(C>=O,H,L,0,0),COLORRED;
STICKLINE(C<O,H,L,0,0),COLORFFFF52;
STICKLINE(C>=O,C,O,4,1),COLORRED;






回复

举报

QQ|

GMT+8, 2024-11-16 17:07

快速回复 返回顶部 返回列表