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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        29 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        17 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        9 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        15 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        18 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X