Greetings,
Is there a way to hide the widget for an indicator from the code at init time? If and add-on has many indicators it is cluttering the widget display.
Hide widget from simplified API
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Hide widget from simplified API
Hi, you can hide the widget by default so it can be enabled manually later from Bookmap.
Use constructor
registerIndicator(String name, GraphType graphType, double initialValue, boolean showLineByDefault, boolean showWidgetByDefault)
Indicator indicator = api.registerIndicator("Last trade, no history ", GraphType.PRIMARY, Double.NaN, true, false);
Use constructor
registerIndicator(String name, GraphType graphType, double initialValue, boolean showLineByDefault, boolean showWidgetByDefault)
Indicator indicator = api.registerIndicator("Last trade, no history ", GraphType.PRIMARY, Double.NaN, true, false);