- Is there any traders here who trade anything other than forex?
- EA not placing shorts in live trading.
- Questions from Beginners MQL5 MT5 MetaTrader 5
I am trying to figure out if there is a setting outside of the EA that I don't have turned on to allow shorting.
Don't bother. It doesn't exist in the Terminal.
As William Roeder alluded, it's your code.
Don't bother. It doesn't exist in the Terminal.
As William Roeder alluded, it's your code.
When I run the backtest, it takes shorts fine. When I run it live, it doesn't. There isn't any kind of option in MT5 to check on that?
You already got 2 times the answer. No there is no such option.
Fix your code or provide technical details if you need help (source code, logs, screenshots...).
If you are unwilling to share your code or the log output, then carefully read through your logs (Journal and Experts) and see what errors are reported for attempted short/sell trades.
If there is nothing in the logs, then there must be some filter in your EA code that prevents the short/sell trades from even being placed on a live account vs. the Strategy Tester. Add more debugging print statements to your code to find out the reason.
Also, check your symbol's contract specifications, and have your EA code do so too and adjust accordingly.
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
When I run the backtest, it takes shorts fine. When I run it live, it doesn't. There isn't any kind of option in MT5 to check on that?
If you are unwilling to share your code or the log output, then carefully read through your logs (Journal and Experts) and see what errors are reported for attempted short/sell trades.
If there is nothing in the logs, then there must be some filter in your EA code that prevents the short/sell trades from even being placed on a live account vs. the Strategy Tester. Add more debugging print statements to your code to find out the reason.
Also, check your symbol's contract specifications, and have your EA code do so too and adjust accordingly.
How is it that my backtests in the strategy tester execute short trades but forward live testing doesn't? Isn't that something in MT5 that isn't allowing short trades? The code should be fine if the backtester is showing short trades.
How id
How is it that my backtests in the strategy tester execute short trades but forward live testing doesn't? Isn't that something in MT5 that isn't allowing short trades? The code should be fine if the backtester is showing short trades.
The [unofficial] definition of insanity is doing the same thing over and over again, and expecting a different result.
There are differences in the ways in which certain code elements interact with the Tester versus with trading.
For a shot in the dark (in the absence of more information), see a related thread at:
Forum on trading, automated trading systems and testing trading strategies
EA running on MT5 strategy tester, but not on Real
Sergey Golubev, 2020.04.06 14:41
Is there some setting/parameter in the EA such as the following:
ECN (or STP) = false (or true).
?
Because if your account is ECN/STP account so EA should place the trade first, and stop loss/take profit should be placed as a second action by midifying already existing order.
----------------
There is something in the Rules of Using the Market Service
In case disputes arise that cannot be resolved directly between the Buyer and the Seller, either party may apply to the administration of the mql5.com through Service Desk in the User profile.
But no one will believe in you (because you are not expert in the EAs sorry). I mean: if you wtite to the service desk telling them that
"EA works on strategy tester with "every tick based on the real tick" and does not work on same account while trading" - no one on the service desk will trust your words.
Because it is technical forum.
You should prove that EA does not work.
----------------
Did you analyse the logs as advised? That is what proper troubleshooting is about!
No! In the previous MT4, yes, but that is no longer the case for MT5.
False! There can be several reasons, but the most common is differences in contract specifications. Did you read the contract specifications as advised?
In summary—you were given instructional advise which you have chosen to ignore, yet still insist on your own assumptions.
And given that you are not willing to present any details, such as logs and contract specifications, then there is not much more one can state. You will have to do your own troubleshooting and debugging.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use