TG:(MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13)+MA(CLOSE,21))/4;
AA:HHV(TG,3);
BB:LLV(TG,3);
趋势线:MA(TG,N),coloryellow;
PARTLINE(趋势线,趋势线>REF(趋势线,1),RGB(255,0,0),趋势线[
FILLRGN(趋势线,REF(趋势线,1),趋势线>REF(趋势线,1),RGB(255,0,0),趋势线<=REF(趋势线,1),RGB(0,255,0) );
STICKLINE(BB >趋势线 ,BB,趋势线,1,1),COLOR0000AA;
STICKLINE(BB <趋势线 ,BB,趋势线,1,1),COLOR008800;
STICKLINE(BB-REF(BB,1)>0 ,AA,BB,7,0),color0000DD;
STICKLINE(BB-REF(BB,1)<0 ,BB,AA,7,0),color008800;
PARTLINE(AA,AA>REF(AA,1),RGB(255,0,0),AA][
PARTLINE(BB,BB>REF(BB,1),RGB(255,0,0),BB][
STICKLINE((OPEN >= CLOSE),HIGH,LOW,0,0),colorcyan;
STICKLINE((OPEN >= CLOSE),OPEN,CLOSE,8,0),colorcyan;
STICKLINE((OPEN < CLOSE),HIGH,LOW,0,0),colorred;
STICKLINE((OPEN < CLOSE),OPEN,CLOSE,6,1),colorred,LINETHICK3;
STICKLINE((OPEN < CLOSE),OPEN,CLOSE,6,0),coloryellow;
TG1:=(MA(CLOSE,2)+MA(CLOSE,3)+MA(CLOSE,4)+MA(CLOSE,5))/4;
AA1:HHV(TG1,3);
PARTLINE(AA1,AA1>REF(AA1,1),RGB(255,0,255),AA1][
趋势线1:=MA(TG,N1),coloryellow;
PARTLINE(趋势线1,趋势线1>REF(趋势线1,1),RGB(255,255,0),趋势线1][
FILLRGN(趋势线1,REF(趋势线1,2),趋势线1>REF(趋势线1,2),RGB(255,255,0),趋势线1<=REF(趋势线1,2),RGB(0,55,255) );
参数 N-----20 M--------60
趋势线设----采样点---线宽3 ]
九毛八公式指标,一个优质的公式指标平台!
九毛八公式指标 »
趋势线设:采样点
加入收藏