Study
|
Miscellaneous functions |
SYNTAX | Study( STUDYID, CHARTID = 1, scale = -1 ) |
RETURNS | ARRAY |
FUNCTION | generates an array equivalent to a trendline study drawn by the user
- allows detecting trendline breakouts from AFL. STUDYID is a two-character identifier of the study. identifiers are: "UP" - uptrend, "DN" - downtrend, "SU" - support, "RE" - resistance, "ST" - stop loss, however you can use ANY identifiers (there are no limitations except that AmiBroker accepts only 2 letter codes). CHARTID - identifies the chart pane where the study was drawn - you can find out what is the chart ID for given chart by looking in Parameters dialog, Axes & Grid, Miscellaneous: Chart ID or using GetChartID() AFL function. Scale - this parameter specifies which scale should be used:
More information about this function is included in the Tutorial: Using Studies in AFL formulas
|
EXAMPLE | // this example plots filled area between
|
SEE ALSO | GETCHARTID() function |
The Study function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.