Thanks for lookin'.
I am attempting to process a for loop through EOD data that includes a test of
the difference between the MACD() and Signal(). I installed a trace and found
that the MACD() and Signal() are not incrementing through the data array. The
numbers returned remain the same and I go nowhere.
What do I have to do to increment MACD() and Signal() through the EOD data
within a for loop?
Partial code sample follows:
for(i = 1; i < BarCount; i++ )
{ // for loop bracket
x = MACD();
y = Signal();
Hist = x - y;
z = Hist > Ref(Hist, -1); // z = 0 if True, 1 if False
_TRACE("x =" + x +" y =" + y +" Hist =" + Hist);
Thanks,
Mike L.