通达信助你一臂之力合成副图公式源码
{合成副图}
多:=IF(C>REF(C,1),V,0)/100;
空:=IF(C<REF(C,1),V,0)/100;
正:EMA(MA(多,3),3);
负:EMA(MA(空,3),3)COLORGREEN,;
STICKLINE(正,正,0,3.2,0),COLOR000088;
STICKLINE(正,正,0,2.7,0),COLOR0000AA;
STICKLINE(正,正,0,2.1,0),COLOR0000BB;
STICKLINE(正,正,0,1.5,0),COLOR0000CC;
STICKLINE(正,正,0,0.9,0),COLOR0000DD;
STICKLINE(正,正,0,0.2,0),COLOR4444FF;
STICKLINE(正>0 AND 正>REF(正,1),正*4/5,0,3.2,0),COLOR0022FF;
STICKLINE(正>0 AND 正>REF(正,1),正*4/5,0,2.7,0),COLOR0044FF;
STICKLINE(正>0 AND 正>REF(正,1),正*4/5,0,2.1,0),COLOR0066FF;
STICKLINE(正>0 AND 正>REF(正,1),正*4/5,0,1.5,0),COLOR0088FF;
STICKLINE(正>0 AND 正>REF(正,1),正*4/5,0,0.9,0),COLOR00AAFF;
STICKLINE(正>0 AND 正>REF(正,1),正*4/5,0,0.2,0),COLOR00DDFF;
STICKLINE(正>0 AND 正>REF(正,1),正*2/5,0,3.2,0),COLOR00AAFF;
STICKLINE(正>0 AND 正>REF(正,1),正*2/5,0,2.7,0),COLOR00BBFF;
STICKLINE(正>0 AND 正>REF(正,1),正*2/5,0,2.1,0),COLOR00CCFF;
STICKLINE(正>0 AND 正>REF(正,1),正*2/5,0,1.5,0),COLOR00DDFF;
STICKLINE(正>0 AND 正>REF(正,1),正*2/5,0,0.9,0),COLOR00EEFF;
STICKLINE(正>0 AND 正>REF(正,1),正*2/5,0,0.2,0),COLOR99FFFF;
STICKLINE(正>0 AND 正<REF(正,1),正,0,3.2,0),COLOR006600;
STICKLINE(正>0 AND 正<REF(正,1),正,0,2.7,0),COLOR008800;
STICKLINE(正>0 AND 正<REF(正,1),正,0,2.1,0),COLOR00AA00;
STICKLINE(正>0 AND 正<REF(正,1),正,0,1.5,0),COLOR00CC00;
STICKLINE(正>0 AND 正<REF(正,1),正,0,0.9,0),COLOR00DD00;
STICKLINE(正>0 AND 正<REF(正,1),正,0,0.2,0),COLOR60FF00;
STICKLINE(正>0 AND 正<REF(正,1),正*4/5,0,3.2,0),COLOR440044;
STICKLINE(正>0 AND 正<REF(正,1),正*4/5,0,2.7,0),COLOR660066;
STICKLINE(正>0 AND 正<REF(正,1),正*4/5,0,2.1,0),COLOR880088;
STICKLINE(正>0 AND 正<REF(正,1),正*4/5,0,1.5,0),COLORAA00AA;
STICKLINE(正>0 AND 正<REF(正,1),正*4/5,0,0.9,0),COLORBB00BB;
STICKLINE(正>0 AND 正<REF(正,1),正*4/5,0,0.2,0),COLOREE00EE;
STICKLINE(正>0 AND 正<REF(正,1),正*2/5,0,3.2,0),COLORAA00AA;
STICKLINE(正>0 AND 正<REF(正,1),正*2/5,0,2.7,0),COLORBB00BB;
STICKLINE(正>0 AND 正<REF(正,1),正*2/5,0,2.1,0),COLORCC00CC;
STICKLINE(正>0 AND 正<REF(正,1),正*2/5,0,1.5,0),COLORDD00DD;
STICKLINE(正>0 AND 正<REF(正,1),正*2/5,0,0.9,0),COLOREE00EE;
STICKLINE(正>0 AND 正<REF(正,1),正*2/5,0,0.2,0),COLORFF66FF;
STICKLINE(负,负*(-1),0,3,0),COLOR66FF00;
STICKLINE(负,负*(-0.85),0,3,0),COLOR66DD00;
STICKLINE(负,负*(-0.75),0,3,0),COLOR66BB00;
STICKLINE(负,负*(-0.65),0,3,0),COLOR669900;
STICKLINE(负,负*(-0.55),0,3,0),COLOR667700;
STICKLINE(负,负*(-0.45),0,3,0),COLOR665500;
STICKLINE(负,负*(-0.35),0,3,0),COLOR663300;
IF(正>=REF(正,1),正,DRAWNULL),COLOR0000FF,LINETHICK4;
IF(负<=REF(负,1),负,DRAWNULL),COLOR0000FF,LINETHICK4;