大智慧四方力道源码附图
MA5:MA(CLOSE,5),ColorFFFfff,linethick1;
MA10:MA(CLOSE,10),Color00Ffff,linethicK1;
MA20:MA(CLOSE,20),Color00ff00,linethick1;
MA30:MA(CLOSE,30),ColorFF00ff,linethick1;
MA60:MA(CLOSE,60),Color0000ff,linethick1;
MA120:MA(CLOSE,120),ColorFFff00,linethick1;
angel:EMA(C,2),color000000;
devil:EMA(SLOPE(C,21)*20+C,42),pointdot,color000000;
买:=cross(angel,devil);
卖:=cross(devil,angel);
drawtext(买,LOW*0.99,'买入'),colorf00ff0,linethick2;
drawtext(卖,HIGH*1.08,'撤退'),color00Ffff,linethick2;
stickline(angel>=devil,low,high,0.1,0),colorred;
stickline(angel>=devil,close,open,4.5,0),color0000AA;
stickline(angel>=devil,close,open,3,0),color0000CC;
stickline(angel>=devil,close,open,2,0),color0000DD;
stickline(angel>=devil,close,open,1,0),color0000FF;
stickline(angel<DEVIL,CLOSE,OPEN,1,0),COLOREEEE00;
stickline(angel<DEVIL,CLOSE,OPEN,2,0),COLORDDDD00;
stickline(angel<DEVIL,CLOSE,OPEN,3,0),COLORCCCC00;
stickline(angel<DEVIL,CLOSE,OPEN,4.5,0),COLORAAAA00;
stickline(angel<DEVIL,LOW,HIGH,0.1,0),COLORFFFF00;
stickline(cross(angel,devil) or cross(devil,angel),open,close,3.5,0),coloryellow;