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
I trade manually strictly according to this algorithm and it works...seriously
2 days on 6 times recorded all profits except the 1st trade.
Naturally i will modify it but at first i think i will trade this way .
Plz help me to understand why it does not trade.
I don't know about you, but I have an hour difference.
It's not even aboutHour() .
It's that at the right time the EA just doesn't open trades... it passes by, but in the tester it goes strictly to profit (everything works)Check the checkboxes here: Top menu/Service/Settings/Advisors.
And then atTp=340, Sl=550 in the tester opened trades...
4 digits (if I am not mistaken) :)
Hang on, let me get this straight...
1. In the EA settings there must be a tick in front of "Allow EA to trade".
2. Check the leverage in the tester and in the real / demo, if the leverage in the tester is 500, and in real 100, the free margin may not be enough to open a deal.
3. Insert after OrderSend(); Print(GetLastError()) line;
Look at the log to see what error is occurring, and then use this as a jumping-off point. When debugging the Expert Advisor, insert this line in doubtful places, you can erase or comment it later.
And it may not always work in the tester, because you have strict conditions like Minute()==bM3 . But what if there is no such bar? In real life or on demo may easily lose connection.
Check the checkboxes here: Top menu/Service/Settings/Advisors.
It is allowed to trade by itself, it is checked
Are you saying that my code works for you?!
More:
Why do you compare OrdersTotal()==0 several times?It's enough to do it once.