Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer - Issue Parameter Templates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy Analyzer - Issue Parameter Templates

    Hi!

    I have 4 issues with the Strategy Analyzer Templates:

    1. Bug: Template not loading when public Order or public Position is declared in strategy

    When I have a public Order as variable in my strategy, the saved template in the strategy analyzer for that strategy doesn't load (both for default and other custom templates). The same applies to a public Position variable. I guess this applies to all Ninjascript objects. Are you able to reproduce?

    2. Bug: The chosen instrument is sometimes saved in the template and sometimes not.

    I didn't figure out what the reason is for the different behavior. However, I want the instrument to be saved in the template every time. Is it possible to do that?

    3. After rolling over futures contracts in NT the saved instrument in the strategy parameter template should also be updated automatically.

    Its so annoying having to do that manually every time an instrument rollover occurs. Can you please implement this in NT's rollover function? It makes no sense to offer a rollover function but not update the instrument in the templates.

    4. The Bar Width in the Chart after running the backtest in the Strategy Analyzer is always extremely wide as default even though I saved the template with a much lower bar width. I always have to manually make reduce the width after running the backtest. I don't know what causes this. If you have any suggestion what I can do while keeping all my data I would be very grateful!

    Thanks in advance!
    Last edited by KirkHammett; 01-06-2023, 03:44 PM.

    #2
    Hello KirkHammett,

    1). That's expected, you can't have those type of objects as user inputs or serialize them. If you need to have that public you need to make sure to mark it with [XmlIgnore, Browsable(false)]

    2). The instrument should not be saved as part of a template, the template is for the general analyzer settings but not the instrument.

    3). the instrument should not be selected when opening the analyzer windows or loading new templates. If you had previously selected an instrument it should remain selected while the window is open.

    4). I would be unaware of what would change that aside from something custom you have imported or templates. A default template can be used to affect the chart in the backtest so using the right click -> Templates from that view would be the expected way to manage that charts settings.





    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    91 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    69 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X