[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing an Indicator only During Today



PureBytes Links

Trading Reference Links

Hello all! Would someone illustrate how to modify an indicator such that
it only charts in today's chart. For example, how would you address the
Keltner Channel?
Thanks in advance.

Inputs: Price(Close),MALen(10),Const(.8);
Vars: CentLine(0), AvgRange(0), Upper(0), Lower(0);

CentLine=Average(Price,MALen);
AvgRange=Average(TrueRange,MALen);
Upper=CentLine+(AvgRange*Const);
Lower=CentLine-(AvgRange*Const);

Plot1(CentLine,"CentLine");
Plot2(Upper,"Upper");
Plot3(Lower,"Lower");