Can anyone explain the code.

 

Hello, I found this code on the forum itself.

I'm trying to build an EA on Fibonacci indicator. I have found an EA as well as some indicators. The problem is that I'm not able to understand what part of the code is fulling the condition.

I appreciate if anyone would help me understand. Thank you

Regards,

Rohit

P.S: I'm uploading the .mq4 file of the EA

Files:
fibs_2.mq4  11 kb
 

A)

That code doesn't even compile for me.

e.g.

      if(Bid>f_4[])

that is not valid MQL4 code

B)

What do you mean by "the condition". there are quite a few conditions in there.

 
brewmanz:

A)

That code doesn't even compile for me.

e.g.

that is not valid MQL4 code

B)

What do you mean by "the condition". there are quite a few conditions in there.


yes, the conditions and what they mean..

if(Bid>f_4[i]) .

I had assumed something like this...

Thank you

Reason: