Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding Daily SMA to Strategy

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

    #16
    Hello sagetrade,

    I am not able to reproduce this behavior using the sample script.

    Below is a video that demonstrates.


    I am connected to Kinetick for historical data. CQG/Continuum and Rithmic connections also have this historical data available.

    Who are you connected to for data? (This is indicated with a green dot in the Connections menu of the Control Center)

    Using the steps shown in the video are you getting different behavior than what is shown in the video?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      I try to reproduce what you did in the video. Many thanks for that!

      Im connected to IQfeed.
      Last edited by sagetrade; 05-04-2018, 12:50 PM.

      Comment


        #18
        Your indicator script works well, does exactly what I want my strategy to do. Still, im struggling a bit with what I need to change to make it work:

        - I have no IsOverlay and DisplayInDataBox set to true

        - I have no BarsRequiredtoPlot

        - I have not initialised the primary series only secondary one

        - I did not ensure that the secondary series has at least 1 bar

        - I obviously did the OnBarUpdate part differently

        - I do not understand the meaning of the browsable part at the end of your script

        As your script is an indicator and mine a strategy, where would you change to make mine work like yours?

        Comment


          #19
          Hello sagetrade,

          The code in the example indicator will work in either a strategy or an indicator.

          The primary series is the series of the chart.

          You will need to ensure each series has at least one bar.

          The [Browseable(false)] attribute is used to prevent a public variable from being loaded in the indicator parameters. (Series objects cannot be loaded in the parameters window. Plots will automatically be configurable in the Plots section)

          Below is a public link to the help guide.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          90 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          137 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          120 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          71 views
          0 likes
          Last Post PaulMohn  
          Working...
          X