PureBytes Links
Trading Reference Links
|
How could I adjust my 200ema to highest to lowest bar on screen?
And I need actual size.
So as not to dwarf my price bars with 200ema, like proximity pivot bars I
tried an ema code:
vars: xavg(0);
xavg=XAverage( Price, Length );
if CurrentBar >= currentbar then begin
VALUE8=(xavg+4);
VALUE4=(xavg-4);
IF (TrueHigh >= VALUE4 and TrueLow <= VALUE8)
THEN Plot1(xavg,"AvgExp" ) ;
However, depending on the time from tics to days 4 points distance might be
too small.
And then I can't see 200ema sneaking up on me even when it would be on the
screen, but >4 pts away.
I can always adjust the xavg additive number (4 in this case), but it seems
to be inefficient programming.
Thanks,
Phil
|