Hi Guys, I am a newbie but have managed to code quite a few things of various complexity (after a lot of pain!). The latest indicator I'm trying to code seems to be stuck on the first step. I'm sure it's something very easy but I can't see what I'm doing wrong. Here is the code:
It's stuck on the line "ExtLowHigh[0]=high[0];" with the error, array out of range. I sized the array using "ArraySetAsSeries" so I'm not sure why it's out of range here.
Can anyone PLEASE help?
you have not sized the array.....
ArraySetAsSeries dictates array direction not it's size.
look at the documentation under Arrays
you have not sized the array.....
ArraySetAsSeries dictates array direction not it's size.
look at the documentation under Arrays
Thanks, I used the ArrayResize command and it seems to be working now.
I was taking the code from the stock Heinki Ashi indicator and that doesn't seem to size the array. Which is why I thought ArraySetAsSeries dictates direction and size.
I guess when working with buffers the resizing is done another way as the only change I made was not using the buffers.
Thanks a lot for your help!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi Guys, I am a newbie but have managed to code quite a few things of various complexity (after a lot of pain!). The latest indicator I'm trying to code seems to be stuck on the first step. I'm sure it's something very easy but I can't see what I'm doing wrong. Here is the code:
It's stuck on the line "ExtLowHigh[0]=high[0];" with the error, array out of range. I sized the array using "ArraySetAsSeries" so I'm not sure why it's out of range here.
Can anyone PLEASE help?