Buffer for custom value?
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
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?