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

[RT] Code - April fools gift....TS EWosc w BO bands



PureBytes Links

Trading Reference Links

Been fooling around with some coding this weekend and have decided to stop
at this point.  This code appears to produce a respectable EWosc and
Breakout Bands a la AGet.  The very first part of the plot isn't quite
initialized properly but smooths out after the first 35 bars of each band
plot.  Maybe one of the resident els/ela gurus could make it start
correctly.  The code also has an additional XAverage on the oscillator for
added perspective and perhaps a timing trigger.

Enjoy,
BobR
http://www.oextrader.com/sigma_trader
----------------------------------------------------------------------------
----------------------

Inputs: Price1(Average((H+L)/2,5) -
Average((H+L)/2,35)),K(1),K2(0.0555),Len(5);
Vars:  UpperBand(0),LowerBand(0),AvgP(0);

If Price1 >0  then begin
upperband=price1;
If barnumber>=2 then
UpperBand= K*(upperband[1] + k2*(Price1 - upperband[1]));
end;


If Price1 < 0 then begin
LowerBand = Price1;
If barnumber>=2 then
LowerBand=K*(lowerband[1] + K2*(Price1 - lowerband[1]));
end;

AvgP = XAverage(Price1,Len);

Plot1(Price1,"Osc535");
Plot2(AvgP,"AvgP");
Plot3(UpperBand,"upper");
Plot4(LowerBand,"lower");


------------------------ Yahoo! Groups Sponsor ---------------------~-~>
We give away $70,000 a month! Come to iWin.com for
your chance to win!
http://us.click.yahoo.com/olMXHC/BJVCAA/4ihDAA/zf_UlB/TM
---------------------------------------------------------------------_->

To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


Attachment: Description: "OEXewosc.gif"

Attachment: Description: "EWOSC.ELA"