Dear mladen
Please, be so kind as to review my copycat code:
I've made a function to change the color of the candles, but my gut is telling me that it can be made in simpler way...
anyway, show me the way...
thanks
void SetCandleColor(int col, double& upw[], double& upc[], double& dnw[], double& dnc[], int i)
{
double high,low,bodyHigh,bodyLow;
{
bodyHigh = MathMax(Open,Close);
bodyLow = MathMin(Open,Close);
high = High;
low = Low;
}
upw = low; upc = bodyLow;
dnw = low; dnc = bodyLow;
switch(col)
{
case 1: upw[i] = high; upc[i] = bodyHigh; break;
case -1: dnw[i] = high; dnc[i] = bodyHigh; break;
}
}