Announcement

Collapse
No announcement yet.

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.
    https://www.screencast.com/t/GLT3hgDHvSlM

    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 jonfan45, Today, 06:06 PM
          0 responses
          8 views
          0 likes
          Last Post jonfan45  
          Started by rustyspring, Today, 05:15 PM
          0 responses
          10 views
          0 likes
          Last Post rustyspring  
          Started by xulu13, Today, 05:01 PM
          0 responses
          12 views
          0 likes
          Last Post xulu13
          by xulu13
           
          Started by Pbarrionuevo, Today, 04:30 PM
          0 responses
          9 views
          0 likes
          Last Post Pbarrionuevo  
          Started by vantojo, Today, 01:39 PM
          0 responses
          20 views
          0 likes
          Last Post vantojo
          by vantojo
           
          Working...
          X