Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript access to Indicator dialog options?

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

    NinjaScript access to Indicator dialog options?

    Hello Support & Forum,

    I would like to use the same indicator for both the price panel and a subpanel. I am changing the color of plots based on which panel they are plotted in. Those meant for the subpanel would be transparent in the price panel and those meant for the price panel would be transparent in the subpanel. I have looked at "IsOverLay" and "DrawOnPricePanel" but it appears their state does not change if you select a different panel than the price panel in the Indicator's properties dialog visual options. Is there another object to conditionally change plot color on depending on if it meant for the price panel or not?

    Could there be a cashing issue going on? All the Indicator's parameters are identical making the signatures identical. The only difference being the Indicator's properties visual option selection of a subpanel.

    thank you for your assistance,

    MartinT

    #2
    Hello MartinT,

    Thank you for your post.

    You could use PanelIndex to figure out if the indicator is applied to the primary chart or whether it's being displayed in a secondary panel:



    I've attached a simple example that shows plots for either the close price or the open price depending on whether it's applied to a chart panel or an indicator panel. Changing the panel it's in will show the changes.

    Please let us know if we may be of further assistance to you.
    Attached Files

    Comment


      #3
      Hi Kate W.

      Yes that should do it. Thank you very much.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      169 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      327 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      252 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      353 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      181 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X