您的位置:首页 > 其它

How to use another indicator in your code?

2017-11-25 09:48 465 查看
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

待续
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: