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 Entry
Collapse
X
-
Hello JTizz,
Thank you for your post.
To have your strategy enter a position when the current price touches the indicator line before the close of the bar, you would set your strategy to Calculate.OnEachTick or Calculate.OnPriceChange instead of Calculate.OnBarClose.
The condition in your strategy would check if the Close[0] price >= the indicator and then calls an action of EnterLong().
See this help guide documentation for more information.
Calculate - https://ninjatrader.com/support/help.../calculate.htm
Condition Builder - https://ninjatrader.com/support/help...on_builder.htm
Actions - https://ninjatrader.com/support/help...MarketPosition
Let us know if we may assist further.
Brandon H.NinjaTrader Customer Service
-
Hello JTizz,
Thank you for your note.
Are you running the strategy in the Strategy Analyzer, on a Chart window, or from the Strategies tab of the Control Center?
Are you running the strategy on the Playback Connection with Market Replay data or are you running the strategy on live data?
If you are running the strategy on a Chart window, are you referring to historical trades that are placed or realtime trades?
I look forward to assisting further.Brandon H.NinjaTrader Customer Service
Comment
-
Hello JTizz,
Thank you for your note.
Please send us a reduced copy of your script so we may further investigate this on our end. Note that a reduced copy refers to a copy of the script that contains the minimum amount of code needed to reproduce the issue. All other code is commented out or removed.
Below is a link to a video that demonstrates making a copy of a script.
https://www.youtube.com/watch?v=BA0W...utu.be&t=8m15s
Also, please provide us with the settings that you are using for your strategy. This includes the instrument, bar type, and bar interval you are enabling the strategy on. For example, using the ES 06-21 instrument with 1-minute bars.
I look forward to assisting further.Brandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cls71, Today, 04:45 AM
|
0 responses
1 view
0 likes
|
Last Post
by cls71
Today, 04:45 AM
|
||
Started by mjairg, 07-20-2023, 11:57 PM
|
3 responses
213 views
1 like
|
Last Post
by PaulMohn
Today, 04:22 AM
|
||
Started by TheWhiteDragon, 01-21-2019, 12:44 PM
|
4 responses
544 views
0 likes
|
Last Post
by PaulMohn
Today, 04:09 AM
|
||
Started by GLFX005, Today, 03:23 AM
|
0 responses
3 views
0 likes
|
Last Post
by GLFX005
Today, 03:23 AM
|
||
Started by XXtrader, Yesterday, 11:30 PM
|
2 responses
12 views
0 likes
|
Last Post
by XXtrader
Today, 03:07 AM
|
Comment