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
待续
举例
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
待续
相关文章推荐
- How to use gcov to get code coverage from static library in iphone?
- Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
- how to install your kernel code in FC6
- Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- How to use cocoa pod in your iOS project
- UE4 Material - How To Use Fresnel in your Materials
- Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- How to load "CodedUItestmethod" in another "consoleapplication".
- how to manually traverse the ZODB tree in your code to locate objects by their path?
- How to use user’s location in your app?
- how to use MongoDB Java driver in your env
- All-In-One Code Framework(AIO): 如何编写VC++代码来使用COM组件 (How to use COM in a VC++ client)
- Easiest way to use Qhull library in your code.
- Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- how to use the code in ms ssrs
- how to write your annotation types and make use of built-in annotations to control their behavior
- Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
- 在iPhone应用中如何使用随机数(How to Use Random Numbers in Your iPhone App)
- Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- How to step through your code in chrome