Something like this
Code: Select all
input int Length = 10;
input double Phase = 0;
double BarH = iSmooth(High[i]-Open[i], Length,Phase,i, 0);
double BarL = iSmooth(Low[i]-Open[i] ,Length,Phase,i,10);
double BarC = iSmooth(Close-Open[i], Length,Phase,i,20);