|
本帖最後由 kilroy 於 11-8-20 09:34 PM 編輯
現在有另一個問題....
箭頭畫完後就會一直存在,
該怎麼消除哩??
lingin1204 發表於 11-8-20 08:27 PM
大大參考看看吧
- NewDay = Day() != Ref(Day(), -1);
- ExitTime = TimeNum()==134000;
- RangeHigh = ValueWhen(NewDay, H);
- RangeLow = ValueWhen(NewDay, L);
- Buy = H > RangeHigh AND TimeNum()<134000;
- Short = L < RangeLow AND TimeNum()<134000;
- Sell=Short OR exittime;
- Cover=Buy OR exittime;
- Buy=ExRem(Buy,Sell);
- Sell=ExRem(Sell,Buy);
- Short=ExRem(Short,Cover);
- Cover=ExRem(Cover,Short);
- PlotShapes(IIf(Buy,shapeHollowUpTriangle,shapeNone),colorRed,0,L,IIf(Buy,-30,-25));
- PlotShapes(IIf(Short,shapeDownTriangle,shapeNone),colorBlue,0,H,IIf(Short,-30,-25));
- PlotShapes(IIf(exittime,shapeSmallSquare,shapeNone),colorBrightGreen,0,H,IIf(Sell,-30,-25));
- plot(c,"",black,stylecandle);
複製代碼
上述的重點就是
exrem 這個部分 {:4_84:} |
|