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

[同花顺指标] 同花顺短线之王主图指标公式

[同花顺指标] 同花顺短线之王主图指标公式

  1.   趋势线:MA(CLOSE,21),COLORFFFFFF,LINETHICK2;

  2.   生命线:MA(CLOSE,43),COLOR00FFFF,LINETHICK2;

  3.   牛熊分界线:MA

  4.   (CLOSE,250),COLOR0000FF,LINETHICK3;

  5.   TY:=C;

  6.   HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV

  7.   (TY,2*10+1),10),10+1),10);

  8.   LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV

  9.   (TY,2*10+1),10),10+1),10);

  10.   A:=REF(C,BARSLAST(HD));

  11.   B:=REF(C,BARSLAST(LD));

  12.   T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;

  13.   T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);

  14.   压力线:IF

  15.   (T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;

  16.   STICKLINE(T1,A,A,9,0),COLORFF00FF;

  17.   支撑线:IF

  18.   (T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;

  19.   VAR3:=LLV(HIGH,240);

  20.   VAR4:=100*(CLOSE-VAR3)/VAR3;

  21.   VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV

  22.   (LOW,528))*100;

  23.   VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-

  24.   LLV(CLOSE,530))*100;

  25.   VAR7:=0;

  26.   VAR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS

  27.   (CLOSE-REF(CLOSE,1)),7)*100;

  28.   VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS

  29.   (CLOSE-REF(CLOSE,1)),13)*100;

  30.   VARA:=BARSCOUNT(CLOSE);

  31.   VARB:=VAR8<20 AND VAR9<23 AND VARA>35;

  32.   VARC:=VARB AND COUNT(VARB,1)=1;

  33.   VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);

  34.   VARE:=EMA(VARD,5);

  35.   VARF:=TROUGH(3,6,1)<4 AND CROSS(VARD,VARE);

  36.   VAR10:=IF(TROUGH(3,16,1)=0 AND

  37.   HIGH》LOW+0.04,4,0);

  38.   VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG

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

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

  41.   VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG

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

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

  44.   VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG

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

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

  47.   VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG

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

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

  50.   VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG

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

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

  53.   VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG

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

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

  56.   VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG

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

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

  59.   VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG

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

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

  62.   VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);

  63.   VAR1A:=EMA(VAR19,100);

  64.   VAR1B:=2*(VAR19-VAR1A);

  65.   VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);

  66.   VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));

  67.   VAR1E:=EMA(VAR1D*0.97,3);

  68.   VAR1F:=(HIGH+LOW+CLOSE)/3;

  69.   VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV

  70.   (VAR1F,14));

  71.   VAR21:=CROSS(VAR1E,LOW);

  72.   买点1:=VAR10;

  73.   买点2:=(VAR11+VAR13+VAR15+VAR17);

  74.   卖点1:=(VAR12+VAR14+VAR16+VAR18),LINETHICK2;

  75.   VAR22:=买点1 AND VARF AND VARC AND VAR21 AND

  76.   VAR4<0 AND VAR5=0

  77.   AND VAR6=0 AND VAR20《(-110);

  78.   VAR1:=MA(CLOSE,5);

  79.   VAR2:=MA(CLOSE,10);

  80.   VAR31:=MA(CLOSE,30);

  81.   VARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);

  82.   VARC1:=INTPART(VARB1*100)/100;

  83.   VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);

  84.   VARE1:=EMA(VARD1,9);

  85.   VAR131:=REF(VARE1,1);

  86.   VAR141:=VARE1;

  87.   VAR151:=VAR141-VAR131;

  88.   VAR161:=REF(VARD1,1);

  89.   VAR171:=VARD1;

  90.   VAR181:=VAR171-VAR161;

  91.   VAR191:=OPEN;

  92.   VAR1A1:=CLOSE;

  93.   DRAWTEXT(买点1>0,L-0.01,‘▲爱心出击’),colorred;

  94.   DRAWTEXT(买点2>0,L-0.01,‘▲爱心出击’),COLORFF00FF;

  95.   DRAWTEXT(卖点1>0,H+0.1,‘▼卖点’),COLOR00FF00;
复制代码

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   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

返回列表