How to express a condition in which an downtrend of 15pips aroused - page 2

 
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
Files:
pipmmover.mq4  2 kb
 
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

the one like "int x ;" can be used .

so I dared to use "x" different from "y".