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

higher time frame condition, lower time frame entries

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

    higher time frame condition, lower time frame entries

    Hi,
    do you have any examples? For instance if x is true on the 15 minute chart, buy the next 3 5 minute bars?
    thanks,
    David

    #2
    Hello David,

    Thanks for your post.

    Say you are running the strategy on a 15-minute chart. This would be the primary series that the script is running on.

    You could add a 5-minute data series to your script using the AddDataSeries() method. Orders could then be submitted to that added series when your condition on the primary series becomes true.

    The reference sample from our help guide linked below demonstrates submitting orders to an added data series when a condition on the primary series is true: https://ninjatrader.com/support/help...ipt_strate.htm

    It is also important to review this help guide page to gain a full understanding about working with Multi-Timeframe/Mult-Instrument NinjaScripts: https://ninjatrader.com/support/help...nstruments.htm

    Let me know if I may assist you further.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jonafare, 12-06-2012, 03:48 PM
    5 responses
    3,986 views
    0 likes
    Last Post rene69851  
    Started by Fitspressorest, Today, 01:38 PM
    0 responses
    2 views
    0 likes
    Last Post Fitspressorest  
    Started by Jonker, Today, 01:19 PM
    0 responses
    2 views
    0 likes
    Last Post Jonker
    by Jonker
     
    Started by futtrader, Today, 01:16 PM
    0 responses
    8 views
    0 likes
    Last Post futtrader  
    Started by Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,792 views
    0 likes
    Last Post aligator  
    Working...
    X