Why is no one pointing out you don't need to copy the total rates, if your intention is to compare the last value only?
Looking at your code, it is important to note that the value 0.1 is different from pair to pair, for Fiber (EurUsd) that is about a 1000 pips while for gold,silver, JPY pairs you get the point.
Thanks for pointing it out I am currently focused on trading only stocks that have prices in the tens or less because of my account size. Thanks for the extra bit of code for my indicator. I'm really grateful.
BTW, your name sounds Nigerian. Could you be any chance be Nigerian? I noticed there weren't a lot of Nigerian programmers learning mql5
Yes as Keith has pointed out, you need to specify the symbol.
I don't usually use this approach, but I think as you are using a SymbolsTotal() loop, it looks like you need to get the symbol for each iteration of the loop and use that.
Here is an (incomplete) example to give you an idea.
Thanks for pointing it out I am currently focused on trading only stocks that have prices in the tens or less because of my account size. Thanks for the extra bit of code for my indicator. I'm really grateful.
BTW, your name sounds Nigerian. Could you be any chance be Nigerian? I noticed there weren't a lot of Nigerian programmers learning mql5
I believe you are still new here, you would get to meet many with time, clicking on the profile name (on mobile devices) or profile pic (on desktop), would take you to the user profile where you can confirm the persons location.
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.
Why is no one pointing out you don't need to copy the total rates, if your intention is to compare the last value only?
Looking at your code, it is important to note that the value 0.1 is different from pair to pair, for Fiber (EurUsd) that is about a 1000 pips while for gold,silver, JPY pairs you get the point.Yes I do @Thank-god Avwerosuoghene Odukudu
Thanks for pointing it out I am currently focused on trading only stocks that have prices in the tens or less because of my account size. Thanks for the extra bit of code for my indicator. I'm really grateful.
BTW, your name sounds Nigerian. Could you be any chance be Nigerian? I noticed there weren't a lot of Nigerian programmers learning mql5
Yes as Keith has pointed out, you need to specify the symbol.
I don't usually use this approach, but I think as you are using a SymbolsTotal() loop, it looks like you need to get the symbol for each iteration of the loop and use that.
Here is an (incomplete) example to give you an idea.
My indicator finally works @R4tna C
Couldn't have done this without you. My first project is complete!
I also wish to thank Keith Watford for being patient with me during this difficult learning process.
Lots of love,
Chioma
Yes I do @Thank-god Avwerosuoghene Odukudu
Thanks for pointing it out I am currently focused on trading only stocks that have prices in the tens or less because of my account size. Thanks for the extra bit of code for my indicator. I'm really grateful.
BTW, your name sounds Nigerian. Could you be any chance be Nigerian? I noticed there weren't a lot of Nigerian programmers learning mql5
I believe you are still new here, you would get to meet many with time, clicking on the profile name (on mobile devices) or profile pic (on desktop), would take you to the user profile where you can confirm the persons location.
Yes, I am Nigerian, Welcome to mql forum.