finally have working trailing stop however it has a small error
int TrailingStop=20; // if(Ask-OrderOpenPrice()>Point*TrailingStop)
For most instruments you will be trailing by 2 pips. Is that what you want?
int TrailingStop=20; // if(Ask-OrderOpenPrice()>Point*TrailingStop)
For most instruments you will be trailing by 2 pips. Is that what you want?
You agree to website policy and terms of use
for some reason most orders are modified correctly however some orders get modified straight into a loss, for example
trailing stop for order one: move negatively for 18 points. 2 points left
order 2 placed
order 2 trailingstop can only move 2 points but its just been placed.
Maybe im just misunderstanding.