|
gtxkie 發表於 13-4-4 14:32 
是2條線交叉後的結果
太強了, 賓果!合於交叉(cross above 或 under)條件的話,
把線寛放大為20,下一棒會自動回到原來寛度.
指標程式碼如下:
plot1(DMIplus(14),"dm+",red,red,2);
plot2(DMIminus(14),"dm-",green,green,2);
if DMIplus(14) cross above DMIminus(14) then setplotwidth(1,20);
if DMIplus(14) cross under DMIminus(14) then setplotwidth(2,20);
|
|