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

"Add" syntax

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

    "Add" syntax

    Hi, I added the following script to a futures strategy:

    protected override void Initialize()
    {
    Add("YM 09-20", PeriodType.Minute, 5);
    }

    Without going any further, why would the strategy stop working just with this script addition?

    #2
    Hello 2Look4me,

    Thanks for your post.

    If the script is not working, please check the "log" tab of the NinjaTrader control center for any error messages related to the indicator when you apply the indicator.

    Without consideration of a multi time frame in your script, it is likely that you may have a bar access type of error.

    To create a Multi-time frame script, you need to review this help guide section that covers all aspects of how this changes your script: https://ninjatrader.com/support/help...nstruments.htm
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ScottWalsh, Today, 06:52 PM
    3 responses
    18 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    17 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    1 view
    0 likes
    Last Post cre8able  
    Started by Haiasi, Today, 06:53 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottW, Today, 06:09 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X