tnil25: e EA to check if the value is higher or lower than the previous bar.
An array is not required for that. Save the current value in a static/global variable and compare on the next bar.
New candle - MQL4 programming forum #3 2014.04.04
tnil25:
Hey everyone,
I'm trying to figure out the best way to store a value in a buffer similar to CopyBuffer, but the value isn't from an indicator. Id like the EA to check if the value is higher or lower than the previous bar.
Something like this:
What's the best way to go about this?
Define Myvalue[] as an array
then you can specify different amounts into each element

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey everyone,
I'm trying to figure out the best way to store a value in a buffer similar to CopyBuffer, but the value isn't from an indicator. Id like the EA to check if the value is higher or lower than the previous bar.
Something like this:
What's the best way to go about this?