Not opening buy trades
-
Good day,
My bot is working great except for one thing. It doesn't open buy trades. On backtesting it showed it open over 200 sell trades in a year compared to only 30 buy trades. Here is a shared copy to show my project if anyone can explain to me why it does this? https://fxdreema.com/shared/veAMScQ2b
-
@Berg3699 It's opening both buy and sell trades. I run your project in tester.

Maybe you did specify sell trades only on Tester EA settings?

Lot size on first sell trade looks a bit strange. You should use constants for input parameters and variables to store other values. You use the constant LotSize with the Modify variables block.
-
The lot size changes as your equity grows or shrinks. The bot opens up buy trades in the beginning and then afterwards nothing. I got it fixed should have changed the move away from open price with a - had it as positive. Now it opens up trades as it should thank you for the help. Maybe you can help. How can I stop the ea from open more than x amount of trades? In the back testing I found that the bot opens a bucket load of trades and it eats away at the drawdown. So much that my drawdown sits at 70-80% or even margin call.
-
@berg3699 You need to formulate the conditions you are expecting. For instance you can set a maximum of trades to beopened or a SL for all trades. It depends.