Download MetaTrader 5

Creat a Fibonacci?

To add comments, please log in or register
Jan
175
Jan  

Hey Guy, 

How can I creat a Fibonacci?
I already got my points, where I wanna draw it, but I don't find something to creat/code a Fibonacci?

I found something like this: https://docs.mql4.com/constants/objectconstants/enum_object/obj_fibo

But what is meant with those parameters at "CreatObject(...)"? 
I don't understand anything from this description...

 

Greetings and Thank you! 

Alain Verleyen
Moderator
31464
Alain Verleyen  
FrazeColder:

Hey Guy, 

How can I creat a Fibonacci?
I already got my points, where I wanna draw it, but I don't find something to creat/code a Fibonacci?

I found something like this: https://docs.mql4.com/constants/objectconstants/enum_object/obj_fibo

But what is meant with those parameters at "CreatObject(...)"? 
I don't understand anything from this description...

 

Greetings and Thank you! 

There is a full example code on the link you posted, so I am not sure what you are expecting more ?
Jan
175
Jan  

But that is too much! I just need the 67,8% line between to points.

It thought about it yesterday and it should be possible to multiplicate with 0.678 or?

Keith Watford
Moderator
9980
Keith Watford  
FrazeColder:

But that is too much! I just need the 67,8% line between to points.

It thought about it yesterday and it should be possible to multiplicate with 0.678 or?

Then just use what you need. Read and absorb the relevant documentation, so that you understand it. Then you will be able to adapt it to however you want.

It may seem too much, but next time you may want to add multiple fibonacci levels, so you need to learn how to do it.

Otherwise, simply create some horizontal/trend lines and calculate the levels.

Tecuciztecatl
70
Tecuciztecatl  
//calculate 61.8%
double point_61_8=NormalizeDouble((pointHigh-pointLow)/100*61.8+pointLow,Digits);
...then create an object 'line' or 'arrow', using the function ObjectCreate
To add comments, please log in or register