Adnan Syed #: Does this not clear buffer after it becomes zero ? After buffer no longer has a value EA comment displaying buffer value shows just random values instead of null or zero. For example SetIndexBuffer(0,UplBuffer1,INDICATOR_DATA); ... When DnlBuffer1 has value and UplBuffer1 no longer has value UplBuffer1[0] - 1.79. I am working around it, just wanted to bring is to your attention.......
Setting an array as an Indicator buffer, does not clear it nor fill it with a default value.
Setting an array as an Indicator buffer, does not clear it nor fill it with a default value.
May be I failed to explain it properly.
May this will clear it up.
Indicator when shows no value in data window on candle Zero, the variables that point to Array[0] show these identical values. Not if its something special needs to be done here.
Indicator when shows no value in data window on candle Zero, the variables that point to Array[0] show these identical values. Not if its something special needs to be done here.
Check what does the EMPTY_VALUE mean when placed in a buffer (any buffer) and how to use that
From your picture all works OK - see the buy line and trend up line values
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Does this not clear buffer after it becomes zero ?
After buffer no longer has a value EA comment displaying buffer value shows just random values instead of null or zero.
For example
SetIndexBuffer(0,UplBuffer1,INDICATOR_DATA);
SetIndexBuffer(1,DnlBuffer1,INDICATOR_DATA);
SetIndexBuffer(2,UplBuffer2,INDICATOR_DATA);
SetIndexBuffer(3,DnlBuffer2,INDICATOR_DATA);
When DnlBuffer1 has value and UplBuffer1 no longer has value
UplBuffer1[0] - 1.79xxxxxxxxxxxxxxxxxxxxxxx
I am working around it, just wanted to bring is to your attention.......
Setting an array as an Indicator buffer, does not clear it nor fill it with a default value.
Setting an array as an Indicator buffer, does not clear it nor fill it with a default value.
May be I failed to explain it properly.
May this will clear it up.
Indicator when shows no value in data window on candle Zero, the variables that point to Array[0] show these identical values. Not if its something special needs to be done here.
May be I failed to explain it properly.
May this will clear it up.
Indicator when shows no value in data window on candle Zero, the variables that point to Array[0] show these identical values. Not if its something special needs to be done here.
Check what does the EMPTY_VALUE mean when placed in a buffer (any buffer) and how to use that
From your picture all works OK - see the buy line and trend up line values
Check what does the EMPTY_VALUE mean when placed in a buffer (any buffer) and how to use that
From your picture all works OK - see the buy line and trend up line values
Thank you, I will study it.