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

Abberation - The Snake Oil Adventure



PureBytes Links

Trading Reference Links


Dearest Mr. Eskimo-Omega-List,

This is just one possible twist for the code that could be used on S&P 500
30 min bars. *Nothing* thoroughly tested. In fact, the code has a long, long
way to go. Matter of fact it may never get there because it is meant to be
traded on daily data. It walks away with very low losing trades and high
win/loss ratio - DD is a bit dicey.  But, it is in idea of using another
off-the-shelf canned indicator to help it along that I like. Now I know that
there are many people on this list that could improve on the code itself
trading S&P and the idea of some kind of volatility based
variable/indicator,(new/old/custom) that could be used other than ROC. Or am
I manipulating the wrong part of the code? 

I have also changed the regular average to a Waverage - while the regular
average is kept for the exit portion.    

Vendor Dennis will have to adjust his pricing structure as there are now two
lines of additional new code :)


  {************* 
     System: Ab_whore_ation 
     Copyright: 27 March 2000 
     Author: Dennis Holverstott 
                        **************} 


Input: len(65), sdevup(2), sdevdn(2), Len1(.59), Len2(55); 
Var: avg(0),avg2(0),DP(0),DM(0), sd(0), ER(0),        upper(0),lower2(0); 


ER = POS(RateofChange(C,Len2))+Len1;


                   avg = waverage(c,len);
    		   avg2 = average(c,Len);	
                   sd = stddev(c,len); 
                   upper = avg + ({sdevup}ER * sd); 
                   lower2 = avg - ({sdevdn}ER * sd); 

                   if c > upper  then buy market; 
                   if c < (avg2) then exitlong; 
                   if c < lower2 then sell market; 
                   if c > (avg2) then exitshort;