Thanks in advance.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
RealTime Strategy (COBC=false) combined with an Indicator with COBC=true
Collapse
X
-
Hello Sangui,
Accessing an Indicator from a Strategy with COBC set to false will make the Indicator calculated on COBC false as well. If you want to only access the values of the indicator from the previous bars close you may want to access the value of it 1 bar ago "[1]" to get the value of the previous bars close.
Note that if you need to see when the start of a new bar is you may use the FirstTickOfBar to be able to get when a new bar starts.
JCNinjaTrader Customer Service
-
Hello Sangui,
While, I am not sure how your logic is entering the orders on the Strategy side with COBC false, the only other method that I could think of that may help would be to have COBC set to true and then add a smaller period to your strategy. Here is a link to our references that goes over intrabar granularity that you may view.
You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this byJCNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|
.
Comment