Help me with error please. -cannot convert enum

David Del Castillo
2069

Hi,

I had a indicator that was working that no longer works. I ran on metaeditor to see for errors, and I got the following error.

'Period_W1'-cannot convert enum    [on line 22]

cannot convert enum



Any suggestions on a fix? Anyone?

Jonathan Sheu
9
Jonathan Sheu  
You should let it rest or something or get it fixed

Petr Nosek
5397
Petr Nosek  
David Del Castillo:
 

Any suggestions on a fix? Anyone?

The #22 line should look like:

extern EN_STD_TIMEFRAMES inpHigherPeriod=W1;

Or you can use built-in enum. You can delete the #16 line and use this code instead of your #22 line code:

extern ENUM_TIMEFRAMES inpHigherPeriod=PERIOD_W1;
David Del Castillo
2069
David Del Castillo  
Petr Nosek:

The #22 line should look like:

Or you can use built-in enum. You can delete the #16 line and use this code instead of your #22 line code:

It worked like a charm! Thanks very much for your time. I am very appreciative.

cheers

david mackay
1622
david mackay  

I have a similar error in this indicator.......

Would someone be good enough to tell me a fix.....?

Thank you....


can not convert enum

Mohamad Zulhairi Baba
35882
david mackay:

I have a similar error in this indicator.......

Would someone be good enough to tell me a fix.....?

Thank you....



ENUM_APPLIED_PRICE
Alain Verleyen
43318
Mohamad Zulhairi Baba:
ENUM_APPLIED_PRICE
It's an other enum. Will lead to new problems.
Alain Verleyen
43318
david mackay:

I have a similar error in this indicator.......

Would someone be good enough to tell me a fix.....?

Thank you....



input Applied_price_  IPC=PRICE_CLOSE_;
david mackay
1622
david mackay  
Alain Verleyen:

Thanks very much, seems to work now.

hamedking62
27
hamedking62  

hi  I have a similar error

Files:
Capture1.JPG  304 kb
Capture2.JPG  224 kb
B335C0B4
5
B335C0B4  
Jonathan Sheu #:
You should let it rest or something or get it fixed

Can anyone please tell me why my Robot does not work on deriv??