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

[同花顺指标] 同花顺借花敬佛主图指标公式

[同花顺指标] 同花顺借花敬佛主图指标公式

  1.   天线:MA(REF(HHV(CLOSE,30),1),2),LINETHICK2,COLOR80E9FF;

  2.   地线:MA(REF(LLV(CLOSE,30),1),2),LINETHICK2,COLOR669900;

  3.   SD:=HHV(HIGH,13)=HIGH AND HIGH》REF(HIGH,1);

  4.   SD1:=FILTER(SD,12);

  5.   SF:=LLV(LOW,13)=LOW AND LOW《REF(LOW,1);

  6.   SF1:=FILTER(SF,12);

  7.   TSS1:=BARSLAST(SD1);

  8.   箱顶:REF(HIGH,TSS1),LINETHICK0,colorred;

  9.   TSS2:=BARSLAST(SF1);

  10.   箱底:REF(LOW,TSS2),LINETHICK0,colorgreen;

  11.   STICKLINE(OPEN》=CLOSE,HIGH,LOW,0.5 ,0 ),COLOR00FF00;

  12.   STICKLINE(OPEN》=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR005500;

  13.   STICKLINE(OPEN》=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR006600;

  14.   STICKLINE(OPEN》=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR007700;

  15.   STICKLINE(OPEN》=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR009900;

  16.   STICKLINE(OPEN》=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00BB00;

  17.   STICKLINE(OPEN》=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00DD00;

  18.   STICKLINE(OPEN》=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;

  19.   STICKLINE(CLOSE》OPEN,HIGH,LOW,0.5,0 ),COLOR0000FF;

  20.   STICKLINE(CLOSE》OPEN,CLOSE,OPEN,7,0) ,COLOR000055;

  21.   STICKLINE(CLOSE》OPEN,CLOSE,OPEN,6,0) ,COLOR000066;

  22.   STICKLINE(CLOSE》OPEN,CLOSE,OPEN,5,0) ,COLOR000077;

  23.   STICKLINE(CLOSE》OPEN,CLOSE,OPEN,4,0) ,COLOR000099;

  24.   STICKLINE(CLOSE》OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;

  25.   STICKLINE(CLOSE》OPEN,CLOSE,OPEN,2,0) ,COLOR0000DD;

  26.   STICKLINE(CLOSE》OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;

  27.   AA1:=MA(CLOSE,20);

  28.   AA2:=(CLOSE 》 MA(CLOSE,5));

  29.   AA3:=(MA(CLOSE,5) 》 MA(CLOSE,10));

  30.   AA4:=(CLOSE 》 MA(CLOSE,10));

  31.   AA5:=(MA(CLOSE,5) 》 MA(CLOSE,20));

  32.   AA6:=(CLOSE 》 MA(CLOSE,20));

  33.   AA7:=REF(AA1,1);

  34.   AA8:=(AA1 》 AA7);

  35.   AAX:=(((((IF(AA2,10,(0 - 10)) + IF(AA3,10,(0 - 10))) + IF(AA4,10,(0 - 10))) + IF(AA5,10,(0 - 10))) + IF(AA6,10,(0 - 10))) + IF(AA8,10,(0 - 10)));

  36.   DSLX:=(CLOSE / INDEXC);

  37.   DSLX1:=MA(DSLX,5);

  38.   DSLX2:=MA(DSLX,10);

  39.   V1:=MA(VOL,5);

  40.   V2:=MA(VOL,10);

  41.   MA20:=MA(C,20);

  42.   MA40:=MA(C,40);

  43.   MA60:=MA(C,60);

  44.   BIAS:=(C-MA20)/MA20*100;

  45.   SHOPEN:=OPEN;

  46.   SHHIGH:=HIGH;

  47.   SHLOW:=LOW;

  48.   SHCLOSE:=CLOSE;

  49.   SHAMOUNT:=AMOUNT;

  50.   SHVOL:=VOL;

  51.   J12:=(HIGH - ((HIGH - LOW) / 3));

  52.   J23:=(LOW + ((HIGH - LOW) / 3));

  53.   T1:=(((IF((CLOSE = OPEN),1,0) + IF((CLOSE 》= J12),1,0)) + IF((CLOSE 《= J23),1,0)) 》 1);

  54.   T2:=((((CLOSE 》 J23) AND (CLOSE 《 J12)) AND (OPEN 》 J23)) AND (OPEN 《 J12));

  55.   T3:=((CLOSE 》= J12) AND (OPEN 《= J23));

  56.   T4:=(((OPEN 《= J12) AND (OPEN 》= J23)) AND (CLOSE 》 J12));

  57.   T5:=(((OPEN 《= J23) AND (CLOSE 《= J12)) AND (CLOSE 》= J23));

  58.   T6:=((CLOSE 《= J23) AND (OPEN 》= J12));

  59.   T7:=(((OPEN 《= J12) AND (OPEN 》= J23)) AND (CLOSE 《 J23));

  60.   T8:=(((OPEN 》= J12) AND (CLOSE 《= J12)) AND (CLOSE 》= J23));

  61.   T9:=(((SHAMOUNT / SHVOL) / 100) 》 REF(HIGH,1));

  62.   T10:=(((SHAMOUNT / SHVOL) / 100) 《 REF(LOW,1));

  63.   GP:=‘ ’;

  64.   IF ((O》C AND OPEN》MA(C,5) AND OPEN》MA(C,10) AND O》MA(C,20) AND CLOSE《MA(C,5) AND CLOSE《MA(C,10) AND CLOSE《MA(C,20)) OR (O《C AND OPEN《MA(C,5) AND OPEN《MA(C,10) AND O《MA(C,20) AND CLOSE》MA(C,5) AND CLOSE》MA(C,10) AND CLOSE》MA(C,20))) THEN GP:=GP+‘ 断头铡刀(出水芙蓉) -一根大阴(阳)线切断了三根均线 如果改变了其后均线的排列为空头(多头)排列 后势看空(多) 。’;

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

  66.   RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;

  67.   SELL1:=FILTER((CROSS(RSI1,88)),7);

  68.   SELL2:=(CROSS(88,RSI1));

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

  70.   K:=SMA(KDJ,3,1);

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

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

  73.   TYP:= (HIGH + LOW + CLOSE)/3;

  74.   CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

  75.   DRAWTEXT(SELL1,HIGH*1.02,‘预警→’),COLORCC33CC,ALIGN2,VALIGN2;

  76.   DRAWTEXT(SELL2,HIGH*1.02,‘▼’),COLORFFCC33,ALIGN1;

  77.   DRAWTEXT(SELL2 AND (K》80 OR CCI》160),HIGH*1.04,‘▼’),COLORCC6633,ALIGN1;

  78.   DRAWTEXT(SELL2 AND K》80 AND CCI》160,HIGH*1.06,‘▼’),COLORFF3300,ALIGN1;

  79.   VB1:=AMOUNT/V;

  80.   VB2:=L《VB1*0.9;

  81.   VB3:=(C-REF(C,1))/REF(C,1)*100》1.2;

  82.   VB4:=L《MA(C,5)*0.921;

  83.   VB5:=V《MA(V,5)*1.5;

  84.   VB6:=VB2 AND VB3 AND VB4 AND VB5;

  85.   VB7:=EMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,34)-LLV(LOW,27))*4,4)*25;

  86.   VB8:=IF((VB7《10),80,100);

  87.   VB9:=IF(K《20,10,0);

  88.   VB10:=LLV(J,2)=LLV(J,8);

  89.   VB11:=IF(CROSS(J,REF(J+0.01,1)) AND VB10 AND J《20,30,0);

  90.   DRAWTEXT(VB11 AND VB8=100 AND VB9=10,LOW*0.99,‘超跌’),COLOR8000FF;

  91.   VB12:=C-REF(C,1);

  92.   VB13:=100*EMA(EMA(VB12,6),6)/EMA(EMA(ABS(VB12),6),6);

  93.   VB14:=IF(LLV(VB13,2)=LLV(VB13,7) AND COUNT(VB13《0,2) AND CROSS(VB13,MA(VB13,2)),1,0);

  94.   VB15:=FILTER((VB14=1 OR VB6),7);

  95.   VB16:=FILTER(VB6,5);

  96.   VB17:=FILTER(VB14=1,5);

  97.   DRAWTEXT(VB17,LOW*0.97,‘短线’),COLOR66CCFF;

  98.   DRAWTEXT(VB16,LOW*0.98,‘考虑介入→’),COLOR336699,ALIGN2;

  99.   止损:=(LC*1.0035*97+0.2)/99.65;

  100.   VC:=(HIGH+LOW+OPEN+2*CLOSE)/5;

  101.   明日阻力:=2*VC-LOW;

  102.   明日支撑:=2*VC-HIGH;

  103.   明日突破:=VC+(HIGH-LOW);

  104.   明日反转:=VC-(HIGH-LOW);

  105.   今日阻力:=REF(明日阻力 , 1);

  106.   今日支撑:=REF(明日支撑 , 1);
复制代码

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

返回列表