1) Create an instance of the indicator in your prepare() function
举例
local mva7;
local stream;
function Prepare()
mva7 = core.indicators:create("MVA", source, 7);
stream = instance:addStream("MVA72", core.Line, "MVA(7)/2", "MVA(7)/2", instance.parameters:getColor("C"), 7);
end
2) since we own the new indicator, we must also control updating of this indicator manually
待续