I am new to MQL4 programming and am working on creating my first Expert Advisor.
What I am trying to accomplish (and where I'm currently stuck) is to create a simple counter for the EURUSD pair that counts every single tick, regardless of the direction it goes in.
For example, the counter starts off at 0.0000 and as the EURUSD increases, the counter becomes 0.0001,0.0002,0.0003, etc. for every tick that occurs. The counter should also account for drops in the EURUSD should it start trending downward, ex: 0.0003, 0.0002, 0.0001, 0.0000, -0.0001, -0.0002, etc..
Any help/advice would be greatly appreciated. Thanks.
What I am trying to accomplish (and where I'm currently stuck) is to create a simple counter for the EURUSD pair that counts every single tick, regardless of the direction it goes in.
For example, the counter starts off at 0.0000 and as the EURUSD increases, the counter becomes 0.0001,0.0002,0.0003, etc. for every tick that occurs. The counter should also account for drops in the EURUSD should it start trending downward, ex: 0.0003, 0.0002, 0.0001, 0.0000, -0.0001, -0.0002, etc..
Any help/advice would be greatly appreciated. Thanks.