Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
CalculateOnBarClose?
Collapse
X
-
Originally posted by kinkeadfx View PostI understand when using automated strategies with CalculateOnBarClose set to True that your orders are placed at the close of the bar, but when set to False where do the orders get filled?
EntriesPerDirection can limit that to only 1 order, so you don't send thousands of orders.
-
kinkeadfx, what orders types are you working with here? You are correct in understanding that with CalculateOnBarClose = true the OnBarUpdate() is only called when the bars are closed, that happens in NT when the open tick of the next bar was seen and this would be the first point you could trade at - so the open and closing tick are essentially the same.BertrandNinjaTrader Customer Service
Comment
-
Originally posted by kinkeadfx View PostWhen backtesting on Ninjatrader how does it calculate its results? I usually see where trades were placed at the open of the bar, can this be a result of CalculateOnBarClose set to False?
Comment
-
Originally posted by kinkeadfx View PostOk so when using CalculateOnBarClose set to False on automated strategies, do the indicators used in the strategy need to be set to False as well so that everything works right?BertrandNinjaTrader Customer Service
Comment
-
Originally posted by kinkeadfx View PostOk so when using CalculateOnBarClose set to False on automated strategies, do the indicators used in the strategy need to be set to False as well so that everything works right?
However, even if you do use a COBC directive in the indicator, you can always set COBC false for the indicator every time that you call the indicator from the strategy. After all, it is just a property of the indicator object. In that case, it is best to use a named instance. Heck, it is always best to use a named instance.
Comment
-
Originally posted by kinkeadfx View PostHow could i get my entry order to open on the first tick of the next bar after the strategy gives a signal?
Real time, that is the behavior if CalculateOnBarClose is true. In backtest, depending on how your signal is validated, it might work that way, or you might need to use a multi-timeframe script that uses a finer granularity barSeries, (1-tick or 1-range), to place orders that are triggered on the higher timeframe barSeries.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Perr0Grande, Today, 08:16 PM
|
0 responses
2 views
0 likes
|
Last Post
by Perr0Grande
Today, 08:16 PM
|
||
Started by elderan, Today, 08:03 PM
|
0 responses
5 views
0 likes
|
Last Post
by elderan
Today, 08:03 PM
|
||
Started by algospoke, Today, 06:40 PM
|
0 responses
10 views
0 likes
|
Last Post
by algospoke
Today, 06:40 PM
|
||
Started by maybeimnotrader, Today, 05:46 PM
|
0 responses
12 views
0 likes
|
Last Post Today, 05:46 PM | ||
Started by quantismo, Today, 05:13 PM
|
0 responses
7 views
0 likes
|
Last Post
by quantismo
Today, 05:13 PM
|
Comment