You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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