Problem opening orders in MT5 for my EA
-
Problem opening orders in MT5 for my EA.
Hello fxDreema
I created a simplified version of an example of how I want my EA open an order, but not working.
Here is my project for analysis: http://fxdreema.com/shared/7dQZO9Tpd
Example based on my strategy topic/1883
I look back!
-
There is a big difference when you put blocks in this order "Once per.. -> Condition", or like this "Condition -> Once per...". Maybe the arrangement is not correct. Also, "Once per positions" may wants to have positions in order to work. I made it to not pass until the positions count is not enough. Buy the way "Time bomb" blocks are not suitable for backtesting, don't believe any backtest results using these blocks. This is because they work with time, but in backtesting (even with real ticks data) the time is not exactly the same as in the real world.
-
Actually I think that "Once per positions" is not suitable to be used before the general Buy now or Sell now. Once per positions means "When there are X positions, then pass once", but you need to have positions from somewhere.