: | : | :期货量化学习 | :期货量化 |
返回列表 发帖

[同花顺指标] 同花顺睿智主控k线主图指标公式

[同花顺指标] 同花顺睿智主控k线主图指标公式

  1.   N1:=6;N2:=16;N3:=34;N4:=60;

  2.   启动:EMA(C,N1),colorwhite,linethick1;

  3.   持股线:EMA(C,N2),coloryellow;

  4.   牛熊线:EMA(MA(CLOSE,3),N3),colorred;

  5.   长期线:EMA(C,N4),colormagenta;

  6.   STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;

  7.   STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,CLOSE,10,0),colorred;

  8.   STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorff00ff;

  9.   STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),OPEN,CLOSE,7,0),colorff00ff;

  10.   STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF11;

  11.   STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008855;

  12.   STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;

  13.   STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;

  14.   STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;

  15.   STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;

  16.   STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;

  17.   STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;

  18.   STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF55;

  19.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;

  20.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;

  21.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;

  22.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;

  23.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;

  24.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;

  25.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;

  26.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;

  27.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;

  28.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;

  29.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;

  30.   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;

  31.   STICKLINE(C>=持股线 AND C>=O,C,O,9,0),colorred;

  32.   STICKLINE(C>=持股线 AND C>=O,H,L,0,0),colorred;

  33.   Var11:=ZIG(3,6)>REF(ZIG(3,6),1)

  34.   AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2)

  35.   AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);

  36.   Var12:=ZIG(3,6)<REF(ZIG(3,6),1)

  37.   AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2)

  38.   AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);

  39.   Var13:=ZIG(3,22)>REF(ZIG(3,22),1)

  40.   AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)

  41.   AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);

  42.   Var14:=ZIG(3,22)<REF(ZIG(3,22),1)

  43.   AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2)

  44.   AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);

  45.   Var15:=ZIG(3,51)>REF(ZIG(3,51),1)

  46.   AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2)

  47.   AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);

  48.   Var16:=ZIG(3,51)<REF(ZIG(3,51),1)

  49.   AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2)

  50.   AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);

  51.   Var17:=ZIG(3,72)>REF(ZIG(3,72),1)

  52.   AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2)

  53.   AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);

  54.   Var18:=ZIG(3,72)<REF(ZIG(3,72),1)

  55.   AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)

  56.   AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);

  57.   Var19:=EMA(C,2)-EMA(C,150);

  58.   买点1:=(Var11+Var13+Var15+Var17);

  59.   买点2:=(Var13+Var15+Var17);

  60.   卖点1:=(Var12+Var14+Var16+Var18);

  61.   卖点2:=(Var14+Var16+Var18);

  62.   STICKLINE( 买点1>0 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 买点1>0,O,C,6,0),colorwhite,linethick1;

  63.   STICKLINE( 买点2>0 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 买点2>0,O,C,6,0),colorred,linethick1;

  64.   STICKLINE( 卖点1>0,H,L, 11,5),colorblue,linethick1;STICKLINE( 卖点1>0,O,C,6,0),colorbrown,linethick1;

  65.   STICKLINE( 卖点2>0,H,L, 11,5),colorblue,linethick1;STICKLINE( 卖点2>0,O,C,6,0),colorwhite,linethick1;

  66.   DRAWTEXT(卖点2>0, H,‘顶’),colorblue,linethick3;

  67.   LOWV:=LLV(LOW,9);

  68.   HIGHV:=HHV(HIGH,9);

  69.   RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);

  70.   K:=EMA(RSV,3);

  71.   D:=MA(K,3);

  72.   买卖差:=K-D;

  73.   BU:=CROSS(K,D);

  74.   多头排列:=启动>持股线 AND 启动>长期线 AND 持股线>长期线;

  75.   买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;

  76.   攻击:=BBI+3*STD(BBI,10),linethick1;

  77.   STICKLINE(1,C,O,0,0),colorwhite;

  78.   上线:=SMA(C,2.5,1);

  79.   下线:=SMA(C,6.5,1);

  80.   上线1:=SMA(C,6,2);

  81.   下线1:=SMA(C,8,2);

  82.   攻击:BBI+3*STD(BBI,10),linethick1;

  83.   STICKLINE( 上线>下线 AND (CLOSE>攻击),C,O,7,3),coloryellow;STICKLINE(上线>下线 AND (CLOSE>攻击),H,L,1,2),coloryellow;

  84.   BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

  85.   LOWV:=LLV(LOW,9);

  86.   HIGHV:=HHV(HIGH,9);

  87.   RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);

  88.   K:=EMA(RSV,3);

  89.   D:MA(K,3);

  90.   金叉:=CROSS(K,50);

  91.   DRAWTEXT(金叉>0 AND K<80 AND K>D AND OPEN>牛熊线 ,LOW*0.942,‘ 大胆作多’),colorred;
复制代码

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   1.本站发布源码(包括函数、指标、策略等)均属开放源码,用意在于让使用者学习程序化语法撰写,使用者可以任意修改语法內容并调整参数。仅限用于个人学习使用,请勿转载、滥用,严禁私自连接实盘账户交易
  2.本站发布资讯(包括文章、视频、历史记录、教材、评论、资讯、交易方案等)均系转载自网络主流媒体,内容仅为作者当日个人观点,本网转载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。本网不对该类信息或数据做任何保证。不对您构成任何投资建议,不能依靠信息而取代自身独立判断,不对因使用本篇文章所诉信息或观点等导致的损失承担任何责任。
  3.本站发布资源(包括书籍、杂志、文档、软件等)均从互联网搜索而来,仅供个人免费交流学习,不可用作商业用途,本站不对显示的内容承担任何责任。请在下载后24小时内删除。如果喜欢,请购买正版,谢谢合作!
  4.龙听期货论坛原创文章属本网版权作品,转载须注明来源“龙听期货论坛”,违者本网将保留追究其相关法律责任的权力。本论坛除发布原创文章外,亦致力于优秀财经文章的交流分享,部分文章推送时若未能及时与原作者取得联系并涉及版权问题时,请及时联系删除。联系方式:http://www.qhlt.cn/thread-262-1-1.html
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

返回列表