get source in strategy
Posted: Thu Dec 27, 2018 5:53 am
in Ext mode using the helper of strategy development, we use ExtSubscribe to get source then get indicator instance:
My question is in normal strategy developement(update()), how to get source and get the indicator instance?
Thank you!
Chen
Source = ExtSubscribe(1, nil, instance.parameters.TF, instance.parameters.Type == "Bid", "bar");
local indiProfile = core.indicators:findIndicator(instance.parameters:getString("Indicator"));
local params = instance.parameters:getCustomParameters("Indicator");
IndicatorInstance = indiProfile:createInstance(Source, params);
My question is in normal strategy developement(update()), how to get source and get the indicator instance?
Thank you!
Chen