Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

OnEach tick Indicator load

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

    OnEach tick Indicator load

    Hi

    As an example modify the SampleMACross strategy to load the Swing indicator on State.DataLoaed.

    AddChartIndicator(Swing(5));

    Configure the Statery to calculate OnEachTick and try to use the play back connection and NT will halt due to an exception. If you however add the indicator manually to the chart it will work, even more you can query it from the strategy. However I am interested to add it from the strategy, so how do I configure the indicator to work?

    #2
    Hello tolisss,

    I am not able to reproduce this behavior.
    Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


    Are you using NinjaTrader 8.0.9.0?

    Attached is an export of a test script.

    Are you getting errors when importing and enabling the test script?
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      yes there is an exception see attachment. In fact if I modify the swing OnBarUpdate so it is called OnBarClose instead of OnEachTick it works. But I prefer to leave those indicators along as you constantly update them
      Attached Files

      Comment


        #4
        and I am on latest version

        Comment


          #5
          Hello tolisss,

          Have you modified the original Swing indicator?

          If so, please run the NinjaTrader installer and run the repair to remove your alterations to system indicators and replace these with the original versions.

          Without modifying the test script, and without attaching VisualStudio, are you able to reproduce the behavior using the test script I have provided you using the steps in the video I have linked?
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CortexZenUSA, Today, 12:53 AM
          0 responses
          1 view
          0 likes
          Last Post CortexZenUSA  
          Started by CortexZenUSA, Today, 12:46 AM
          0 responses
          1 view
          0 likes
          Last Post CortexZenUSA  
          Started by usazencortex, Today, 12:43 AM
          0 responses
          5 views
          0 likes
          Last Post usazencortex  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          168 responses
          2,266 views
          0 likes
          Last Post sidlercom80  
          Started by Barry Milan, Yesterday, 10:35 PM
          3 responses
          13 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X