Trailing stop for sell
- A sell order triggers with the Ask not the Bid.
- You have to think.
if (OrderOpenPrice() - Ask > WhenToTrail*_Point) { if (OrderStopLoss() > Ask+TrailAmount*_Point || OrderStopLoss() == 0) { // Check whether the trail
if (OrderOpenPrice() - Ask > WhenToTrail*_Point) { if (OrderStopLoss() > Ask+TrailAmount*_Point || OrderStopLoss() == 0) { // Check whether the trail
You agree to website policy and terms of use
Hi,
this code works perfectly for buy, but for sell how to do this with char "<", ">"
Here: