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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          71 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          143 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          76 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          47 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          51 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X