So this code opens up a trade based on risk I set on EA options. Say I set the acc size to 1000 and risk to 1. That means the EA will risk 100$. SL should be at -100$. and TP is 1:1 so at +100$- lot size.will be calculated automatically. It works perfectly in Strategy tester. But on live the SL would be at like -2$ and completely wrong Lot size and TP is far away but still +100$. So anyone knows why is this happening.
The Fundamentals of Testing in MetaTrader 5
- www.mql5.com
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.
- How to calculate lot based on account currency in Metatrader4
- EA calculated Lot size is wrong, but settings and signal is correct?
- MT4 Strategy Tester
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register