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
OK, i thought that ihigh(null,null,12) will sum every high of the 12th past bars...
there must be a better way than high+1 + high+2 .... but i don't find it
Please read the documentation iHigh()
Use a loop to loop through the values you want and keep a running total as you go, then when the loop finishes you can divide the running total by the number of items . . . it's 5 lines of code . . . or less, you can do it in 3.
hi,
i'm still working on it but getting stuck here, doesn't it make sense?
That has TWO parts a SUM and a divide. Your non-compiling post tries to do it in one statement. Can't possibly work.
hi,
i'm still working on it but getting stuck here, doesn't it make sense?
How do you keep a running total ?
Total = Total + new value ?