I am creating a panel that plots current values of my indicator on several different timeframes.
I am using the Add() as per NT advice. I am adding 3min, 10min, 30min, 90min, 360min, Day, Week, Month within the initialize section. I am using a 1 minute chart to display these.
I have no problem plotting the indicator values of anything that is based on minutes and days, however the Week and Month values are not accurate. They either plot 0 (zero) or a maximum value.
I have 2 questions:
1. I have set the 1 min chart to 60 days. Is this necessary or do all the necessary data download as much as they need irrespective of the 1min chart days loaded? In other words could I load 10 days on my 1min chart and still have the Month indicator plot correctly?
2. Is there a way that I can get my indicator to guarantee a certain number of bars for my week and Month data?
Please see the image. The daily and weekly bars are correct but not the monthly bar.
Thanks in advance.
Comment