tzm:
The indicator contained in the attached file produces no output.
Hopefully i have clearly explained my problem(There are also some comments in the source code file attached...). Would you please kindly tell me what is wrong with my code? Thanks a lot for your time and consideration.
In the first line you are always getting the value for bar 0, in the second you are getting it for bar i . . . do you see the problem ? if you had used a more descriptive variable name than i you might have seen this issue earlier . . . . what is i meant to represent ?
The indicator contained in the attached file produces no output.
But if I changethe following code
to
then I can see the output. May I know what's the problem with my code?Hopefully i have clearly explained my problem(There are also some comments in the source code file attached...). Would you please kindly tell me what is wrong with my code? Thanks a lot for your time and consideration.
Dear Raptor,
The problem has beend successfully solved. I cannot be moresatisfied. Many thanks for your prompt and effective reply!
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
But if I changethe following code
to
then I can see the output. May I know what's the problem with my code?Hopefully i have clearly explained my problem(There are also some comments in the source code file attached...). Would you please kindly tell me what is wrong with my code? Thanks a lot for your time and consideration.