Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
check for candlestick bartype only
Collapse
X
-
check for candlestick bartype only
Hi, I want to print something when chart bartype is only candle stick, any other bartype should retrun false. I cannot find anything, to get a bool true, if chart bartype is only candlstick bar type. Please advise.Tags: None
-
Hello asmmbillah, thanks for your post.
This is not the BarsType, but the ChartStyle. We have an example on how to identify the chart style being used here:
Please let me know if I can assist any further.
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
-
thanks, but that does not give a clear idea about current chart style. I am going to create a bool for if statement. any advice?
Comment
-
Hello asmmbillah, thanks for the follow up.
My apologies, that was an oversight on my part. You can get the ChartStyle like this (within the OnStateChanged method):
else if (State == State.DataLoaded)
{
if(ChartBars != null)
{
Print(ChartBars.Properties.ChartStyle);
}
}
Please let me know if you have any further questions.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
578 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment