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
And you should also learn how to act rationally in parallel with this task. The code in both mentioned functions is identical except for ONE line - this line filters by order type. Therefore, it would be reasonable to make the check by one function. At least, in this script.
P.S. Learning is difficult, but retraining is VERY IMPORTANT... ;)))
I agree :))
As long as TarasBY can't see it - that's how it is for two Kim functions ;))) But it's just for understanding how to arrange brackets. But I will certainly use one from TarasBY. Thanks a lot to him!
UFFFFF - I can go and polish something. :)
As long as TarasBY can't see it - that's how it is for two Kim functions ;))) But it's just for understanding how to arrange brackets. But I will certainly use one from TarasBY. Thanks a lot to him!
UFFFFF - I can go and polish something. :)
In your variant the order will not open as long as there is at least one order in the terminal (for any instrument). I don't think that's what you wanted! :)
If you **have* been doing anything at all... ;)))
I did, I did.
Can I add another return in your version?
And another question - what does the exclamation mark at the beginning mean? (!ExistOrders ()) Because when I removed it for the sake of curiosity - it works exactly the same.
And another question - what does the exclamation mark at the beginning mean? (!ExistOrders ())
https://docs.mql4.com/ru/basis/operations/bool
if(!a) Print("not 'a'");
But if we take it away, it will Print("'a' "); ?
That is, if (!ExistOrders(Symbol(), -1, magic)) - the order doesn't exist,
but if (ExistOrders (Symbol(), -1, magic)) - the order exists? Is it true ?
if you write
Yes
Can you be more specific?
Can you be more specific?