Download MetaTrader 5
To add comments, please log in or register
Deposit to your account in any convenient way. There are 4 of them here!
Jan
175
Jan 2016.04.08 13: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! 

Alain Verleyen
Moderator
30296
Alain Verleyen 2016.04.08 20: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 ?
Jan
175
Jan 2016.04.09 09: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?

Keith Watford
Moderator
9544
Keith Watford 2016.04.09 10: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.

Tecuciztecatl
70
Tecuciztecatl 2016.04.09 10: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
/
To add comments, please log in or register