Comrades, considering a very simple system... if the MACD is in the zone for no more than 5 minutes, then I open. For some reason trades don't open.... advise please...
How can I programmatically calculate how many currency pairs are involved in a trade?
I tried to search for open orders. I ran the Expert Advisor on 3 currency pairs. I got different results on each one:
on one - 3 (correct), on the second - 2, on the third - 1.
I tried it on 2 currency pairs:
on one - 2 (correct), on the second - 1. If it wasn't for the pattern of decline, I would have thought I had made a mistake
Or maybe just make a list of active instruments with the help of an EA. The approach is kind of complicated. There are simpler ways of doing things, aren't there?
skyjet: 12 errors, 12 warnings. I must be entering the lot calculation wrong?
There are no errors in the function itself, probably errors occur when trying to use it, but you don't show us that. Please post something that doesn't compile directly in a file and you won't need to guess.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thank you. Do Digits need to be changed to 4 or 5 depending on the DC?
You don't have to change it, you just have to take it depending on the currency. MarketInfo
Thank you. Do the Digits need to be changed to 4 or 5, depending on the DC?
Just leave the Digits, it'll just fit itself.
Hi
EA gives an error, if ((Bid-OrderOpenPrice(),Digits) >= -60) code 130, gives every new tick and really loads server...
if I change it to if ((pBid-NormalizeDouble(OrderOpenPrice(),Digits)) == -60) - doesn't work...
I need exactly >= and how to proceed?
Please help me figure it out.
Thanks in advance!!!
How can I programmatically calculate how many currency pairs are involved in a trade?
I tried to search for open orders. I ran the Expert Advisor on 3 currency pairs. I got different results on each one:
on one - 3 (correct), on the second - 2, on the third - 1.
I tried it on 2 currency pairs:
on one - 2 (correct), on the second - 1. If it wasn't for the pattern of decline, I would have thought I had made a mistake
After my changes it won't compile :(
What does it say?
Well, what does it say?
How can I programmatically calculate how many currency pairs are involved in a trade?
I tried to search for open orders. I ran the Expert Advisor on 3 currency pairs. I got different results on each one:
on one - 3 (correct), on the second - 2, on the third - 1.
I tried it on 2 currency pairs:
on one - 2 (correct), on the second - 1. If it wasn't for the pattern of decline, I would have thought I had made a mistake
Or maybe just make a list of active instruments with the help of an EA. The approach is kind of complicated. There are simpler ways of doing things, aren't there?
12 errors, 12 warnings. I must be entering the lot calculation wrong?
There are no errors in the function itself, probably errors occur when trying to use it, but you don't show us that. Please post something that doesn't compile directly in a file and you won't need to guess.