Hide widget from simplified API

Custom indicators, trading strategies, data export and recording and more...
zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Hide widget from simplified API

Post by zcsoka » Fri May 28, 2021 9:13 am

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. 

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Hide widget from simplified API

Post by Andry API support » Fri May 28, 2021 11:27 am

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);

zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Re: Hide widget from simplified API

Post by zcsoka » Fri May 28, 2021 7:21 pm

Many thanks

Post Reply