PureBytes Links
Trading Reference Links
|
Thanks Bob for saving Randy's code.
With the recent reactions by the market to the 2nd-last Fed easing, it's
become more difficult to determine if a tick is real or bad. In either case,
I prefer to get on the sidelines.
Below is a Paintbar I made for the S&P. The input settings are the
actual settings I prefer. I determined that a 4-tick chart(based on my
own fill experience) would be the
slowest possible setting to exit a short trade with the least amount of
damage had I experienced the misfortune of being short.
The paintbars have also hi-lited actual bad ticks during this contract.
dbs
{ZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
apply to 4-tick chart
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZ}
vars:Rng(0),out(0),avrng(0);
inputs:x(100),dev(3.8);
{ZZZZZZZZZZZZZZZZZZZZZZZZZZZZ}
rng=H-L;
avrng=average(rng,x);
if avrng>0 then begin
if rng>=dev*avrng then out=1 else out=0;
end;
if out=1 and currentbar>=100 then
plot1(H,"A");
plot2(L,"B");
|