通达信【探头杀庄】主图 右侧交易指标 源码附图

CTA1:=SMA(SMA(SMA((MA(C,1)),2,1),2,1),2,1);
CTA2:=((CLOSE>REF(CLOSE,1)) AND (CLOSE>REF(CLOSE,2)));
CTA3:=((REF(CTA2,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA4:=((REF(CTA3,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA5:=((REF(CTA4,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA6:=((REF(CTA5,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA7:=((REF(CTA6,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA8:=((REF(CTA7,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA9:=((REF(CTA8,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA10:=((REF(CTA9,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA11:=((REF(CTA10,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA12:=((REF(CTA11,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA13:=((REF(CTA12,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA14:=((CLOSE< REF(CLOSE,1)) AND (CLOSE< REF(CLOSE,2)));
CTA15:=((REF(CTA14,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA16:=((REF(CTA15,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA17:=((REF(CTA16,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA18:=((REF(CTA17,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA19:=((REF(CTA18,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA20:=((REF(CTA19,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA21:=((REF(CTA20,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA22:=((REF(CTA21,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA23:=((REF(CTA22,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA24:=((REF(CTA23,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
CTA25:=((REF(CTA24,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
CTA26:=(((((CTA14 OR CTA15) OR CTA16) OR CTA17) OR CTA18) OR CTA19);
CTA27:=(((CTA26 OR CTA20) OR CTA21) OR CTA22);
CTA28:=(REF((((CTA27 OR CTA23) OR CTA24) OR CTA25),1) AND CTA2);
CTA29:=((((CTA2 OR CTA3) OR CTA4) OR CTA5) OR CTA6);
CTA30:=((((CTA29 OR CTA7) OR CTA8) OR CTA9) OR CTA10);
CTA31:=(REF((((CTA30 OR CTA11) OR CTA12) OR CTA13),1) AND CTA14);
CTA32:=(MA(((HIGH+LOW)/5),4))-(MA(((HIGH+LOW)/5),34));
CTA33:=BARSLAST((CROSS(CTA32,0)));
CTA34:=BARSLAST((CROSS(0,CTA32)));
CTA35:=REF((CROSS(CTA32,0)),1);
CTA36:=REF((CROSS(0,CTA32)),1);
CTA37:=BARSLAST(CTA35);
CTA38:=BARSLAST(CTA36);
CTA39:=IF((CTA37< CTA38),(REF((HHV(HIGH,2)),CTA37)),(REF((LLV(LOW,2)),CTA38)));
CTA40:=(((REF(CLOSE,1))<=(REF(CTA39,1))) AND (CLOSE>CTA39)) AND (CTA33< CTA34);
CTA41:=(((REF(CLOSE,1))>=(REF(CTA39,1))) AND (CLOSE< CTA39)) AND (CTA34< CTA33);
CTA42:=CTA40 AND ((COUNT(CTA40,CTA33))=1);
CTA43:=CTA41 AND ((COUNT(CTA41,CTA34))=1);
CTA44:=CTA42 AND ((REF(BARSLAST(CTA43),1))< (REF(BARSLAST(CTA42),1)));
CTA45:=MA((AMOUNT/(VOL)),13);
CTA46:=(CLOSE-CTA45)/CTA45*100;
CTA47:=MA(C,22)+2*STD(CLOSE,22);
CTA48:=MA(C,22)-2*STD(CLOSE,22);
CTA58:=(C-CTA48)/(CTA47-CTA48);
CTA59:=(REF(CTA46,1)< -15 AND REF(CTA58,1)< 0 AND CTA46>REF(CTA46,1));
三抢买入:IF(LLV(MA(CTA1,8),3)< CTA1,LLV(MA(CTA1,8),3),CTA1);
IF(CTA1>(MA(CTA1,3)),CTA1,DRAWNULL),COLORRED,LINETHICK4;
IF(CTA1< (MA(CTA1,3)),CTA1,DRAWNULL),COLORGREEN,LINETHICK4;
三抢卖出:HHV(MA(CTA1,1),13),COLORYELLOW;
STICKLINE(三抢卖出>CTA1 AND CTA1>(MA(CTA1,3)),三抢卖出,CTA1,0,1),COLORLIBLUE;
STICKLINE(三抢卖出>(MA(CTA1,3)) AND CTA1< (MA(CTA1,3)),三抢卖出,(MA(CTA1,3)),0,1),COLORBLUE;
STICKLINE((C>=O),OPEN,LOW,0,0),COLOR0726CA;
STICKLINE((C>=O),CLOSE,HIGH,0,0),COLOR0726CA;
STICKLINE((C< O),CLOSE,LOW,0,0),COLORDE9100;
STICKLINE((C< O),OPEN,HIGH,0,0),COLORDE9100;
STICKLINE((C< O),CLOSE,OPEN,4,0),COLORFF5B00;
STICKLINE((C< O),CLOSE,OPEN,3.4,0),COLORFF6C00;
STICKLINE((C< O),CLOSE,OPEN,2.8,0),COLORFF7B00;
STICKLINE((C< O),CLOSE,OPEN,2.2,0),COLORFF9C00;
STICKLINE((C< O),CLOSE,OPEN,1.6,0),COLORFFBE00;
STICKLINE((C< O),CLOSE,OPEN,1,0),COLORFFCC00;
STICKLINE((C< O),CLOSE,OPEN,0.3,0),COLORFFFF00;
STICKLINE((C>O),CLOSE,OPEN,4,0),COLOR070084;
STICKLINE((C>O),CLOSE,OPEN,3.4,0),COLOR0000A3;
STICKLINE((C>O),CLOSE,OPEN,2.8,0),COLOR0000B7;
STICKLINE((C>O),CLOSE,OPEN,2.2,0),COLOR0000CD;
STICKLINE((C>O),CLOSE,OPEN,1.6,0),COLOR0000E9;
STICKLINE((C>O),CLOSE,OPEN,1,0),COLOR0754E9;
STICKLINE((C>O),CLOSE,OPEN,0.5,0),COLOR076EF3;
STICKLINE((C>O),CLOSE,OPEN,0.2,0),COLOR077BF3;
STICKLINE(CTA28,O,O+(C-O)/3,4,0),COLOR1029FF;
STICKLINE(CTA28,O,O+(C-O)/3,3.4,0),COLOR1040FF;
STICKLINE(CTA28,O,O+(C-O)/3,2.8,0),COLOR1083FF;
STICKLINE(CTA28,O,O+(C-O)/3,2.2,0),COLOR10ABFF;
STICKLINE(CTA28,O,O+(C-O)/3,1.6,0),COLOR10D0FF;
STICKLINE(CTA28,O,O+(C-O)/3,1,0),COLOR10FFFF;
STICKLINE(CTA28,O,O+(C-O)/3,0.3,0),COLOR00FFFF;
STICKLINE(CTA31,O,O+(C-O)/3,4.3,0),COLOR009900;
STICKLINE(CTA31,O,O+(C-O)/3,3.2,0),COLOR00AA00;
STICKLINE(CTA31,O,O+(C-O)/3,2.4,0),COLOR00BB00;
STICKLINE(CTA31,O,O+(C-O)/3,1.7,0),COLOR00CC00;
STICKLINE(CTA31,O,O+(C-O)/3,1.1,0),COLOR00DD00;
STICKLINE(CTA31,O,O+(C-O)/3,0.5,0),COLOR00EE00;
STICKLINE(CTA31,O,O+(C-O)/3,0.2,0),COLOR00FF00;
DRAWTEXT(CTA44,(MA(CTA1,3))*0.99,'←探头'),COLORYELLOW;
STICKLINE(CTA59>0,C,O,4,0),COLORRED;
STICKLINE(CTA59>0,C,O,3.4,0),COLOR1029FF;
STICKLINE(CTA59>0,C,O,2.8,0),COLOR1040FF;
STICKLINE(CTA59>0,C,O,2.2,0),COLOR1083FF;
STICKLINE(CTA59>0,C,O,1.6,0),COLOR10ABFF;
STICKLINE(CTA59>0,C,O,1,0),COLOR10D0FF;
STICKLINE(CTA59>0,C,O,0.3,0),COLOR10FFFF;


来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图