
3404 
3404 
pluck6: but how do I establish the variables? Would it be something like this:
That wouldn't make sense. There would have to be some conditions that would assign a value to the variables. Finally, should I wrap this whole code within void OnStart() {} ? 

pluck6: I'm struggling to find the MQL4 code which establishes variables which can then be compared against each other e.g. x > y and vice versa, so any help would be greatly appreciated.


Using MQL4, how can I execute a BUY order (seen below) if one variable x has a value of 1 and another variable y has a value of 3? I need it to work like this:
Variable x = 1
Variable y = 3
So if x is MORE THAN y, execute this script:
And if x is LESS THAN y, execute this SELL script:
I'm struggling to find the MQL4 code which establishes variables which can then be compared against each other e.g. x > y and vice versa, so any help would be greatly appreciated.