Its pretty simple really.
Lets say I wanted to draw text at the high of the current bar:
Lets say I wanted to draw text at the high of the current bar:
PHP Code:
var nIndex = getCurrentBarIndex();
var nHigh = high();
var nLabelCount;
if (nIndex != 0) // Access bars by -ve ref.
nIndex = nIndex * -1;
drawTextRelative(nIndex, nHigh, "P", Color.White, Color.Black, Text.Bold, null, 10, "MyEFS" + nLabelCount);
nLabelCount++;
Comment