[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 201
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
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.