同花顺锦绣中华副图指标
源码
持仓线:MA(HIGH,21);
空仓线:MA(LOW,21);
操盘趋势:MA(CLOSE,3);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,60);
MACD:=2*(DIFF-DEA);
TYP := (HIGH + LOW + CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
STICKLINE( C>=O,O ,O+(C-O)*1.0,5 ,0 ),COLOR0000ff;
STICKLINE( C>=O,O ,O+(C-O)*0.75,5 ,0 ),COLOR0066ff;
STICKLINE( C>=O,O ,O+(C-O)*0.5,5 ,0 ),COLOR0099ff;
STICKLINE( C>=O,O ,O+(C-O)*0.25,5 ,0 ),COLOR00ccff;
STICKLINE( C<O,O ,O+(C-O)*1.0,5 ,0 ),COLORffff66;
STICKLINE( C<O,O ,O+(C-O)*0.75,5 ,0 ),COLORff9966;
STICKLINE( C<O,O ,O+(C-O)*0.5,5 ,0 ),COLORff6666;
STICKLINE( C<O,O ,O+(C-O)*0.25,5 ,0 ),COLORcc0033;
STICKLINE(MA(C,5)>=MA(C,60) AND MA(C,60)>=MA(C,10),MA(C,10),MA(C,60),4,0),colorblue;
STICKLINE(MA(C,5)>=MA(C,10) AND MA(C,5)<=MA(C,60),MA(C,10),MA(C,5),4,0),colorblue;
STICKLINE(MA(C,20)>=MA(C,60) AND MA(C,60)>=MA(C,40),MA(C,40),MA(C,60),4,0),colorff00ff;
STICKLINE(MA(C,20)>=MA(C,40) AND MA(C,20)<MA(C,60),MA(C,40),MA(C,20),4,0),colorff00ff;
STICKLINE(MA(C,5)>=MA(C,20) AND MA(C,20)>=MA(C,10),MA(C,10),MA(C,20),4,0),colorgreen;
STICKLINE(MA(C,5)>=MA(C,10) AND MA(C,5)<MA(C,20),MA(C,10),MA(C,5),4,0),colorgreen;