Just one warning: using growing unchecked lots can clear your account very quickly. Think about it well before you use it in real.
Printable View
Just one warning: using growing unchecked lots can clear your account very quickly. Think about it well before you use it in real.
If you're looking for stability, you better not use exponential duplication. Use arithmetic progression. More predictable and less volatile.
It's amazing how something as simple as increasing lots can be complicated by both code errors. Welcome to the real world of automatic trading.
I used a similar logic, but with OrderHistoryTotal(
Do not forget to close old operations or at least verify that they belong to the same magic number. If not, your EA will act like crazy.
I recommend printing every EA decision on the log: current lot, winning sequence, calculated SL... that will give you key clues.
I left FXPro Quant after a week. Very limited for anything moderately advanced. Better learn to encode directly.