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

[同花顺指标] 同花顺顶底买卖主图指标公式

[同花顺指标] 同花顺顶底买卖主图指标公式

  1.   Y1: IF(DATE>=1080630,EMA(EMA(EMA(EMA(CLOSE,3),3),3),3),0),LINETHICK1,COLOR0000FF;

  2.   y2: IF(DATE>=1080630,EMA(REF(Y1,1),3),0),LINETHICK1,COLOR00FFFF;

  3.   w3: EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),LINETHICK1,COLORFF0000;

  4.   AA:= MA(WINNER(CLOSE*0.95)*100,3);

  5.   VAR83:= 1/WINNER(CLOSE);

  6.   VAR84:= (CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

  7.   VAR85:= 100-ABS(VAR84);

  8.   VAR86:= 3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

  9.   VAR87:= 3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

  10.   VAR88:= 100-VAR87;

  11.   VAR89:= 100-VAR86;

  12.   VAR90:= MA(WINNER(CLOSE*0.95)*100,3);

  13.   VAR91:= IF(VAR83>5,IF(VAR83<100,VAR83,VAR85-10),0);

  14.   VAR92:= MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;

  15.   VAR93:= 100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

  16.   VAR94:= 100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

  17.   VAR95:= VAR93<REF(VAR94,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);

  18.   VARA:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

  19.   VARB:= SMA(VARA,3,1);

  20.   VARC:= SMA(VARB,3,1);

  21.   探索:= EMA(3*VARB-2*VARC,3);

  22.   主力:= (-1)*(EMA(VAR89,1)-50)+50;

  23.   Z1:= MA(主力,9);

  24.   VARD:= (-1)*(EMA(VAR89,1)-50)+50;

  25.   VARE:= (-1)*(EMA(VAR89,12)-50)+50;

  26.   LCC:= REF(CLOSE,1);

  27.   RSI1:= SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100;

  28.   天涯:= IF(RSI1>93 OR AA>90 AND RSI1>80,80,100);

  29.   苦海:= EMA(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)),6);

  30.   ZS:= MA(探索,3);

  31.   ZM:= MA(MA(探索,3),3);

  32.   A11:= 3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1);

  33.   黑马线:= EMA(A11,5);

  34.   A12:= (黑马线-REF(黑马线,1))/REF(黑马线,1)*100;

  35.   A4:= (CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;

  36.   趋势线3:= MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2);

  37.   A5:= (HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;

  38.   N:= 3;

  39.   VAR1:= REF((LOW+OPEN+CLOSE+HIGH)/4,1);

  40.   VAR2:= SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);

  41.   VAR3:= EMA(VAR2,10);

  42.   VAR4:= LLV(LOW,33);

  43.   VAR5:= EMA(IF(LOW<=VAR4,VAR3,0),5);

  44.   VAR6:= REF(CLOSE,1);

  45.   VAR7:= SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;

  46.   VAR8:= LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;

  47.   VAR9:= CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;

  48.   VAR10:= VAR8 AND VAR9;

  49.   VAR11:= (2*CLOSE+HIGH+LOW)/4;

  50.   VAR12:= LLV(LOW,13);

  51.   VAR13:= HHV(HIGH,13);

  52.   VAR14:= LLV(LOW,1)=LLV(LOW,35) AND DATE<=1080701 AND CLOSE>=OPEN*1.04;

  53.   VAR15:= CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;

  54.   VAR16:= EMA((VAR11-VAR12)/(VAR13-VAR12)*100,13);

  55.   VAR17:= ((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;

  56.   VAR18:= 1/WINNER(CLOSE);

  57.   VAR19:= MA(CLOSE,13);

  58.   VAR20:= 100-ABS((CLOSE-VAR19)/VAR19*100);

  59.   VAR21:= LLV(LOW,75);

  60.   VAR22:= HHV(HIGH,75);

  61.   VAR23:= (VAR22-VAR21)/100;

  62.   VAR24:= SMA((CLOSE-VAR21)/VAR23,20,1);

  63.   VAR25:= SMA((OPEN-VAR21)/VAR23,20,1);

  64.   VAR26:= 3*VAR24-2*SMA(VAR24,15,1);

  65.   VAR27:= MA(HHV(HIGH,485),17);

  66.   VAR28:= MA(HHV(HIGH,222),17);

  67.   VAR29:= MA(HHV(HIGH,96),17);

  68.   VAR30:= MA(LLV(LOW,485),17);

  69.   VAR31:= MA(LLV(LOW,222),17);

  70.   VAR32:= MA(LLV(LOW,96),17);

  71.   VAR33:= MA((VAR30*0.96+VAR31*0.96+VAR32*0.96+VAR27*0.558+VAR28*0.558+VAR29*0.558)/6,17);

  72.   VAR34:= MA((VAR30*1.25+VAR31*1.23+VAR32*1.2+VAR27*0.55+VAR28*0.55+VAR29*0.65)/6,17);

  73.   VAR35:= MA((VAR30*1.3+VAR31*1.3+VAR32*1.3+VAR27*0.68+VAR28*0.68+VAR29*0.68)/6,17);

  74.   VAR36:= LLV(LOW,30);

  75.   VAR37:= MA((VAR33*3+VAR34*2+VAR35)/6*1.738,17);

  76.   VAR38:= IF(DATE》=1080630,VAR37,VAR37*DAY);

  77.   VAR39:= LOW;

  78.   VAR40:= REF(LOW,1);

  79.   VAR41:= SMA(ABS(VAR39-VAR40),3,1)/SMA(MAX(VAR39-VAR40,0),N,1)*100;

  80.   VAR42:= MA(IF(CLOSE*1.35<=VAR38,VAR41*10,VAR41/10),N);

  81.   VAR43:= HHV(VAR42,30);

  82.   VAR44:= 1080630;

  83.   VAR45:= 3*VAR25-2*SMA(VAR25,15,1);

  84.   VAR46:= 100-VAR45;

  85.   VAR47:= IF(900101<DATE AND DATE<99991232,1,0);

  86.   VAR49:= REF(LOW,1)*0.9;

  87.   VAR50:= LOW*0.9;

  88.   VAR51:= (VAR50*VOL+VAR49*(CAPITAL-VOL))/CAPITAL;

  89.   VAR52:= EMA(VAR51,30);

  90.   VAR53:= CLOSE-REF(CLOSE,1);

  91.   VAR54:= MAX(VAR53,0);

  92.   VAR55:= ABS(VAR53);

  93.   VAR56:= SMA(VAR54,7,1)/SMA(VAR55,7,1)*100;

  94.   VAR57:= SMA(VAR54,13,1)/SMA(VAR55,13,1)*100;

  95.   VAR58:= BARSCOUNT(CLOSE);

  96.   VAR59:= SMA(MAX(VAR53,0),6,1)/SMA(ABS(VAR53),6,1)*100;

  97.   VAR60:= (-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;

  98.   VAR61:= (CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;

  99.   VAR62:= SMA((SMA(VAR61,4,1)-50)*2,3,1);

  100.   VAR63:= (INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;

  101.   VAR64:= SMA(VAR63,4,1);

  102.   VAR65:= SMA(VAR64,3,1);

  103.   VAR66:= (HHV(HIGH,30)-CLOSE)/CLOSE*100;

  104.   VAR67:= VAR59<=25 AND VAR60<(-95) AND DATE<=1080701 AND VAR66>20 AND VAR62<(-30) AND VAR65<30 AND VAR52-CLOSE>=(-0.25) AND VAR56<22 AND VAR57<28 AND VAR58>50;

  105.   VAR68:= (HIGH+LOW+CLOSE)/3;

  106.   VAR69:= (VAR68-MA(VAR68,14))/(0.015*AVEDEV(VAR68,14));

  107.   VAR70:= (VAR68-MA(VAR68,70))/(0.015*AVEDEV(VAR68,70));

  108.   VAR71:= IF(VAR69>=150 AND VAR69<200 AND VAR70>=150 AND VAR70<200,10,0);

  109.   VAR72:= IF(VAR69<=(-150) AND VAR69>(-200) AND VAR70<=(-150) AND VAR70>(-200),-10,VAR71);

  110.   VAR73:= (CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;

  111.   VAR74:= REVERSE(VAR73);

  112.   VAR75:= SMA(VAR73,3,1);

  113.   绝佳买点:= IF(DATE<=VAR44,MA(IF(LOW<=VAR36,(VAR42+VAR43*2)/2,0),N),100000000);

  114.   跑:= FILTER(REF(黑马线,1)>90 AND A12<0 AND DATE<=1080631,7);

  115.   买线:= EMA(CLOSE,2);

  116.   卖线:= EMA(SLOPE(CLOSE,21)*20+CLOSE,42);

  117.   AA:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1);

  118.   BB:=2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);

  119.   位置:=(AA-BB);

  120.   抄底:= CROSS(位置,10) AND DATE>=1080631;

  121.   A1:= VOL=HHV(VOL,120);

  122.   A2:= CLOSE/OPEN>1.05;

  123.   TJ:= A1 AND A2;

  124.   龙:= VAR10;

  125.   买4:= VAR14;

  126.   AA1:= AMOUNT/VOL AND DATE>=1080701;

  127.   BB1:= LOW<AA1*0.9;

  128.   CC1:= (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;

  129.   DD1:= LOW<MA(CLOSE,5)*0.921;

  130.   EE1:= VOL<MA(VOL,5)*1.5;

  131.   FF1:= BB1 AND CC1 AND DD1 AND EE1;

  132.   买3:= FILTER(FF1,3) AND DATE>=1080630;

  133.   二十天最低跌幅:= HHV(CLOSE,20)/LLV(CLOSE,20);

  134.   RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

  135.   K:= SMA(RSV,3,1);

  136.   D:= SMA(K,3,1);

  137.   J:= 3*K-2*D;

  138.   X:= LLV(J,2)=LLV(J,8);

  139.   买1:= CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND 二十天最低跌幅>=1.3 AND DATE<=1080630;

  140.   长期底部:= LLV(HIGH,30);

  141.   上:= SMA(LOW,5,2)*0.96;

  142.   短期底部:= LLV(HIGH,30)*0.93;

  143.   LC:= REF(CLOSE,1);

  144.   RSI:= SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

  145.   大顶:= FILTER(VAR17>20 AND FILTER(VAR17<REF(VAR17,1),5) AND DATE<=1080701,5);

  146.   VAR76:= (OPEN+LOW+HIGH+CLOSE)/4;

  147.   MAN:= SMA(HIGH,21,2)*1.05;

  148.   短底2:= EMA(VAR76,5);

  149.   支撑:= HHV(短底2,60);

  150.   VAR77:= (HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;

  151.   VAR78:= SMA(VAR77,5,1);

  152.   VAR79:= SMA(VAR78,8,1);

  153.   VAR80:= CROSS(VAR78,VAR79) AND VAR79<5;

  154.   VAR81:= CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR80;

  155.   VAR82:= IF(CLOSE>1000,VAR80,VAR81);

  156.   黑马起步:= VAR82;

  157.   逃:= FILTER(HIGH>支撑 AND CLOSE<支撑 AND CLOSE/OPEN>0-1.06 AND CLOSE<OPEN,5) AND DATE<=1080701;

  158.   逃命:= 黑马起步>0 AND DATE>=1080531;

  159.   选逃:= FILTER(逃命 OR 逃 OR CROSS(84,RSI) OR 大顶,3) AND DATE>=1080701;

  160.   上线:= SMA(CLOSE,6.5,1);

  161.   下线:= SMA(CLOSE,13.5,1);

  162.   WW:= DATE>=1080531;

  163.   散户:= SMA(VAR75,3,1)*VAR47*WW;

  164.   新庄:= SMA(散户,3,1)*VAR47*WW;

  165.   高抛:= CROSS(新庄,散户) AND 新庄>75 AND DATE>=1080701;

  166.   买入= CROSS(买线,卖线) AND DATE>=1080701;

  167.   卖出:= CROSS(卖线,买线) AND DATE>=1080701;

  168.   大黑马:= CROSS(趋势线3,0) AND 黑马线<40 AND DATE>=1080701;

  169.   大买:= FILTER(绝佳买点>30000,5) AND DATE>=1080701;

  170.   选底:= FILTER(LOW<=上 AND HIGH>=短期底部 AND CLOSE>=长期底部 AND CLOSE/OPEN>1.03,3) AND DATE<=1080701;

  171.   稳赚10买:= FILTER(买3 OR 选底,3) AND COUNT(买1+买4+龙,3)>0 AND DATE>=1080701;

  172.   大资金进场:= VAR95 AND COUNT(VAR95,30)=1 AND DATE<=1080701;

  173.   STICKLINE(买线>=卖线 AND DATE>=1080701,LOW,HIGH,1,0),COLOR0000FF;

  174.   STICKLINE(买线>=卖线 AND DATE>=1080701,CLOSE,OPEN,4.5,0),COLOR0000AA;

  175.   STICKLINE(买线>=卖线 AND DATE>=1080701,CLOSE,OPEN,4,0),COLOR0000CC;

  176.   STICKLINE(买线>=卖线 AND DATE>=1080701,CLOSE,OPEN,3,0),COLOR0000CC;

  177.   STICKLINE(买线>=卖线 AND DATE>=1080701,CLOSE,OPEN,2,0),COLOR0000EE;

  178.   STICKLINE(买线<卖线 AND DATE>=1080701,CLOSE,OPEN,4.5,0),COLORAAAA00;

  179.   STICKLINE(买线<卖线 AND DATE>=1080701,CLOSE,OPEN,4,0),COLORBBBB00;

  180.   STICKLINE(买线<卖线 AND DATE>=1080701,CLOSE,OPEN,3,0),COLORCCCC00;

  181.   STICKLINE(买线<卖线 AND DATE>=1080701,CLOSE,OPEN,2,0),COLOREEEE00;

  182.   STICKLINE(买线<卖线 AND DATE>=1080701,LOW,HIGH,1,0),COLORFFFF00;

  183.   选买:= FILTER(买3 OR 选底,3) AND COUNT(买1+买4+龙,3)>0 AND DATE》=1080701;

  184.   STICKLINE(选买 AND DATE>=1080701,CLOSE,HHV(HIGH,90)*0.94,0.3,0),COLORFF0000;

  185.   DRAWTEXT(选买 AND DATE>=1080701,HHV(HIGH,90)*1,‘稳赚’),COLORFF0000;

  186.   DRAWTEXT(选买 AND DATE>=1080701,HHV(HIGH,90)*0.97,‘10%买’),COLORFF0000;

  187.   DRAWTEXT(选逃,HIGH*1.04,‘逃’),COLOR00FFFF;

  188.   DRAWTEXT(买入,LOW*0.996,‘买’),COLOR0000FF;

  189.   DRAWTEXT(卖出,HIGH*1,‘卖’),COLOR00FFFF;

  190.   DRAWTEXT(VAR95 AND COUNT(VAR95,30)=1,HIGH*1.095,‘大资金’),COLOR008000;

  191.   DRAWTEXT(VAR95 AND COUNT(VAR95,30)=1,HIGH*1.06,‘进场’),COLOR008000;

  192.   DRAWTEXT(跑,HIGH*1.02,‘跑’),COLOR00FFFF;

  193.   DRAWTEXT(大黑马,LOW*0.98,‘大黑马’),COLORFFFFFF;

  194.   DRAWTEXT(CROSS(新庄,散户) AND 新庄>75,HIGH*1.04,‘抛’),COLOR00FFFF;

  195.   DRAWTEXT(大买,LOW*0.96,‘大买’),COLOR0000FF;

  196.   DRAWTEXT(IF(选底,100,0),LOW*0.995,‘底’),COLOR399C71;

  197.   VAR330:= DATE>1080621 AND (DAY=1 OR DAY=16);

  198.   位置:= (CLOSE+REF(CLOSE,105))/2;
复制代码

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

返回列表