Baroque Le'papil
2024-11-15 19:44:30
最佳回答
我也想改,费了好大劲,不成功, 这样,送你一个通达信大单净量 {p1 1 100 60 p2 1 100 5 p3 1 100 10} refline:0; k1:=if(close>=ref(close,1),high-open+close-low+close-ref(close,1),high-open+close-low); k2:=if(close<=ref(close,1),open-low+high-close+ref(close,1)-close,open-low+high-close); dt:=vol*k1/(k1+k2); kt:=vol-dt; 买量:=sum(dt,1); 卖量:=sum(kt,1); ddx:ema(买量-卖量,5)*vol/capital*100,colorstick,linethick2; stickline(ddx>0,0,ddx,3,0),color000088; stickline(ddx>0,0,ddx,2.5,0),color0000aa; stickline(ddx>0,0,ddx,1.5,0),color0000cc; stickline(ddx>0,0,ddx,1,0),color0000ee; stickline(ddx<0,0,ddx,3,0),color008800; stickline(ddx<0,0,ddx,2.5,0),color00aa00; stickline(ddx<0,0,ddx,1.5,0),color00cc00; stickline(ddx<0,0,ddx,1,0),color00ee00; ddx1:sma(ddx,3,1),colorffffff; ddx2:sma(ddx1,3,1),color00ffff; ddx3:ema(ddx2,5),colorff00ff; 预警:ddx>0 and ma(v,5)>ma(ma(v,5),5) and cross(ddx1,ddx2),linethick; 天:=count(ddx>0,5),colorred; drawtext(预警,ddx*1.06,'★'),linethick3,color00ffff; 20210311