OrderCheck() returns nothing in Strategy Tester
Explore the article: The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
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.
Hello Vladimir, I cannot see which section should be relevant for me apart from maybe the very first one using OrderCalcMargin and then compare the result to free margin available but that does still not clarify to me why OrderCheck() returns nothing?!
Oh dear, need to stop for today... I used TradeResult and not TradeCheckResult.... too obvious. Sorry for that!
Please take ready-made functions from the article The checks a trading robot must pass before publication in the Market
I also recommend using the trading engine from An attempt at developing an EA constructor
You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration Log in
If you do not have an account, please register
Hello, I want to check on margin before opening a trade and was thus using the OrderCheck() function as follows but it always returns zero for all values? Is this function not working in Strategy Tester?
Afterwards, I use the Buy function of CTrade to open the trade and this works, so "Lot_Sum" seems not to be the issue...