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
.
Hi GumRai, thank you so much for your help! :)
When I wrote it in here I've done that (stupid) declaration but I've declared the array in the EA like this:
(between external variables declaration and init function)
I've got the EA working well with this while loop (calling the indicator with iCustom):
And my intention was to "insert" the indicator in the EA.
Because the indicator is only to smooth the WPR indicator with a certain period.
My idea was to create an array called WPR[] with that for cycle and than use it with the iMAOnArray in the while cycle instead of calling the custom indicator.
I really don't understand why does it give me an endless loop this way and it does not with iCustom ! :(
.
.
Thank you for your answer WHRoeder!
I think that I've already understood the problem.
I will see if I can fix it. As I am a newbie now I need to hard think how to solve it.
I will be back! :)
Thank you all for your patience.
.
.
Finally I understood my problem!!!
I was so focused on the while cycle that I has not looking to the for cycle.. ;)
Hours looking for the obviously... ... It's hard to be newbie... LOL..
I need to know WPR_Smooth value in past values and I was doing it as I was only working with the current time..
Now, with a bigger WPR Array and with iMAOnArray counting all that array (zero value) it is finally working.
No need to have a signal indicator anymore! :)
.
Once again.. Thank you so much for your patience to help me! :)
.