Graphical instruction to draw text on chart.

Syntax:

“text” as a string value, which must be in quotation marks, just like the example below.

x1 as a barindex, y1 as the price or the vertical axis value.

Variables values can also be drawn on chart, they must be surrounded by pound symbols : “#myvariable#”. See example 3 below.

optional arguments :

<font> to apply a different font than the default one, allowed font are : Dialog (default), Monospaced, Serif, SansSerif.

<style> Standard (default), Bold, Italic, BoldItalic.

<size> 10 (default) to 30.

Style and Size arguments can only be defined if the <font> argument is set.

 

Example 1:

Display pivot points names above their lines on an intraday chart :

pivot points line and text prorealtime

Example 2:

Find and display “Bearish Pinbar” on chart with the DRAWTEXT instruction.

pinbar indicator prorealtime

Example 3:

Retrieved and display last year highest, lowest and close prices and display their values on chart (use of variables values in the drawtext instruction).

 

Other examples can be found in the simple dashboard tutorial blog post : http://www.prorealcode.com/blog/learning/simple-indicators-dashboard/

Share this