Is there a way to enter an order 2 seconds before the current bar closes on Strategy Builder? I have seen some limitations on Strategy Builder when I use the "exit long by stop order" because if in the same bar that I had entered the price goes directly my stop it is not excecuted until the bar that I had entered closes... and I think that if I can anticipate my entry 2sec before the bar closes the "exit long/short by stop order" could be inmmidiatly excecuted in the first bar to protect my position
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 enter an order 2 seconds before the current bar closes?
Collapse
X
-
Strategy Builder enter an order 2 seconds before the current bar closes?
Hi Ninjas,
Is there a way to enter an order 2 seconds before the current bar closes on Strategy Builder? I have seen some limitations on Strategy Builder when I use the "exit long by stop order" because if in the same bar that I had entered the price goes directly my stop it is not excecuted until the bar that I had entered closes... and I think that if I can anticipate my entry 2sec before the bar closes the "exit long/short by stop order" could be inmmidiatly excecuted in the first bar to protect my positionTags: None
-
Hello MarcoNT29,
Intra-bar granularity and TickReplay allows for submitting orders intra-bar (on the same bar).
http://ninjatrader.com/support/forum...063#post499063
https://ninjatrader.com/support/foru...377#post773377
This would be something complex, and likely not possible to achieve with the Strategy Builder.
The Strategy Builder cannot subtract seconds from a time object to calculate the time 2 seconds before the end of the bar.
The Strategy Builder also does not have the ability to use Threading.Timer or Threading.Task, which would likely be what you would want to use to trigger events at specific seconds. So this would likely require unlocking the script and coding by hand to acheive.
https://ninjatrader.com/support/foru...445#post496445
Below I am providing a link to a forum post with helpful information about getting started with C# and NinjaScript.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by CortexZenUSA, Today, 12:46 AM
|
0 responses
0 views
0 likes
|
Last Post
by CortexZenUSA
Today, 12:46 AM
|
||
Started by usazencortex, Today, 12:43 AM
|
0 responses
2 views
0 likes
|
Last Post
by usazencortex
Today, 12:43 AM
|
||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
168 responses
2,262 views
0 likes
|
Last Post
by sidlercom80
Today, 12:05 AM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
3 responses
10 views
0 likes
|
Last Post Yesterday, 11:58 PM | ||
Started by WeyldFalcon, 12-10-2020, 06:48 PM
|
14 responses
1,429 views
0 likes
|
Last Post
by Handclap0241
Yesterday, 10:43 PM
|
Comment