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 AttiM, 02-14-2024, 05:20 PM
    10 responses
    179 views
    0 likes
    Last Post jeronymite  
    Started by ghoul, Today, 06:02 PM
    0 responses
    7 views
    0 likes
    Last Post ghoul
    by ghoul
     
    Started by Barry Milan, Yesterday, 10:35 PM
    6 responses
    19 views
    0 likes
    Last Post Barry Milan  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Started by DJ888, 04-16-2024, 06:09 PM
    4 responses
    13 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X