ATR in Pips 2

boa_conflictor

Master Trader
Aug 5, 2016
84
9
69
Sometimes i use this indi, but i would like to choose which corner i put it when adding it to the chart.

I added : extern int CommentCorner = 3;

No compiling errors, but it doesn't work?

Can somebody look into this please...
 

Attachments

You need to move your ObjectSet() call to the init() function. Its first parameter should be the object's name - see how the X and Y distances are set there. The third parameter should be the actual anchor point (e.g. ANCHOR_LEFT_UPPER) or the properly defined input parameter.
 
Somehow it doesn't work, keep getting errors. For now it takes to much time to adjust it properly, so i guess i will pass on this one.
What i do now is set the yDistance so that the display shows up at the left-bottom of the chart and save this setting as a preset.
Not how i would like it, but ok.