Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible to have IsOverlay set by the user ?

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

    Is it possible to have IsOverlay set by the user ?

    In my indicator, I would like to have the user decide to print the indicator on the main chart or in the subwindow, so I created a boolean set by the user and in OnStateChange, when the boolen is true it modifies IsOverlay to true and whan the boolen is false is puts IsOverlay to false. however the indicator is always printed on the subwindow. So is it possible to modify IsOverlay ?

    #2
    Well, this is missing the fact that IsOverlay is a "default" used to set another property, ChartPanel. They can alter the panel the indicator appears by using the Panel dropdown in the indicator properties regardless of what you set IsOverlay to - they can even drag and drop it to a different panel. Take a look at the property "ChartPanel.PanelIndex" to see where they have docked it. Bear in mind that they can move it around - what you're setting is its default position.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello alanlopen,

      You don't need to make an additional property for the user to be able to select that. They can choose the overlay setting when applying the indicator by choosing which panel it is in. If they select the chart panel IsOverlay would be true, if they choose a secondary panel its false, this overrides your default setting. You can set a default value by setting IsOverlay to true or false in OnStateChange -> SetDefaults.



      Comment


        #4
        okay it's the smart way to handle this

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        23 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        16 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        94 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        147 views
        2 likes
        Last Post CaptainJack  
        Working...
        X