Is it possible to place a clickable button on the chart itself so to immediately fire an indicator into conditionals action as opposed to having to open the active indicator window and select the on/off bool in that window as is normally done? Essentially saying the indicator has been loaded onto the chart but if for examples fires up or down arrows, the query is a desire to be able to switch those arrow on or off via a direct button on the chart as opposed to loading the usual bool option in the indicator window...
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
on/off Button visible on chart
Collapse
X
-
on/off Button visible on chart
Almost hesitant to ask this one but got a call so said I'd ask...
Is it possible to place a clickable button on the chart itself so to immediately fire an indicator into conditionals action as opposed to having to open the active indicator window and select the on/off bool in that window as is normally done? Essentially saying the indicator has been loaded onto the chart but if for examples fires up or down arrows, the query is a desire to be able to switch those arrow on or off via a direct button on the chart as opposed to loading the usual bool option in the indicator window...
Tags: None
-
Hello johnMoss,
Thanks for your post.
To clarify, are you wanting to create a NinjaScript that makes an indicator being plotted on the chart window visible or transparent?
Below is a link to a reference sample on forums demonstrating how to change the color of a plot when a button is clicked. You could choose to set the plot to Transparent so it does not show on the chart when the button is clicked.
Hi, I am trying to recreate the basic function of the Visible checkbox seen in indicators like EMA which can toggle on/off the plot visibility while retaining the plot color. Past related posts have suggested making plot bars transparent but such loses the plot color if the workspace is saved then reopened later. Can you please
Here is a forum thread also containing an example of toggling plots using buttons which you might find helpful: https://forum.ninjatrader.com/forum/...09#post1165609
To turn the lines "off" you could likely have the logic toggle the isVisible property to false:
There is an indicator that is publicly available on our NinjaTrader Ecosystem website that adds a toolbar to allow you toggle different items on the chart that may also be a helpful example:<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>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 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
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
574 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|
Comment