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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
548 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment