Find attached "TestStrFiles.zip" = test strategy bug files, which defines a bare bones strategy and indicator based on an Added instrument.
Instructions:
- Load the NinjaScript files
- Add the TestStrBug Strategy to a 15-second ER2 09-08 chart with a session time of regular US trading hours (or any other 15 second bar chart with adequate data).
- One of two things will happen, either,
(a) the added indicator and its panel won't display (that's one bug), or
(b) the indicator appears, but displays the Added instrument (DJIA) incorrectly, with flat line segments corresponding to 1 minute closes (the second bug)
- In either case, the bug can be fixed by "Reload NinjaScript".
- If you can't get the indicator to display when the strategy is first loaded, add a dummy ConstantLines indicator first with Autoscale = false. That will allow you to see the second bug that distorts price display.
Thanks for looking into this. When I've gotten a little further along with my own stuff, I'll post some tips for working with multi-instrument strategies (from the perspective of someone who is using them more as multi-instrument indicators).


Comment