I have attached a code example which seems to demonstrate that the above scenario is not possible in NT8. The indicator is intended only for demonstration purposes, so it only prints diagnostic messages to a NinjaScript Output window.
Steps to replicate:
Download the attached zip archive to a folder of your choice
Control Panel -> Tools -> Import -> NinjaScript Add-On (browse for the zip file and install)
Create a 1-minute chart (I tested with instrument "ES 03-17" using iqFeed)
It might be necessary to connect the chart to a live datafeed during regular trading hours
Control Panel -> New -> NinjaScript Output (in order to view diagnostic messages from the script)
Apply the attached Indicator to the chart
Observe the diagnostic reports which appear in the NinjaScript output window
Note that only the primary data series is able to print information about the status of key variables to the output window, but the code tries unsuccessfully to print information about the secondary data series which is based on 1-tick resolution. I think that the secondary data series never gets created but I am not sure if that is correct.
The attached code example is a slightly modified version of a very helpful working example from another thread:
The working example demonstrates that the secondary series can be the same or higher resolution, and if those conditions are met, I think there will always be a complete diagnostic report from both data series. In my version of the file, I commented out the working code in order to highlight the not working scenario in which the secondary data series is smaller.
Is there a limitation in NT8 which prevents the use of a 1-tick secondary data series on an existing 1-minute chart, or is there just a mistake somewhere in the attached code?
note of apology to website administrator: an earlier version of this post was originally started in a different category called "Indicator Development". I have now started an alternative version of the original post here in "Indicator Development" because it may apply to both categories, and the replies may not match. Here is a link to my first post:
Comment