Discussion of article "The checks a trading robot must pass before publication in the Market" - page 21
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
There was an error in the check_freezelevel.mq5 file code (line 140) missing the `if(!TP_check)` statement
In general, checking the TakeProfit and StopLoss levels with the minimum distance of SYMBOL_TRADE_STOPS_LEVEL taken into account looks as follows:
Bid - StopLoss >= SYMBOL_TRADE_STOPS_LEVEL
StopLoss - Ask >= SYMBOL_TRADE_STOPS_LEVEL
Can someone please explain the doubt that I'm having?
I understand that buying is done on the ask price, and selling is done on the bid price. I also can understand why we're using bid price to compare when buying for stop loss and take profit (because we'll be taking the opposite trade, selling, thus bid price).
However, I don't understand why the take profit doesn't also get compared to the ask price when buying, because if we only compare it to the bid price, user could potentially set the value higher than the bid price but lower than the ask price, which totally doesn't make any sense?
Thanks for your time.
Hi,
my EA is declined because the validation reports "no trading activities". As my EA is designed to trade at a specific news date I would need to know what historical data is used during EA validation. Then I coudl provide a default date for validation purposes.
Thanks in advance
Tim
It seems you did not read this topic before posting ...
It seems you did not read this topic before posting ...
It is still a limitation. Remove any and all limitations by setting the default parameter values to allow trading irrespective of any given date, symbol, or time-frame.
The EA will also need to read the contract specifications and adjust accordingly, or else it will fail the validation process.
I've checked many times in strategy tester and my EA works without any errors.
I coded a "Validation Test" EA that simply opens a position with minimum allowed volume and closes the position after a few seconds, but same error did happen.
Just read a comment regarding validation report saying "no trading activities". Must all EAs trade? My EA is just drawing stuffs on the chart, or it should had been an Indicator?
Anyone with this type of problem? In the Metaquotes DEMO account it works normally and in the test it did not pass validation.
test on EURUSD,H1 (netting) 2021.06.30 23:59:59 ExpertRemove() function called removed itself within OnDeinit removed itself on 99% of testing interval strategy tester report 1 total trades