通达信探头主图指标公式

VAR1:=SMA(SMA(SMA((MA(C,1)),2,1),2,1),2,1);
VAR2:=((CLOSE>REF(CLOSE,1)) AND (CLOSE>REF(CLOSE,2)));
VAR3:=((REF(VAR2,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR4:=((REF(VAR3,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR5:=((REF(VAR4,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR6:=((REF(VAR5,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR7:=((REF(VAR6,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR8:=((REF(VAR7,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR9:=((REF(VAR8,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR10:=((REF(VAR9,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR11:=((REF(VAR10,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR12:=((REF(VAR11,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR13:=((REF(VAR12,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR14:=((CLOSE< REF(CLOSE,1)) AND (CLOSE< REF(CLOSE,2)));
VAR15:=((REF(VAR14,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR16:=((REF(VAR15,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR17:=((REF(VAR16,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR18:=((REF(VAR17,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR19:=((REF(VAR18,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR20:=((REF(VAR19,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR21:=((REF(VAR20,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR22:=((REF(VAR21,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR23:=((REF(VAR22,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR24:=((REF(VAR23,1) AND (CLOSE<=REF(CLOSE,1))) AND (CLOSE>=REF(CLOSE,2)));
VAR25:=((REF(VAR24,1) AND (CLOSE>=REF(CLOSE,1))) AND (CLOSE<=REF(CLOSE,2)));
VAR26:=(((((VAR14 OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19);
VAR27:=(((VAR26 OR VAR20) OR VAR21) OR VAR22);
VAR28:=(REF((((VAR27 OR VAR23) OR VAR24) OR VAR25),1) AND VAR2);
VAR29:=((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6);
VAR30:=((((VAR29 OR VAR7) OR VAR8) OR VAR9) OR VAR10);
VAR31:=(REF((((VAR30 OR VAR11) OR VAR12) OR VAR13),1) AND VAR14);
VAR32:=(MA(((HIGH+LOW)/5),4))-(MA(((HIGH+LOW)/5),34));
VAR33:=BARSLAST((crOSS(VAR32,0)));
VAR34:=BARSLAST((CROSS(0,VAR32)));
VAR35:=REF((CROSS(VAR32,0)),1);
VAR36:=REF((CROSS(0,VAR32)),1);
VAR37:=BARSLAST(VAR35);
VAR38:=BARSLAST(VAR36);
VAR39:=IF((VAR37< VAR38),(REF((HHV(HIGH,2)),VAR37)),(REF((LLV(LOW,2)),VAR38)));
VAR40:=(((REF(CLOSE,1))<=(REF(VAR39,1))) AND (CLOSE>VAR39)) AND (VAR33< VAR34);
VAR41:=(((REF(CLOSE,1))>=(REF(VAR39,1))) AND (CLOSE< VAR39)) AND (VAR34< VAR33);
VAR42:=VAR40 AND ((COUNT(VAR40,VAR33))=1);
VAR43:=VAR41 AND ((COUNT(VAR41,VAR34))=1);
VAR44:=VAR42 AND ((REF(BARSLAST(VAR43),1))< (REF(BARSLAST(VAR42),1)));
VAR45:=MA((AMOUNT/(vol)),13);
VAR46:=(CLOSE-VAR45)/VAR45*100;
VAR47:=MA(C,22)+2*STD(CLOSE,22);
VAR48:=MA(C,22)-2*STD(CLOSE,22);
VAR58:=(C-VAR48)/(VAR47-VAR48);
VAR59:=(REF(VAR46,1)< -15 AND REF(VAR58,1)< 0 AND VAR46>REF(VAR46,1));
三抢买入:IF(LLV(MA(VAR1,8),3)< VAR1,LLV(MA(VAR1,8),3),VAR1);
IF(VAR1>(MA(VAR1,3)),VAR1,DRAWNULL),COLORRED,LINETHICK4;
IF(VAR1< (MA(VAR1,3)),VAR1,DRAWNULL),COLORGREEN,LINETHICK4;
三抢卖出:HHV(MA(VAR1,1),13),COLORYELLOW;
STICKLINE(三抢卖出>VAR1 AND VAR1>(MA(VAR1,3)),三抢卖出,VAR1,0,1),COLORLIBLUE;
STICKLINE(三抢卖出>(MA(VAR1,3)) AND VAR1< (MA(VAR1,3)),三抢卖出,(MA(VAR1,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(VAR28,O,O+(C-O)/3,4,0),COLOR1029FF;
STICKLINE(VAR28,O,O+(C-O)/3,3.4,0),COLOR1040FF;
STICKLINE(VAR28,O,O+(C-O)/3,2.8,0),COLOR1083FF;
STICKLINE(VAR28,O,O+(C-O)/3,2.2,0),COLOR10ABFF;
STICKLINE(VAR28,O,O+(C-O)/3,1.6,0),COLOR10D0FF;
STICKLINE(VAR28,O,O+(C-O)/3,1,0),COLOR10FFFF;
STICKLINE(VAR28,O,O+(C-O)/3,0.3,0),COLOR00FFFF;
STICKLINE(VAR31,O,O+(C-O)/3,4.3,0),COLOR009900;
STICKLINE(VAR31,O,O+(C-O)/3,3.2,0),COLOR00AA00;
STICKLINE(VAR31,O,O+(C-O)/3,2.4,0),COLOR00BB00;
STICKLINE(VAR31,O,O+(C-O)/3,1.7,0),COLOR00CC00;
STICKLINE(VAR31,O,O+(C-O)/3,1.1,0),COLOR00DD00;
STICKLINE(VAR31,O,O+(C-O)/3,0.5,0),COLOR00EE00;
STICKLINE(VAR31,O,O+(C-O)/3,0.2,0),COLOR00FF00;
DRAWTEXT(VAR44,(MA(VAR1,3))*0.99,'←探头'),COLORYELLOW;
STICKLINE(VAR59>0,C,O,4,0),COLORRED;
STICKLINE(VAR59>0,C,O,3.4,0),COLOR1029FF;
STICKLINE(VAR59>0,C,O,2.8,0),COLOR1040FF;
STICKLINE(VAR59>0,C,O,2.2,0),COLOR1083FF;
STICKLINE(VAR59>0,C,O,1.6,0),COLOR10ABFF;
STICKLINE(VAR59>0,C,O,1,0),COLOR10D0FF;
STICKLINE(VAR59>0,C,O,0.3,0),COLOR10FFFF;




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

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

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

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