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

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 Waxavi, Today, 02:10 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by Kaledus, Today, 01:29 PM
          5 responses
          13 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by Waxavi, Today, 02:00 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by alifarahani, Today, 09:40 AM
          5 responses
          23 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by gentlebenthebear, Today, 01:30 AM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X