The “STYLE” keyword defines the styles of any returned values of an indicator. It is intended to styling programmatically instead of do it manually in the indicator window.

This keyword is located right after the optional keyword “COLOURED” and before the “AS” one.

Syntax:

Styling options available :

  • LINE : draw plain continuous line (default style)
  • DOTTEDLINE : draw a dotted line
  • DOTTEDLINE1: draw a dotted line with a different style (see below)
  • DOTTEDLINE2: draw a dotted line with a different style (see below)
  • DOTTEDLINE3: draw a dotted line with a different style (see below)
  • DOTTEDLINE4: draw a dotted line with a different style (see below)
  • HISTOGRAM : draw an histogram
  • POINT : draw a point series

Example of styling in RETURN :

STYLE examples

 

Example: DOTTEDLINE styling

 

Share this