I quote
"Without curly braces, only the first statement following the loop definition is considered to belong to the loop body."- A guy from Stack Overflow
then,
What i want is to see the maximum value of the custom indicator in the last 20 candles and display it.
You are saying that you want to measure last 20 candles? but you are counting from candles 0 to 10. How would you expect to measure last 20 candles?
Maybe you should read more about:
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
I am stuck with a very weird problem. I have the following script:
What i want is to see the maximum value of the custom indicator in the last 20 candles and display it. But when I am running this code the Alert doesnt pop up.
When I do this:
The alert pops out. Can someone tell me what I am doing wrong?