ATR in Pips 2

boa_conflictor

Master Trader
Aug 5, 2016
75
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

  • ATR in Pips 2.mq4
    3 KB · Views: 34

boa_conflictor

Master Trader
Aug 5, 2016
75
9
69
Well...i tried. Went from several compiling errors to 1 compiling error now, but i don't know how to fix this one.
 

Attachments

  • ATR in Pips 2_TEST.mq4
    3.1 KB · Views: 10

Enivid

Administrator
Staff member
Nov 30, 2008
18,535
1,355
144
Odesa
www.earnforex.com
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.
 

boa_conflictor

Master Trader
Aug 5, 2016
75
9
69
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.