一个好的指标运用的好坏 与炒股者心态有着极大的关系 突破箱顶 通达信指标 源码 贴图
{突破箱顶
公式描述: 突破}
VAR1:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN,VOL);
VAR3:=AMOUNT/VOL/100;
VAR9:=MA(CLOSE,5);
VAR10:=MA(CLOSE,6);
VAR11:=MA(CLOSE,7);
VAR12:=MA(CLOSE,8);
VAR13:=MA(CLOSE,9);
VAR14:=MA(CLOSE,10);
VAR15:=MA(CLOSE,11);
VAR16:=MA(CLOSE,12);
VAR17:=MA(CLOSE,13);
VAR18:=MA(CLOSE,14);
VAR19:=MA(CLOSE,15);
VAR20:=MA(CLOSE,16);
VAR21:=MA(CLOSE,17);
VAR22:=MA(CLOSE,18);
VAR23:=MA(CLOSE,19);
VAR24:=MA(CLOSE,20);
VAR25:=MA(CLOSE,21);
VAR26:=MA(CLOSE,22);
VAR27:=MA(CLOSE,23);
VAR28:=MA(CLOSE,24);
VAR29:=MA(CLOSE,25);
VAR30:=MA(CLOSE,26);
VAR31:=MA(CLOSE,27);
VAR32:=MA(CLOSE,28);
VAR33:=MA(CLOSE,29);
VAR34:=MA(CLOSE,30);
VAR35:=MA(CLOSE,31);
VAR36:=MAX(MAX(MAX(MAX(VAR9,VAR10),VAR11),VAR12),VAR13);
VAR37:=MAX(MAX(MAX(MAX(VAR14,VAR15),VAR16),VAR17),VAR18);
VAR38:=MAX(MAX(MAX(MAX(VAR19,VAR20),VAR21),VAR22),VAR23);
VAR39:=MAX(MAX(MAX(MAX(MAX(VAR24,VAR25),VAR26),VAR27),VAR28),VAR29);
VAR40:=MAX(MAX(MAX(MAX(MAX(VAR30,VAR31),VAR32),VAR33),VAR34),VAR35);
VAR41:=MAX(MAX(MAX(MAX(VAR36,VAR37),VAR38),VAR39),VAR40);
VAR42:=IF(VAR41=VAR9,5,IF(VAR41=VAR10,6,IF(VAR41=VAR11,7,IF(VAR41=VAR12,8,IF(VAR41=VAR13,9,IF(VAR41=VAR14,10,IF(VAR41=VAR15,11,IF(VAR41=VAR16,12,IF(VAR41=VAR17,13,IF(VAR41=VAR18,14,IF(VAR41=VAR19,15,IF(VAR41=VAR20,16,IF(VAR41=VAR21,17,IF(VAR41=VAR22,18,IF(VAR41=VAR23,19,IF(VAR41=VAR24,20,IF(VAR41=VAR25,21,IF(VAR41=VAR26,22,IF(VAR41=VAR27,23,IF(VAR41=VAR28,24,IF(VAR41=VAR29,25,DRAWNULL)))))))))))))))))))));
VAR43:=IF(VAR41=MA(CLOSE,VAR42),VAR42,IF(VAR41=VAR30,26,IF(VAR41=VAR31,27,IF(VAR41=VAR32,28,IF(VAR41=VAR33,29,IF(VAR41=VAR34,30,IF(VAR41=VAR35,31,32)))))));
VAR46:=VAR1=HHV(VAR1,VAR43);
VAR52:=CLOSE/OPEN=HHV(CLOSE/OPEN,VAR43);
VAR54:=REF(HHV(VAR3,7),BARSLAST(CROSS(VAR14,VAR9)));
VAR55:=REF(LLV(VAR3,7),BARSLAST(CROSS(VAR9,VAR14)));
VAR66:=LONGCROSS(CLOSE,CONST(VAR54),7) AND (LONGCROSS(HIGH,VAR54,5) OR REF(LONGCROSS(HIGH,VAR54,5),1));
VAR67:=VAR46 AND VAR52 OR LOW>REF(HIGH,1) OR EVERY(VAR1>REF(VAR1,1),3);
VAR68:=VAR55*1.15>VAR54 AND REF(CLOSE/LLV(CLOSE,5)<1.15,1);
突破:FILTER(CLOSE>OPEN AND COUNT(VAR66,2) AND COUNT(VAR67,2) AND VAR68 AND DYNAINFO(4)>0,1),COLORMAGENTA;