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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        637 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        571 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X