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
?
All I'm saying is you need to supply the right parameters to your indicator.
ok ok ok. So I took your comment into consideration and I changed the indicator default values in code to match the ones I need. I even went as far as to make them 1's so they would match exactly. The count is correct, the numbers match. 4 buffers with 6 inputs. With the iCustom parameters, that's 3 prerequisites, 6 indie params, 1 buffer param and 1 chart param. Bringing a total count to 11 params for iCustom, which I have. Everything should be correct. Still get the same result of it not advancing. Other than that? I'm not quite sure what you mean by right parameters.
ok ok ok. So I took your comment into consideration and I changed the indicator default values in code to match the ones I need. I even went as far as to make them 1's so they would match exactly. The count is correct, the numbers match. 4 buffers with 6 inputs. With the iCustom parameters, that's 3 prerequisites, 6 indie params, 1 buffer param and 1 chart param. Bringing a total count to 11 params for iCustom, which I have. Everything should be correct. Still get the same result of it not advancing. Other than that? I'm not quite sure what you mean by right parameters.
No, I was referring to the default parameter values WITHIN the indicator - the file you attached. They are:
So you should have similar set in your Expert:
No, I was referring to the default parameter values WITHIN the indicator - the file you attached. They are:
So you should have similar set in your Expert:
Agreed, which I changed in the initial indicator. (making a duplicate of course) and I still have the same issue.
EDIT: I see my fault. Retesting now.
EDIT2: The fault I saw was not a fault. The code posted is correct.
Agreed, which I changed in the initial indicator. (making a duplicate of course) and I still have the same issue.
I don't know how you test. But when I started running at 0958, and waited until the next bar, I see different return values from the indicator:
My test code:
So the values DO get updated. As to how big the change should be, it really depends on how you tweak your parameters.
I don't know how you test. But when I started running at 0958, and waited until the next bar, I see different return values from the indicator:
My test code:
So the values DO get updated. As to how big the change should be, it really depends on how you tweak your parameters.
I just have print. Can you explain your code so I can learn what you did and why? You may have posted the answer I need but I don't understand how it works.
I just have print. Can you explain your code so I can learn what you did and why? You may have posted the answer I need but I don't understand how it works.
ok. So the green lines are added to make sure i retrieve the values from the indicator at the start of a new bar, rather than triggering it every tick (and wasting cpu time), when I'm only interested in bar 1. Blue and red lines are there for debugging purposes - blue to print the values retrieved from the indicator for checking, and red just in case the icustom call fails and i'll know why it fails. And lastly, yellow line to iterate through all 4 buffers that the indicator uses, just to satisfy my curiosity and prove that the indicator's return values do change.
Hope my explanations are useful.
ok. So the green lines are added to make sure i retrieve the values from the indicator at the start of a new bar, rather than triggering it every tick (and wasting cpu time), when I'm only interested in bar 1. Blue and red lines are there for debugging purposes - blue to print the values retrieved from the indicator for checking, and red just in case the icustom call fails and i'll know why it fails. And lastly, yellow line to iterate through all 4 buffers that the indicator uses, just to satisfy my curiosity and prove that the indicator's return values do change.
Hope my explanations are useful.
They do indeed. The green is actually all I needed to make it work but it all help in the sake of learning.
Now that is settled, could you help me on the other problem I have on my other post?
After some deep searching, it seems to be a common problem with no real solution given.
Now that is settled, could you help me on the other problem I have on my other post?
After some deep searching, it seems to be a common problem with no real solution given.
Do you mean https://www.mql5.com/en/forum/312141?
I did not follow up there because I didn't understand your requirements/comments... LOL
It's ok, I'll clarify over there...