1) Cannot I just always use 'double' instead of 'int' for declaration?
2) Been using this to test start of today. The calculation starts at the new day, but the plot runs on from previous day. Do you have to reset the plot to new day? What do you use?
DateTime nowDate =DateTime.Now;
if (Time[0].Date == nowDate.Date)
{calculation;}
3) The data series I am using has the 256 default maxbarslookback. So if I begin calculating data at the start of the day, it doesn't appear until after 256 bars. How do I fix that?
Thanks
Comment