主力形态 通达信主图指标 源码 贴图
VAR1:=MA(CLOSE,240);VAR2:=IF(COUNT(VAR1 =REF(VAR1,1),50)=50,1,0);
VAR3:=IF(REF(VAR2,1)=1 AND VAR1 =REF(VAR1,1),1,0);
VAR4:=BARSLAST(VAR3);
VAR5:=ISLASTBAR;
VAR6:=BACKSET(VAR5=1,VAR4);
VAR7:=IF(VAR6 REF(VAR6,1),1,0);
VAR8:=BARSLAST(VAR7=1);
VAR9:=IF(VAR8=0,LLV(LOW,240),0);
VAR10:=BARSLAST(VAR9
VAR11:=CONST(REF(VAR9,VAR10));
箱底:DRAWLINE(LOW=VAR11,VAR11,VAR8=0,VAR11,1),COLOR00D9D9;
VAR12:=IF(VAR8=0,HHV(HIGH,240),0);
VAR13:=CONST(REF(VAR12,VAR10));
箱顶:DRAWLINE(LOW=VAR11,VAR13,VAR8=0,VAR13,1),COLOR00D9D9;
{www.9m8.cn 九毛八公式指标网}
VAR14:=BARSSINCEN(CROSS(CLOSE,箱顶),VAR8);
VAR15:=HHV(CLOSE,VAR14);
DRAWLINE(VAR14=0,VAR11,CLOSE,VAR11,0),COLORRED;
DRAWLINE(VAR14=0,VAR13,CLOSE,VAR13,0),COLORRED;
VAR16:=CONST(VAR11+(VAR13-VAR11)/2);
DRAWLINE(VAR8=0,VAR16,CLOSE,VAR16,0),COLORCYAN;
STICKLINE(VAR14=0,箱顶,箱底,0,0),COLORMAGENTA;
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA30:MA(CLOSE,30),COLORRED;
MA60:MA(CLOSE,60),COLORGREEN;