Problem Opening Trade
I have come across a problem when trying to open trade right away after closing a trade. However, i can see in logs telling trade did open but actual trade is not open. Here is my code for the condition;
I doubt there is timing delay between closing and opening of trade which does not allow to open new trade (SELL position in above case) right after closing the trade. Please help me on this.
From your code I don't see how any position can be opened at price 0 (default) (based on https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradesell). Also, you should check the returned error code, if any.
But, from your code alone, nobody knows exactly if your m_Trade is MQL5's CTrade anyway...
So if you need more specific help, show more of your codes... best if others can run it on their own terminal to diagnose it.
- www.mql5.com
Hi,
I have come across a problem when trying to open trade right away after closing a trade. However, i can see in logs telling trade did open but actual trade is not open. Here is my code for the condition;
I doubt there is timing delay between closing and opening of trade which does not allow to open new trade (SELL position in above case) right after closing the trade. Please help me on this.