Inherit chart settings from.. resets indicators on original instrument

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

Inherit chart settings from.. resets indicators on original instrument

Post by zcsoka » Thu Dec 02, 2021 2:17 pm

Greetings,

I have an indicator, which starts calculating only when it is added to the chart, no backfill. If I keep changing only tabs, the indicator keeps its values fine. Let's suppose I have it on the NQ
If I pick an other instrument (ES) and apply the Inherit chart settings from..NQ, then the indicator is reinitialised on the NQ. Is it intended, if yes, why?

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

Re: Inherit chart settings from.. resets indicators on original instrument

Post by Svyatoslav » Thu Dec 02, 2021 2:21 pm

Well... It's sort-of intended. If we are talking about core L1, inheritance works like this: copy settings, unload addon, replace settings on the target instrument, start addon back. That's because there is no special inherit API message/call, we just unload the addon and swap the settings.
For core L1 that makes some sense, since there are no "per-instrument" addons, all addons are global and per-instrument state is handled by addon developer.

It makes less sense with Simplified L1, but it's actually built purely as a wrapper around core L1, so core just reloads entire wrapper, with all per-instrument "sub-addons".

Post Reply