Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Weird strategy problem in NT7

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

    Weird strategy problem in NT7

    No idea what I've done wrong.
    I have a strategy that works fine in NT6.5. I copied it to NT7, made sure I wasn't using any code breaking code, and compiled no problem. Tried it on a chart and zilch, zero, nada, nothing. Tried it in the strategy analyzer and it works fine. It just doesn't work on a chart. I tried putting a Print statement as the first statement in the OnBarUpdate, and it doesn't appear in the output, like it's not even entering OnBarUpdate. There's nothing in the log.
    So I tried one of the built in strategies, SampleMACrossover. Still nothing. Copied it to a new strategy so I could modify it, and put a Print statement as the first statement in OnBarUpdate, and changed nothing else. The Print did not get executed. No MAs are displayed on the chart.

    What do I have to do to get a strategy to run in NT7?...

    Thanks,
    Ian

    BTW I have installed the latest version of NT7, 7.0.0.23. I am trying it on an ES 12-10 chart (S&P 500 emini).

    #2
    I know this is a simple answer, but are you sure you've enabled it? When you add a strategy in a chart you have to enable it by either setting enable to true in the strategy parameters box, or ticking/clicking enable on the strategies tab.

    Comment


      #3
      For Heaven's Sake!...

      Who's bright idea was that! It's not in NT6.5! Aaarrrrrrrggghhhhhh!!!!!

      But thanks, it's now working.

      Comment


        #4
        Hello,

        Thanks for the assist Dave. Yes the strategy does now need to be enabled. This is to emulate the same functionality of started strategies on the strategies tab and the two are now essentially the same.

        Let me know if I can be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by guillembm, Today, 11:25 AM
        0 responses
        2 views
        0 likes
        Last Post guillembm  
        Started by Mongo, Today, 11:05 AM
        2 responses
        5 views
        0 likes
        Last Post Mongo
        by Mongo
         
        Started by Tim-c, Today, 10:58 AM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by traderqz, Yesterday, 09:06 AM
        4 responses
        27 views
        0 likes
        Last Post traderqz  
        Started by traderqz, Today, 12:06 AM
        4 responses
        7 views
        0 likes
        Last Post traderqz  
        Working...
        X