Array out of range - page 2

 
whroeder1:
  1. .
  2. When you compute this, don't you want to use the value of the bars with the same time? You are assuming that iTime("...",0, k) (the other pairs) is the same as Time[k] (the chart.) Not necessarily so. New bar on one chart doesn't mean Anything changes on other pairs.
  3. How can you compute a 20 period moving average when you don't have that many bars? You start at rates_total-1 (the oldest bar) and try to look back 20 bars. How can you compute a 20 period standard deviation, until you have 20 moving average values? Etc.


thank you 


figured it out now :)

Reason: