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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信绝杀大牛主图指标公式源码


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

{指标介绍:
1、趋势线:表示趋势的除了多空趋势彩带外还有:长趋势线(红线)和短趋势线(虚线)。
2、中长线的原则是:不上短趋势不买、不下短趋势不卖。
3、超级短线和彩色K线:红持股、绿持币、粉红买、黄色卖。
4、当前些日是绿色K线,当天出现下面是粉红K线上面变红时、分色线价位测是买进价。
5、相反当前些日是红K出现黄变绿时是卖出价。
6、需要注意的是:这套K线实体部分有的地方与O,C不完全对应(要长出一些)。本来是阳线出现全绿K线(上下影线保留红色)则是一种风险提示,提示你注意。
7、看盘线:图的右边除两条常用的(中条长度)支撑和压力线外(洋红和白色线)外,另外一组就是关键价位(绿色)和支撑价位(黄色)。为了读数。它们的值各加了1000。
8、关键价位是两天均价中的最低价,支撑价位则是四天均价中的最低价。关键价位另取了一个名为〈今重心〉在图顶的公式栏中是不加1000的实际数,另有一条绿色短横线表示昨天重心的位置,以作重心的位移对比。}

VAR1:=CONST(LLV((IF(C<300,(AMOUNT/V/100),EMA(C,1))),2));
VAR2:=CONST(LLV((IF(C<300,(AMOUNT/V/100),EMA(C,1))),4));
VAR3:=EMA(MA(((C-MA(C,13))*100),7),1);
VAR4:=(crOSS(VAR3,EMA(VAR3,7)) AND VAR3<-0.1);
今重心:LLV((IF(C<300,(AMOUNT/V/100),EMA(C,1))),2),COLORGREEN,NODRAW;
DRAWBAND(SMA(C,6.5,1),RGB(255,97,0),SMA(C,13.5,1),RGB(0,128,0));
长期趋势:EMA(EMA(C,34),13),COLORRED,LINETHICK3;
VAR5:=REF(MA(C,5),1)<REF(MA(C,10),1)AND MA(C,10)>REF(MA(C,10),1);
VAR6:=C>MA(C,10) OR H>=MA(C,10);
VAR7:=C>O AND REF(C,1)<MA(C,10) AND VAR6 AND VAR5 AND MA(C,21)<MA(C,10);
VAR8:=VAR7 AND (CROSS(C,长期趋势) OR CROSS(L,长期趋势) OR CROSS(H,长期趋势));
VAR9:=((C>REF(C,1)) AND (C>REF(C,2)));
VAR10:=((REF(VAR9,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR11:=((REF(VAR10,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR12:=((REF(VAR11,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR13:=((REF(VAR12,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR14:=((REF(VAR13,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR15:=((REF(VAR14,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR16:=((REF(VAR15,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR17:=((REF(VAR16,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR18:=((REF(VAR17,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR19:=((REF(VAR18,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR20:=((REF(VAR19,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR21:=((((VAR9 OR VAR10) OR VAR11) OR VAR12) OR VAR13);
VAR22:=((((VAR21 OR VAR14) OR VAR15) OR VAR16) OR VAR17);
VAR23:=((C<REF(C,1)) AND (C<REF(C,2)));
VAR24:=((REF(VAR23,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR25:=((REF(VAR24,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR26:=((REF(VAR25,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR27:=((REF(VAR26,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR28:=((REF(VAR27,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR29:=((REF(VAR28,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR30:=((REF(VAR29,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR31:=((REF(VAR30,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR32:=((REF(VAR31,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR33:=((REF(VAR32,1) AND (C<=REF(C,1))) AND (C>=REF(C,2)));
VAR34:=((REF(VAR33,1) AND (C>=REF(C,1))) AND (C<=REF(C,2)));
VAR35:=((((VAR23 OR VAR24) OR VAR25) OR VAR26) OR VAR27);
VAR36:=((((VAR35 OR VAR28) OR VAR29) OR VAR30) OR VAR31);
VAR37:=(REF((((VAR36 OR VAR32) OR VAR33) OR VAR34),1) AND VAR9);
VAR38:=(REF((((VAR22 OR VAR18) OR VAR19) OR VAR20),1) AND VAR23);
VAR39:=CROSS(EMA(C,5),EMA(C,30))AND CROSS(EMA(C,10),EMA(C,20));
VAR40:=HHV((EMA(((((O+L)+H)+C)/4),5)),60);
VAR41:=(((C-LLV(L,13))/(HHV(H,13)-LLV(L,13)))*100);
VAR42:=EMA((((((3*C)+H)+L)+O)/6),10);
VAR43:=((3*SMA(VAR41,3,1))-(2*SMA(SMA(VAR41,3,1),3,1)));
VAR44:=(((C-LLV(L,55))/(HHV(H,55)-LLV(L,55)))*100);
VAR45:=((3*SMA(VAR44,3,1))-(2*SMA(SMA(VAR44,3,1),3,1)));
VAR46:=IF(CROSS(VAR45,VAR43),H,REF(H,BARSLAST(CROSS(VAR45,VAR43))));
VAR47:=CROSS(C,MA(C,20)) AND H<VAR46 AND O<MA(C,20) AND H<VAR40;
VAR48:=VAR47 AND (SMA(H,21,2)*1.05)-REF((SMA(H,21,2)*1.05),1)>0;
VAR49:=VAR48 AND VAR42-REF(VAR42,1)>0 AND VAR43<63 AND MA(C,20)-REF(MA(C,20),1)>0;
VAR58:=IF(ISLASTBAR,VAR46,DRAWNULL);
VAR59:=IF(ISLASTBAR,LLV(H,30),DRAWNULL);
买入:IF(VAR4,L*0.98,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;
DRAWTEXT(CROSS(VAR3,EMA(VAR3,7)) AND VAR3<-0.1,买入,' 买'),COLORRED;
DRAWTEXT(VAR8,L*0.98,'●'),COLORGREEN;
STICKLINE((((VAR22 OR VAR18) OR VAR19) OR VAR20),C,O,3,0),COLOR000099;
STICKLINE((((VAR22 OR VAR18) OR VAR19) OR VAR20),C,O,2,0),COLOR0000BB;
STICKLINE((((VAR22 OR VAR18) OR VAR19) OR VAR20),C,O,1,0),COLOR0000DD;
STICKLINE((((VAR36 OR VAR32) OR VAR33) OR VAR34),C,O,3,0),COLOR00BB00;
STICKLINE((((VAR36 OR VAR32) OR VAR33) OR VAR34),C,O,2,0),COLOR00DD00;
STICKLINE((((VAR36 OR VAR32) OR VAR33) OR VAR34),C,O,1,0),COLOR00FF00;
STICKLINE(VAR37,(MAX(REF(C,2),REF(C,1))),O,3,0),COLORBB11BB;
STICKLINE(VAR37,(MAX(REF(C,2),REF(C,1))),O,2,0),COLORDD44DD;
STICKLINE(VAR37,(MAX(REF(C,2),REF(C,1))),O,1,0),COLORFF66FF;
STICKLINE(VAR38,(MIN(REF(C,2),REF(C,1))),O,3,0),COLOR00AAFF;
STICKLINE(VAR38,(MIN(REF(C,2),REF(C,1))),O,2,0),COLOR00CCFF;
STICKLINE(VAR38,(MIN(REF(C,2),REF(C,1))),O,1,0),COLOR00EEFF;
DRAWICON(VAR39,LOW*0.99,13);
STICKLINE(1,(EMA(SLOPE(C,21)*20+C,42)),(EMA(SLOPE(C,21)*20+C,42)),1,0),COLORYELLOW;
DRAWTEXT(VAR49,L,'●牛浮面'),COLORWHITE;
STICKLINE(C>=O,C,H,0,0),COLOR0000FF;
STICKLINE(C>=O,O,L,0,0),COLOR0000FF;
STICKLINE(C<O,O,H,0,0),COLOR00FF00;
STICKLINE(C<O,C,L,0,0),COLOR00FF00;
STICKLINE(ISLASTBAR,VAR1,VAR1,120,0),LINETHICK1,COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,VAR1*1.02,'关键价位'),COLORGREEN;
DRAWNUMBER(ISLASTBAR,VAR1*1.02,VAR1+1000),COLORGREEN;
STICKLINE(ISLASTBAR,VAR2,VAR2,120,0),LINETHICK1,COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,VAR2*0.99,'支撑价位'),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,VAR2*0.99,VAR2+1000),COLORYELLOW;
STICKLINE(ISLASTBAR,VAR58,VAR58,60,1),LINETHICK3,COLORFFFFFF;
STICKLINE(ISLASTBAR,VAR59,VAR59,60,1),LINETHICK3,COLORRED;
STICKLINE(ISLASTBAR,REF(LLV(今重心,2),1),REF(LLV(今重心,2),1),10,0),COLORGREEN;





回复

举报

QQ|

GMT+8, 2024-11-16 20:48

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