Rename Indicator or Widget

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

Rename Indicator or Widget

Post by zcsoka » Thu Jun 03, 2021 8:12 am

Greetings, 

I am using the multiinstrumentlistener, but I cannot add indicators based on the added instruments, since the indicators can be added only at init time. I create a pool of indicators with random names in the init and I use them for the added instruments. It works well, but the name of the indicator (and the widget) remains the random name. In the docs I did not find any ways to change either the name of the indicator or the text displayed on the widget. Do you happen to know any tricks to change the display name of any of those?

Thanks in advance

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: Rename Indicator or Widget

Post by Svyatoslav » Thu Jun 03, 2021 8:16 am

One option would be using core L1 api instead of simplified API. Then you can register/unregister widgets at any point.

I think we could handle widget renaming as a feature request, but I'm not sure about priority (and thus when it gets done)

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

Re: Rename Indicator or Widget

Post by zcsoka » Thu Jun 03, 2021 11:29 am

Thank you, I thought I could extend the Indicator somehow to overwrite it's name getter and setter, but if it is not possible, I will fall back to L1 then.

Post Reply