Fibonacci levels in MQL4 - page 7

 
459275:
How is this check done?

Print() or Comment() and compare it with the indicator.

 

I don't know how to output it via Print(), but I output it via Comment().

Comment("\n Level1",0.0,

"\n Level2",23.6,

"Level3",38.2,

"Level4",0.50,

"and Level5," 61.8,

"and Level6," 78.6,

"Level7,100.0;)

Please tell me how to do this correctly.

 
Comment("\n Level1  ",Level1,

etc.

 

I did a check.Levels are mixed up.1c7,2c6,3c5.Only 4th is correct.How can I fix it?Should(T1<T2) be changed to (T1>T2)?

Or swap where it is spelled out? Or maybe this part should be added?

Comment(highest, lowest);

if(T1<T2)

{ObjectCreate("Fibo", OBJ_FIBO, 0, T1, highest,T2,lowest);}

else{

ObjectCreate("Fibo", OBJ_FIBO, 0, T2, lowest, T1,highest);

The thing is, the indicator is reversed.

 
Try to figure it out and fix it yourself.
 
Dmitry Fedoseev:
I'm not sure what to do with it, but try to figure it out for yourself and fix it.
Thank you very much for your help! You have helped me a lot. I will figure out the rest myself. Thank you! P.S. This is all purely for practice in mastering MQL.
 
459275:
Thank you very much for your help! You have helped me a lot. I will figure out the rest myself.
To begin with, you need to refer to me as an expert in the field ofMQL-development:
Try to guess and fix it yourselves.

Change it and everything falls into place.

if(T1<T2){
   Level0=highest;
   Level100=lowest;
}
else{
   Level100=highest;
   Level0=lowest;
}

Or vice versa:

if(T1<T2){
   Level100=highest;
   Level0=lowest;
}
else{
   Level0=highest;
   Level100=lowest;
}
 
Now you can use them, but no one knows what you want to do with them yet.
 
Dmitry Fedoseev:
Now you can use them, but what you want to do with them no one knows yet.
Thanks again for all your help! Good luck!!!
 
Dmitry Fedoseev:
Now you can use them, but no one knows what you want to do with them.

There is one more problem. The levels 127.2 and 161.8 can't be written in the same way. The comments don't match, should they be written differently or what?