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 kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        30 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        24 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        30 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        27 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        141 views
        0 likes
        Last Post SalmaTrader  
        Working...
        X