DislikedHi I added a buffer to this indicator but I can't find a problem. The signal that appears in the buffer is displayed inverted. {image} {image} {image} {file} {file}Ignored
So, your buffers are either = 1, or 2147483647.
So, as you can see:
if (RmUp > RmLmt) RmUpBuffer[0] = 1; else RmUpBuffer[0] = EMPTY_VALUE;
if (RmDn > RmLmt) RmDnBuffer[0] = 1; else RmDnBuffer[0] = EMPTY_VALUE;
So, if you want to use the buffers for some external code, then you just need to check if the given buffer is 1 or EMPTY_VALUE.
I mean, whichever value is the important one.
And, you are only doing the values for Bar[0] (current bar), so all the rest of historical Bars will always be EMPTY_VALUE.
Also, obviously, these buffers have no plot properties, so they don't plot anything, they just provide the values for Bar[0].
If you think the signal is inverted, then you need to swap 1 and EMPTY_VALUE for the buffers.
You decide if Untradeable color means 1 or EMPTY_VALUE, but I think that you were thinking of Tradeable =1, Untradeable = EMPTY_VALUE?
.ex4/.ex5 files can't be fixed or modified / I'm not a coder!