PDA

View Full Version : Building indicator in VTL



nhasan
12-09-2013, 11:22 AM
Dear Team

I am trying to build custom indicator by VTL client side script.
But found no documentation in help site. is there any document with details about how to build indicators in VTL?
I have some other question -
1. Can we draw any indicator on main price chart?
2. Can we draw multiple indicators in same window?
3. Can we manage color/width property of the indicator by code?

Thanks

Hassan-HS
12-09-2013, 11:51 AM
Dear Hasan,

We already published docs about indicators, please check the following categories that exist on VTL Client Index.

Object Functions: that contain all functions that related to chart objects.
Utility Functions: LineWeight,LineStyle,LineColor: to edit indicators line.
Custom Indicators: To Add and update custom indicators.




1. Can we draw any indicator on main price chart?

Yes you can draw indicator using AddCustomIndicator (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2662).


2. Can we draw multiple indicators in same window?

Yes you can draw multiple indicators in same window using AddCustomIndicator (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2662).


3. Can we manage color/width property of the indicator by code?

Yes you can using the following methods LineWeight (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2336),LineStyle (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2337),LineColor (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2338).


This Sample (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2464)will help you in developing indicators.

nhasan
12-09-2013, 03:22 PM
Thanks for some useful functions

In MT4 we have a line style DRAW_HISTOGRAM, is it available in VTL?

Hassan-HS
12-09-2013, 03:41 PM
Dear Hasan,


We have only STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT, but we will examine the possibility of adding HISTOGRAM style.