Thanks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Is it possible to make back-test trade happen at bar close?
Collapse
X
-
Is it possible to make back-test trade happen at bar close?
When running strategy backtesting on daily bars, NinjaScript is executed at bar close, and if a market order is placed by strategy, trade happens at open price of next bar. Is there any way to make trade happen at close price of this bar? Tradestation EasyLanguage supports this feature. I am not sure if NinjaTrader supports this....
Thanks.Tags: None
-
bourbonnais, correct per default that would be NT's expected behavior here, as we treat backtesting more conservatively, as we believe you can't trade on the bar that just closed >> timing wise you are already on the next bar, which is reflected by our backtester trading on the open then.
To simulate your condition you could though add intraday data to the daily bars strategy and execute for example a few mins before the close on this added series.
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 byBertrandNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johnMoss, 03-04-2024, 01:53 PM
|
3 responses
46 views
0 likes
|
Last Post
by AndyM
Today, 06:13 PM
|
||
Started by algospoke, Today, 06:01 PM
|
0 responses
8 views
0 likes
|
Last Post
by algospoke
Today, 06:01 PM
|
||
Started by cre8able, Today, 05:53 PM
|
0 responses
8 views
0 likes
|
Last Post
by cre8able
Today, 05:53 PM
|
||
Started by Wessel, 03-23-2024, 02:37 PM
|
3 responses
24 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
32 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
Comment