Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnBarUpDate not triggering

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

    OnBarUpDate not triggering

    My strategies stopped working. I made the following simple strategy test code below. When I turn on the strategy, I get a print line for every historical bar, but I get nothing in the live market.

    namespace NinjaTrader.Strategy
    {
    [Description("Enter the description of your strategy here")]
    public class a00000Test : Strategy
    {
    #region Variables
    #endregion

    protected override void Initialize()
    {
    CalculateOnBarClose = false;
    }

    protected override void OnBarUpdate()
    {
    double barLow = Low[0];
    double barHigh = High[0];

    Print("BarLow " +barLow +" BarHigh " +barHigh);
    }

    #region Properties
    #endregion
    }
    }

    #2
    Hello,

    This most likely means your not getting live data or the session template is not letting live data flow in.

    Please check a chart of the instrument you are trying to plot and then also please check the session template.

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      Originally posted by NinjaTrader_Brett View Post
      Hello,

      This most likely means your not getting live data or the session template is not letting live data flow in.

      Please check a chart of the instrument you are trying to plot and then also please check the session template.

      I look forward to assisting you further.
      The session template was the issue. I did not recently change the session template for the instrument, but I see that the session template went back to the default. I did upgrade to the latest NT version last week. Did the new NT version reset the session templates for my instruments?

      Comment


        #4
        Hello,

        Should not have happened without user permission/ manual process.

        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment


          #5
          Originally posted by NinjaTrader_Brett View Post
          Hello,

          Should not have happened without user permission/ manual process.

          Let me know if I can be of further assistance.
          I had a vendor DLL which required me to do the special install procedure when I upgraded to the latest NT version. I believe that procedure reset all my session templates. You may want to mention that users in the install notes, if it is not in there.

          Comment


            #6
            Hello,

            This may be the case with any third party code. In which case you will get these notifications/instructions from the third party vendor.
            BrettNinjaTrader Product Management

            Comment


              #7
              Originally posted by NinjaTrader_Brett View Post
              Hello,

              This may be the case with any third party code. In which case you will get these notifications/instructions from the third party vendor.
              No, what I am saying is because NT changed their obfuscation vendor, the newest NT 7 upgrades forces you to de-install NT, and re-install if you had 3rd party DLL. The process of de-installing and re-installing caused me to loose all my instrument session settings.

              Comment


                #8
                Hello,

                This is not the case. These settings would remain with uninstall and reinstall of NinjaTrader. If there are some special settings from your vendor however that require a new database or some sort of special procedures then I could see that.
                BrettNinjaTrader Product Management

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                647 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                367 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                108 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                571 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                573 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X