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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 通达信筹码启动擒大牛主图指标公式源码


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

W00:=COST(1);
W10:=COST(10);
W20:=COST(20);
W30:=COST(30);
W40:=COST(40);
W50:=COST(50);
W60:=COST(60);
W70:=COST(70);
W80:=COST(80);
W90:=COST(90);
W100:=COST(99);
W5:=COST(5);
W15:=COST(15);
W25:=COST(25);
W35:=COST(35);
W45:=COST(45);
W55:=COST(55);
W65:=COST(65);
W75:=COST(75);
W85:=COST(85);
W95:=COST(95);
C5:=W5-W00;
C10:=W10-W5;
C15:=W15-W10;
C20:=W20-W15;
C25:=W25-W20;
C30:=W30-W25;
C35:=W35-W30;
C40:=W40-W35;
C45:=W45-W40;
C50:=W50-W45;
C55:=W55-W50;
C60:=W60-W55;
C65:=W65-W60;
C70:=W70-W65;
C75:=W75-W70;
C80:=W80-W75;
C85:=W85-W80;
C90:=W90-W85;
C95:=W95-W90;
C100:=W100-W95;
AAA1:=MIN(C5,MIN(C10,MIN(C15,MIN(C20,MIN(C25,MIN(C30,MIN(C35,MIN(C40,MIN(C45,MIN(C50,MIN(C55,MIN(C60,MIN(C65,MIN(C70,MIN(C75,MIN(C80,MIN(C85,MIN(C90,MIN(C95,C100)))))))))))))))))));
STICKLINE(AAA1=C5,W00,W5,5,0),COLORFF8800;
STICKLINE(AAA1=C10,W10,W5,5,0),COLORFF8800;
STICKLINE(AAA1=C15,W15,W10,5,0),COLORFF8800;
STICKLINE(AAA1=C20,W20,W15,5,0),COLORFF8800;
STICKLINE(AAA1=C25,W25,W20,5,0),COLORFF8800;
STICKLINE(AAA1=C30,W30,W25,5,0),COLORFF8800;
STICKLINE(AAA1=C35,W35,W30,5,0),COLORFF8800;
STICKLINE(AAA1=C40,W40,W35,5,0),COLORFF8800;
STICKLINE(AAA1=C45,W45,W40,5,0),COLORFF8800;
STICKLINE(AAA1=C50,W50,W45,5,0),COLORFF8800;
STICKLINE(AAA1=C55,W55,W50,5,0),COLORFF8800;
STICKLINE(AAA1=C60,W60,W55,5,0),COLORFF8800;
STICKLINE(AAA1=C65,W65,W60,5,0),COLORFF8800;
STICKLINE(AAA1=C70,W70,W65,5,0),COLORFF8800;
STICKLINE(AAA1=C75,W75,W70,5,0),COLORFF8800;
STICKLINE(AAA1=C80,W80,W75,5,0),COLORFF8800;
STICKLINE(AAA1=C85,W85,W70,5,0),COLORFF8800;
STICKLINE(AAA1=C90,W90,W85,5,0),COLORFF8800;
STICKLINE(AAA1=C95,W95,W90,5,0),COLORFF8800;
STICKLINE(AAA1=C100,W100,W95,5,0),COLORFF8800;
筹宽:=W100-W00;
J90:=W90-W60;
J80:=W80-W50;
J70:=W70-W40;
J60:=W60-W30;
J50:=W50-W20;
J40:=W40-W10;
J30:=W30-W00;
STICKLINE(J90/筹宽< 0.08,W90,W60,5,0),COLOR74D9A4;
STICKLINE(J80/筹宽< 0.08,W80,W50,5,0),COLOR74D9A4;
STICKLINE(J70/筹宽< 0.08,W70,W40,5,0),COLOR74D9A4;
STICKLINE(J60/筹宽< 0.08,W60,W30,5,0),COLOR74D9A4;
STICKLINE(J50/筹宽< 0.08,W50,W20,5,0),COLOR74D9A4;
STICKLINE(J40/筹宽< 0.08,W40,W10,5,0),COLOR74D9A4;
AAC90:=W90-W70;
AAC80:=W80-W60;
AAC70:=W70-W50;
AAC60:=W60-W40;
AAC50:=W50-W30;
AAC40:=W40-W20;
AAC30:=W30-W10;
STICKLINE(AAC90/筹宽< 0.05,W90,W70,5,0),COLORFFFF00;
STICKLINE(AAC80/筹宽< 0.05,W80,W60,5,0),COLORFFFF00;
STICKLINE(AAC70/筹宽< 0.05,W70,W50,5,0),COLORFFFF00;
STICKLINE(AAC60/筹宽< 0.05,W60,W40,5,0),COLORFFFF00;
STICKLINE(AAC50/筹宽< 0.05,W50,W30,5,0),COLORFFFF00;
STICKLINE(AAC40/筹宽< 0.05,W40,W20,5,0),COLORFFFF00;
STICKLINE(AAC30/筹宽< 0.05,W30,W10,5,0),COLORFFFF00;
N:=15;
N1:=20;
ABC1:=COST(95);
ABC2:=COST(5);
ABC3:=(ABC1-ABC2)/(ABC1+ABC2)*100< N;
M95:MA(COST(95),20),DOTLINE,COLORRED;
M5:MA(COST(5),20),DOTLINE,COLORGREEN;
ABC4:=crOSS(CLOSE,M95);
ABC5:=COUNT(ABC3,60)>50;
ABC6:=COUNT(LOW< M95,30)>25;
ABC7:=BARSCOUNT(CLOSE)>250;
ABC8:=ABC4 AND ABC5 AND ABC6 AND ABC7;
ABC9:=BARSLAST(ABC8);
ABC10:=IF(REF(ABC9< 50,1) AND CLOSE< REF(HHV(HIGH,50),1),0,1);
ABC11:=vol/REF(VOL,1)>=1.9 AND CLOSE>REF(CLOSE,1);
ABC12:=ABC8 AND ABC10;
ABC13:=FILTER(ABC12,20);
DRAWICON(ABC13,LOW,1);
STICKLINE(ABC13,HIGH,LOW,0,0),COLORMAGENTA;
STICKLINE(ABC13,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(OPEN>=CLOSE,HIGH,LOW,0,0),COLOR909090;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.1,0),COLOR606060;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.1,0),COLOR707070;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.2,0),COLORGRAY;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.2,0),COLOR909090;
STICKLINE(OPEN<=CLOSE,HIGH,LOW,0,0),COLOR666B6F;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.1,0),COLORMAGENTA;
BBB1:=C/REF(C,1)>1.095 AND C=H;
BBB2:=C/REF(C,1)>1.19 AND C=H;
DRAWTEXT(BBB1 OR BBB2,L*1.02,'↙牛'),COLORYELLOW;
ACB0:=(2*O+H+L+3*C)/7;
ACB1:=CAPITAL*ACB0;
ACB2:=SMA(AMOUNT,10,1)/1000;
ACB3:=MA(C*3,5);
ACB4:=ACB2*C*3/ACB3*1/10;
ACB5:=ACB2*O*3/ACB3*1/10;
ACB6:=ACB2*H*3/ACB3*1/10;
ACB7:=ACB2*L*3/ACB3*1/10;
ACB8:=(2*ACB5+ACB6+ACB7+3*ACB4)/7;
ACB9:=DMA(EMA(ACB4,2),SUM(V,1)*ACB8);
ACB10:=EMA(ACB9,2);
ACBA:=ACB9>ACB10;
ACBB:=EMA(ACB1-ACB9,1);
ACBC:=REF(ACBB,1);
ACBD:=ACBB>ACBC;
ACbs:=ACBD AND C>O;
ACBF:=(ACB9-ACB10)*15000;
ACBT:=IF(ACBA AND ACBS,ACBF/10000,0);
买入:=BARSLASTCOUNT(ACBA AND ACBS)=1;
DRAWICON(买入,LOW,9);





回复

举报

QQ|

GMT+8, 2024-11-16 08:08

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