I used the TradeStation stragegy to extract the attached data, and imported it into NT (ER2 since 1/2/2007 - oops, the forum doesn't allow attachments this big, file not attached). When I open an output window, create a chart with hourly bars and apply the attached strategy there is only one line printed to the output window from OnBarUpdate, for the last bar on the chart. It appears OnBarUpdate does not execute for the historical bars on the chart. There are no historic trades shown on the chart.
If I then comment out the Add() in Initialize, compile and reload NinjaScript, the output window shows lines for historical bars since 20070617. (I have 'days back' on the chart set to 17, changing 'days back' to 100 gets output lines starting with 20070326.) Historical trades are also displayed on the chart.
A couple of questions:
- How can I create a multi-time frame chart with hourly and daily bars, and get OnBarUpdate to execute for historical bars and historical trades displayed on the chart?
- Would it be possible to expand the size limit for zip file attachments? The current limit of 98k prevented attaching the data file.
Thanks,
Darryl

Comment