Daily lines - ANCHOR-BOTTOM PROBLEM

 

I have a handy little indicator that puts days of the week on my chart.  Since the last upgrade

it has stopped working.  The problem is

 

'ANCHOR_BOTTOM' - cannot convert enum

 

the line of code is : input ENUM_ANCHOR_POINT InpAnchor=ANCHOR_BOTTOM; // Anchor type

 

I have fiddled around with it to try and get it working, but can't fathom it.  Any help would be appreciated.

Many regards

Kate

Files:
DailyLines.mq4  19 kb
 

Hi Kate.

There is no ANCHOR_BOTTOM for ENUM_ANCHOR_POINT.

ENUM_ANCHOR_POINT

ID

Description

ANCHOR_LEFT_UPPER

Anchor point at the upper left corner

ANCHOR_LEFT

Anchor point to the left in the center

ANCHOR_LEFT_LOWER

Anchor point at the lower left corner

ANCHOR_LOWER

Anchor point below in the center

ANCHOR_RIGHT_LOWER

Anchor point at the lower right corner

ANCHOR_RIGHT

Anchor point to the right in the center

ANCHOR_RIGHT_UPPER

Anchor point at the upper right corner

ANCHOR_UPPER

Anchor point above in the center

ANCHOR_CENTER

Anchor point strictly in the center of the object


The Anchor point you mean is most likely

ENUM_ARROW_ANCHOR

ID

Description

ANCHOR_TOP

Anchor on the top side

ANCHOR_BOTTOM

Anchor on the bottom side


So, you can try

 input ENUM_ARROW_ANCHOR InpAnchor=ANCHOR_BOTTOM; // Anchor type

 

 

thank you very much, just tried that. 

Now have new error 

 

Description:-

'InpAnchor' - cannot convert enum      

 

ON line 120 grrrr   

clr,90,InpAnchor,false,false,true,0);

 
can you show a bit more code.
 

Here is the updated version.

It's an indicator so you have to put it in the indicator folder, then compile and then you can load it on a chart.

Files:
Day_of_Week.mq4  40 kb
Reason: