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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        57 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        78 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        41 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        101 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        61 views
        0 likes
        Last Post PaulMohn  
        Working...
        X