Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Is it possible to have IsOverlay set by the user ?
Collapse
X
-
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 ?Tags: None
-
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.
-
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
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
333 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment