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

Strategy builder order resolution problen

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

    Strategy builder order resolution problen

    I am programming a strategy (using Strategy Builder) based on return to an EMA and I want the order to open at the price of the EMA but open at the close of the bar. How can I do it? I appreciate your help.

    #2
    Hello gbal16,

    Thank you for your post.

    Orders could be submitted once at the close of a bar by running your strategy with a Calculate mode of 'On Bar Close'. OnBarClose means the strategy's logic will process once at the close of the bar.

    Placing an order using the EMA indicator for the price value or your order, you could call EnterLongLimit() or EnterShortLimit() in the Conditions and Actions screen of the Strategy Builder and set the Limit Price value to use the EMA indicator. In the Conditions and Actions screen, select 'add' in the Actions section, open the Order Management folder, select 'Enter long position by a limit order' or 'Enter short position by a limit order', hover the mouse over the 'Limit price' field and click 'set', select the 'Indicators' folder, locate and select the EMA indicator, click OK, click OK again.

    See the help guide documentation below for more information about Calculate modes and using the Strategy Builder Conditions and Actions screen.
    Calculate - https://ninjatrader.com/support/help...?calculate.htm
    Strategy Builder - https://ninjatrader.com/support/help...gy_builder.htm

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    6 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Working...
    X