Page 1 of 1

Coffee

Posted: Tue Aug 30, 2016 6:25 pm
by henry1224
this is an indicator from a guy called Kumo Bob who developed this indicator while drinking his morning coffee

under the parameters tab

N double 1 1 100
N2 double 4 2 100
N3 double 3 2 100

now for the formula


MaxHigh:= Max(Ref(Close,N), High);
MinLow:= Min(Ref(Close,N), Low);
Range:= MaxHigh - MinLow;
Divisor:= If(Range == 0 ,.0001 , Range) ;
Coffee :=(((Close - MinLow) - (MaxHigh - Close)) / Divisor);
CAvg:WMA(Coffee,N2);
BPerAvg : MA(CAvg, N3),ColorBlue;
UZ :MA(CAvg, 30) + (1.3185 * StD (CAvg, 30)),Width2,ColorViolet;
LZ: MA(CAvg, 30) - (1.3185 * StD (CAvg, 30)),Width2,ColorViolet;
FillRgn(CAvg>0,0,CAvg),Brush#50008000;
FillRgn(CAvg<0,0,CAvg),Brush#50800000;