Creat a Fibonacci?

Back to topics list To post a new topic, please log in or register
avatar
37
FrazeColder 2016.04.08 15:50
 

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! 

avatar
Moderator
3206
angevoyageur 2016.04.08 22:04 #
 
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 ?
avatar
37
FrazeColder 2016.04.09 11:53 #
 

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?

avatar
Moderator
3406
GumRai 2016.04.09 12:02 #
 
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.

avatar
69
Tecuciztecatl 2016.04.09 12:10 #
 
//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
Back to topics list  

To add comments, please log in or register