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!
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
NinjaTrader
Strategy builder order resolution problen
Collapse
X
-
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. -
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, 04-17-2024, 06:40 PM
|
6 responses
48 views
0 likes
|
Last Post
by algospoke
Today, 06:18 PM
|
||
Started by arvidvanstaey, Today, 02:19 PM
|
4 responses
11 views
0 likes
|
Last Post Today, 04:08 PM | ||
Started by samish18, 04-17-2024, 08:57 AM
|
16 responses
61 views
0 likes
|
Last Post
by samish18
Today, 03:30 PM
|
||
Started by jordanq2, Today, 03:10 PM
|
2 responses
9 views
0 likes
|
Last Post
by jordanq2
Today, 03:23 PM
|
||
Started by traderqz, Today, 12:06 AM
|
10 responses
19 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
Comment