Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Buy at the Close Sell at the Open
Collapse
X
-
Hello TommyTFC,
Welseome to the NinjaTrader Support Forums!
The easiest method to accomplish this would be to use Time filters that would be based on your Local PC clock. You may see the following thread for more information and a reference sample on this.
http://www.ninjatrader.com/support/f...ead.php?t=3226
Also, you may use the FirstBarOfSession to for the open, but there is no supported LastBarOfSession.
http://www.ninjatrader.com/support/h...rofsession.htm
Let us know if we can be of further assistance.JCNinjaTrader Customer Service
-
Hello TommyTFC,
If you are using a Day Period Type with backtesting and you would like intraday fills, you may want to program intrabar granularity in your strategy. When backtesting CalculateOnBarClose(COBC) is always going to be set to true. You may see the following thread that goes over how to add intrabar granularity.
http://www.ninjatrader.com/support/f...ead.php?t=6652JCNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
56 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment