i do not see any spread in your calculation.
If you could help me for the same, it will be great !
suraj forex #:
If you could help me for the same, it will be great !
If you could help me for the same, it will be great !
the spreads are different with each broker and mt5 demo. Unless mt5 demo and your broker has 100% same spread, then, your entry prices WILL be different.
Use the Search feature of this website for term "Spread". and go to link "Documents" on the left hand side of desktop site. You will see examples of how to retrieve the spread in realtime.
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
suraj forex: I have made mathematical interpretation in one of my expert advisor, my issue is when I testing it on MT5 demo account the results are correctly placed, but when I testing it in my broker's demo account its suddenly changes it value, for example i bought 0.01 lot at 2750 and target it only 0.2 then it should come as a 2750.200, but in my brokers demo and real account its get changes, how can i solve this issue, I want same results as in MT5 demo and brokers demo, can anyone help? I am giving piece of code here,
Besides the previous posts suggestions, in essence your code should also read the contact specifications for the symbol and then adjust accordingly.
Implement the following in your code to make it more robust ...
The checks a trading robot must pass before publication in the Market
MetaQuotes, 2016.08.01 09:30
Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by developers in their technical indicators and trading robots. An also shows how to self-test a product before sending it to the Market.
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
Hi Guys,
I have made mathematical interpretation in one of my expert advisor, my issue is when I testing it on MT5 demo account the results are correctly placed, but when I testing it in my broker's demo account its suddenly changes it value, for example i bought 0.01 lot at 2750 and target it only 0.2 then it should come as a 2750.200, but in my brokers demo and real account its get changes, how can i solve this issue, I want same results as in MT5 demo and brokers demo, can anyone help? I am giving piece of code here,