Download MetaTrader 5

Problem with https://docs.mql4.com/constants/objectconstants/enum_object/obj_fibo

To add comments, please log in or register
george pitcher
9
george pitcher  

In the ViboLevelsCreate I added the following before the return:

   double          Fval[] = {0.0, 0.236, 0.386, 0.500, 0.618};
   color           Fcolor[] = {clrBlue, clrRed, clrGreen, clrGreen, clrGreen};
   ENUM_LINE_STYLE Fline[] = {STYLE_DASH, STYLE_DASH, STYLE_SOLID, STYLE_DASH, STYLE_DOT};
   int             Fwide[] = {1, 4, 2, 2, 2};

   FiboLevelsSet( 05, Fval, Fcolor, Fline, Fwide);
//--- successful execution
   return(true);

When I execute the program I get the 5 levels but levelcolor and levelwidth always are the last value?

The write up clearly states the following:

"Note

For Fibonacci Retracement, it is possible to specify the mode of continuation of its display to the right (OBJPROP_RAY_RIGHT property).

You can also specify the number of line-levels, their values and color."

However, it does not seem to work. What am I doing wrong?

Thanks for your help.

Object Properties - Objects Constants - Standard Constants, Enumerations and Structures - MQL4 Reference
Object Properties - Objects Constants - Standard Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
Object Properties - Objects Constants - Standard Constants, Enumerations and Structures - MQL4 Reference
whroeder1
16572
whroeder1  
george pitcher: When I execute the program I get the 5 levels but levelcolor and levelwidth always are the last value?


The write up clearly states the following:

You can also specify the number of line-levels, their values and color."
It says color not colors. MT4 only one color.
To add comments, please log in or register