同花顺成本均线副图指标
源码
N1:=5; N2:=13; N3:=34;
VAR1:=AMOUNT/(100*VOL);
短线成本均线: MA(VAR1,N1);
中线成本均线: MA(VAR1,N2);
长线成本均线: MA(VAR1,N3);
无穷成本均线: DMA(CLOSE,VOL/CAPITAL);
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,9,0 ),COLORAAAAAA;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORBBBBBB;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.4,0 ),COLORCCCCCC;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.1,0 ),COLORDDDDDD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,9,0 ),COLOR6666CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6 ,0 ),COLOR7777DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4 ,0 ),COLOR8888EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.1 ,0 ),COLOR9999FF;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR1199FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR1199FF;
DRAWTEXT(CROSS(CLOSE,中线成本均线),(LOW * 0.98),'上中线');