i am not really talanted in coding but want to fill an array with information of of up/down candles. If its an up/down candle the array should be filled with 1/-1
but the else statement seems not to be filling the array correctly. Any Idea why? I don't know what i am doing wrong with the code.
hey guys,
i am not really talanted in coding but want to fill an array with information of of up/down candles. If its an up/down candle the array should be filled with 1/-1
but the else statement seems not to be filling the array correctly. Any Idea why? I don't know what i am doing wrong with the code.
for(i=0; i<MATrendPeriod && !IsStopped(); i++)
{
if (Close[i]<=Open[i]) CandleBuffer[i]=-1;
else CandleBuffer[i]=1;
}
Thanks in advance for your assistance
Regards
tbm