SetGradientFill
|
Indicators |
SYNTAX | SetGradientFill( topcolor, bottomcolor, baseline = Null, baselinecolor = -1 ) |
RETURNS | NOTHING |
FUNCTION | The function defines colors for gradient area charts. Gradient chart is obtained using styleGradient in the Plot() function call. Upper gradient color is specified by topcolor, bottom gradient color is specified by botttomcolor. Optional parameters (baseline/baselinecolor) allow reverse gradient chart (such as underwater equity) and 3 color gradients top->baseline->bottom. See code for Underwater Equity for example usage of reverse gradient chart (with baseline at the top). Baseline parameter specifies the Y-axis position of chart baseline. The baselinecolor parameter specifies the color of gradient that is to be used at that level. If baselinecolor is not specified, then only 2-color gradient is plotted (topcolor->bottomcolor). |
EXAMPLE | // Underwater Equity chart |
SEE ALSO | Plot() function |
The SetGradientFill function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.