My indicator tries to find chart patterns as they are printing on screen. I have included "Bars.BarsSinceSession" to mark the the first bar of the pattern and other key bars within the forming pattern as well. Would this property work if implemented in a backtest or does it only work in a real time setting?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bars.BarsSinceSession in a Backtest?
Collapse
X
-
Bars.BarsSinceSession in a Backtest?
Hello,
My indicator tries to find chart patterns as they are printing on screen. I have included "Bars.BarsSinceSession" to mark the the first bar of the pattern and other key bars within the forming pattern as well. Would this property work if implemented in a backtest or does it only work in a real time setting?Tags: None
-
Hello Don22Trader1,
Thanks for your post.
I have moved your post to the NinjaTrader 7 Indicator Development of the NinjaTrader Forums since you are asking about a NinjaTrader 7 item.
That said, Bars.BarsSinceSession will work for backtests in the Strategy Analyzer.
This could be seen by creating a simple strategy that prints out Bars.BarsSinceSession, running a backtest on the strategy in the Strategy Analyzer, and monitoring the Tools > Output window.
Let me know if I may assist further.Last edited by NinjaTrader_BrandonH; 09-09-2022, 11:25 AM.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
-
Hello Don22Trader1,
Thanks for your note.
NinjaTrader 7's BarsSinceSession is known as BarsSinceNewTradingDay in NinjaTrader 8.
This could be seen using our Code Breaking Changes help guide: https://ninjatrader.com/support/help...ng_changes.htm
See this help guide page for information about BarsSinceNewTradingDay and sample code: https://ninjatrader.com/support/help...tradingday.htm
Let me know if I may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
128 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
73 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
116 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
109 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
88 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment