Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7B11: Attaching strategy to chart, strategy timeframe works incorrectly

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

    NT7B11: Attaching strategy to chart, strategy timeframe works incorrectly

    This problem also existed in B10.

    1) I open a chart (say, CSCO 1-min), it opens and displays fine. The outer title (in the Windows 7 window title bar) says "CSCO (1 Min)" and the inner properties (the selectors at the top of the chart) are "CSCO" and "1 Min".

    2) I right-click on the chart and select "Strategies". At this point I have seen bizarre behavior begin. I have seen the outer chart title immediately change timeframe, i.e. "CSCO (30 Min)". But right now it's not doing that, it still says "CSCO (1 min)".

    3) I select a strategy (say, "SampleMACrossover") and click "new" which brings up the strategy properties. For "Input Series", the only option available is "CSCO (30 Min)".

    4) I click "Apply" or "OK", and the outer title changes to "CSCO (30 Min)", and that is indeed the timeframe the strategy operates with, even though the chart still displays 1-min bars, and even if the strategy is not enabled.

    I suspect there might be some kind of interference between my chart/strategy and the Initialize() routines in other strategies that i'm not using. I have other strategies that Add() attitional data series; I have gone through and commented out and recompiled any Add() statements in other strategies which refer to "30 min", but it hasn't helped. I have also seen the same problem, but with "30 day" instead of "30 min".

    FYI I have a couple of log error messages "Unable to restore strategy 'NinjaTrader.Strategy.xxxxx' with ID 'yyyyy'. Most likely this strategy is no longer supported by the custom assemblies." I have been ignoring them because I don't know how to get rid of them, and they appeared to not be doing any harm.

    -Kevin

    #2
    Kevin,

    Your issue would appear to stem from some Initialize() routines or maybe even elsewhere in your scripts. I suggest you completely migrate out all custom strategies and start from a base case that works. Then slowly add back strategies till you find the culprit.

    As far as your restoring strategy, I believe you can try resetting your database and that may help. A clean workspace may help as well.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh, thanks, I will try your suggestions. But I still think there is a problem in NT7 that needs addressing, because nothing I do in an unrelated strategy should change the timeframe of the strategy I'm working with.

      Comment


        #4
        kdoren,

        Things you do in Initialize() are all triggered when you bring up the strategies menu so you will need to isolate what is causing it. I would suspect you have some unsupported techniques being employed in there.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        82 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        43 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        56 views
        0 likes
        Last Post CarlTrading  
        Working...
        X