Download MetaTrader 5

Array out of range - page 2

To add comments, please log in or register
Hyun Hwang
329
Hyun Hwang  
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 :)

12
To add comments, please log in or register