Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting Chart Settings for Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Getting Chart Settings for Indicator

    Hi,

    I'd like to get chart settings, for example:

    if chart is candlestick or hollow candlestick.

    Also is it possible to collapse parameter sections in the indicator by default? e.g.

    [Gui.CategoryOrder("Line Parameters", 0)] Keep open by default
    [Gui.CategoryOrder("Color Parameters", 20)] Collapse/close by default

    Thank you for your help!​

    #2
    Hello davydhnz,

    Thanks for your post.

    There are no documented/supported means for getting the Chart Style settings in a script. However, you could set the ChartStyleType through code which you might find helpful. See the help guide page below.

    ChartStyleType: https://ninjatrader.com/support/help...tstyletype.htm

    In regard to collapsing parameter sections by default, there is not documented/supported methods or functions in the help guide to accomplish this. Below is a public link.
    https://ninjatrader.com/support/help...attributes.htm

    An expandable class may achieve your goal. Below is a link to an example.
    https://ninjatrader.com/support/foru...179#post510179

    Please 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


      #3
      I am trying to figure this out.
      I'd like to write in the State.DataLoaded body , a code such as.
      bool isCandleStick.= ChartStyleType == ChartStyleType.CandleStick;

      All instructions I find, like the one above tells me that I can set the ChartStyleType through code. But I don't want to force anything. I want to see on which type of chart I've been placing my indicator.
      Can you explain how can I go about this to get this information?
      Thank you.
      Gio



      Comment


        #4
        Hello Gio,

        As Brandon mentioned, unfortunately, there are no supported means to obtain the ChartStyle settings through code.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        72 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        39 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X