![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
...For the non-programmer novice, it might make a difference...
)) That's a big word for me! I've been in forex for only 2.5 years... For all this time I earned 2 times: 1st time on demo (I increased my deposit 50 times), 2nd time on real (result is more modest)
I made only one conclusion: there is no discipline! I`ve decided to try to write something that would not depend on my emotions.)
And to help you think quicker, first run your expert through ALL TICS and the result here, please.
The test went through all the ticks anyway! You can see it in the pictures...
I seem to have messed up something in this code...
I keep getting an error in the log...
invalid ticket for OrderClose function
OrderClose error 4051
OrderSend error 130
This check to close goes before the opposite input signal...
if there is a buy signal
close the current sellAnd vice versa...
But the whole log fills up with an error...
It looks like it tries to close on every tick... But there are no conditions...
Where is OrderSelect?
Read about this function... converted to this variant:
I would have liked it if it wasn't for the quality of the modelling
search for it, you need to download and recalculate the history
What does it depend on?
Download minute candles (e.g. from Alpari) and test on minute candles.
You cannot test a 5 pips stop on 4-hour candlesticks.