I assigned 0 to both of them upon the very first time the indicator is loaded, they will however be changed to Bid the very moment the price moves for the first time and then maximum values will be assigned to them respectively. I chose this method instead of the init function. Maymay, think and try the code first before saying it makes no sense.
janklimo:
I assigned 0 to both of them upon the very first time the indicator is loaded,
they will however be changed to Bid the very moment the price moves for the first
time and then maximum values will be assigned to them respectively. I chose this
method instead of the init function. Maymay, think and try the code first before
saying it makes no sense.
Jan
because your first code was wrong , I thought the second might be wrong too .
I meant the statement like "int x=integer ;" is not neccesally used as
a first diffinition in MQL4 and
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Jan
I assigned 0 to both of them upon the very first time the indicator is loaded, they will however be changed to Bid the very moment the price moves for the first time and then maximum values will be assigned to them respectively. I chose this method instead of the init function. Maymay, think and try the code first before saying it makes no sense.
Jan
because your first code was wrong , I thought the second might be wrong too .
I meant the statement like "int x=integer ;" is not neccesally used as a first diffinition in MQL4 and
the one like "int x ;" can be used .
so I dared to use "x" different from "y".