For example, I have a strat with an SMA and MACD, but I check the box and now the strat only accounts for the MACD.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Disable Indicators with a Checkbox
Collapse
X
-
Disable Indicators with a Checkbox
I have a strategy with 4 indicators. I want to disable and re-enable individual each indicator. I have seen other strategies achieve this with a checkbox on the front end. How do I achieve this in the strategy builder?
For example, I have a strat with an SMA and MACD, but I check the box and now the strat only accounts for the MACD.Tags: None
-
Hello goelon,
Really indicators don't get disabled like NinjaScript Strategies are. They are either applied or not applied.
You can hide plots by setting these to transparent.
You can choose whether AddChartIndicator is used for a strategy with an if statement in an unlocked script, but this would not be a feature of the Strategy Builder.Chelsea B.NinjaTrader Customer Service
-
Hello dibDab,
Thank you for your note.
So we may better assist, please answer the following:- At what point does the strategy get disabled?
- If you add print statements to your script, do you see any of them in the NinjaScript Output window before the strategy is disabled?
- More about using prints to debug your scripts: https://ninjatrader.com/support/foru...ing#post791121
- Are there any errors on the Log tab of the Control Center? If so, what do these errors report?
I look forward to your reply.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
45 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
31 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment