Creat a Fibonacci?

175

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!

Moderator
32430

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 ?
175

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?

Moderator
10569

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.

70

```//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