then inside indicator, how we detect whichever one is chosen for current Bars? `Bars.BarsPeriod.BarsPeriodType` only returns the period-type, but not MarketDataType. So, how to retrieve that MDT property?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to detect, if current Bars/Chart is "last/bid/ask" type?
Collapse
X
-
How to detect, if current Bars/Chart is "last/bid/ask" type?
When we choose (from Dataseries format window) the chart to be based on either Last/Bid/Ask,
then inside indicator, how we detect whichever one is chosen for current Bars? `Bars.BarsPeriod.BarsPeriodType` only returns the period-type, but not MarketDataType. So, how to retrieve that MDT property?
Tags: None
-
Hello ttodua,
Thanks for your post.
As stated by s.kinra and bltdavid, you could use BarsPeriod.MarketDataType to get the primary Bars object time frame (period type and interval).
See this help guide documentation for more information: https://ninjatrader.com/support/help...barsperiod.htm
Let us know if we 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
628 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
359 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
562 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment