// We only want to draw this on the last bar to act as a label
DEFPARAM DrawOnLastBarOnly = True
// Note1: When anchoring, positive X moves Right, Negative moves Left.
// Note2: When anchoring, positive Y moves Up, Negative moves Down.
// Since we cannot calc string width, we must define a fixed X/Y pixel offset.
// Vertical Stacking (example: We anchor to the Bottom Right)
offsetLabel1 = 170
offsetLabel2 = 150 // Text 2 is placed below 1
DRAWTEXT("Label 1 (Top)", -250, offsetLabel1) ANCHOR(bottomRIGHT, XSHIFT, YSHIFT)
DRAWTEXT("Label 2 (Below)", -250, offsetLabel2) ANCHOR(bottomRIGHT, XSHIFT, YSHIFT)
// Horizontal (example: We anchor to the Top Right)
offsetText1 = -350
offsetText2 = -150 // Text 2 is placed to the right of Text 1
DRAWTEXT("Text 1", offsetText1, -150) ANCHOR(TOPRIGHT, XSHIFT, YSHIFT)
DRAWTEXT("Text 2", offsetText2, -150) ANCHOR(TOPRIGHT, XSHIFT, YSHIFT)
RETURN