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

[amibroker] BACKTESTING FOR RSI WEDGES



PureBytes Links

Trading Reference Links




.  
  Steve, I have pasted the post you 
made to   Dimitris below.  I am curious, did you simply add your 
code to the bottom of Demitris's RSI trendline code?  You mentioned that 
you HACKED  Dimitris's code.   Does the word HACK 
 mean that you made some changes to it internally.  If you did 
make internal changes, I would appreciate it if  you feel free to post 
them.                                                

 
I am satisfied with the indicators that 
I have chosen to rely upon in order to  determine  when 
to enter a position, and when to exit a position.  Now I need to read the 
user's manual in order to learn how to do backtesting.   I am 
hoping  to find, or develop,  backtesting code that will 
find the eminent approaching  breakouts that inevitably result 
from converging wedge patterns. 
 
I will explain my concept for testing for 
Demitris's RSI contracting wedges just in case any other users happen to also be 
interested in trading breakouts from these RSI contracting wedges. I would also 
like to hear suggestions on how to further refine the concept. I want to run 
several different backtests.  All of these backtests will be looking 
for stocks where the upper and lower RSI lines are converging.  I like 
to call these conditions CONVERGING WEDGES. 
 
The criteria of these several different backtests 
are described below.  To start my backtest learning curve,  
I will not be concerned about  the slopes of the upper and lower 
RSI converging lines.    My only criteria is that 
they must  converging fairly rapidly.  I think the 
below names  of backtests will adequately convey what the additional 
filters should do. 
 
 
STOCKS WITH RISING LINEAR REGRESSION. 
 
STOCKS IN A MINOR UPTREND
 
STOCKS IN A MAJOR UPTREND
 
STOCKS WITH LEVEL LINEAR REGRESSION
 
STOCKS WITH NO TREND
 
STOCKS IN A MINOR DOWNTREND
 
STOCKS IN A MAJOR DOWNTREND.
 
I welcome all criticism of this concept of finding 
breakouts from RSI wedges.  Steve's post is pasted below.  Ron 
D
 
<FONT face=Arial 
size=2>==========================================================================================================
 
<FONT face="Times New Roman" 
size=3>DimitrisI took the liberty of hacking your code to do an 
exploration.I added to the bottom of you code for Anticipating Next bar 
Support/Resistance the following and it provides me some interesting stock 
picks.  I filter out thinly traded stocks and stocks that have an average 
below 5 over the past month.This gives me any stocks that are tracking 
higher on breakout volume.  These have should have some continued 
momentum.  Of course I check the chart for tightness and other things after 
this initial selection process.Steve<FONT 
face="Courier New, Courier" 
size=1>_______________________________Filter = Ar><FONT 
face="Courier New, Courier" color=#ff00ff size=1>0<FONT 
face="Courier New, Courier" size=1> AND as><FONT 
face="Courier New, Courier" color=#ff00ff size=1>0<FONT 
face="Courier New, Courier" size=1> AND <FONT 
face="Courier New, Courier" color=#0000ff size=1>MA<FONT 
face="Courier New, Courier" size=1>(V,<FONT 
face="Courier New, Courier" color=#ff00ff size=1>20<FONT 
face="Courier New, Courier" size=1>)><FONT face="Courier New, Courier" 
color=#ff00ff size=1>100000 
AND <FONT face="Courier New, Courier" color=#0000ff 
size=1>MA(C,<FONT 
face="Courier New, Courier" color=#ff00ff size=1>21<FONT 
face="Courier New, Courier" size=1>)><FONT face="Courier New, Courier" 
color=#ff00ff size=1>5 
AND (<FONT face="Courier New, Courier" color=#0000ff 
size=1>MA(V,<FONT 
face="Courier New, Courier" color=#ff00ff size=1>3<FONT 
face="Courier New, Courier" size=1>)/<FONT face="Courier New, Courier" 
color=#0000ff size=1>MA<FONT face="Courier New, Courier" 
size=1>(V,<FONT face="Courier New, Courier" color=#ff00ff 
size=1>21))><FONT 
face="Courier New, Courier" color=#ff00ff size=1>1.0<FONT 
face="Courier New, Courier" size=1>;NumColumns = <FONT 
face="Courier New, Courier" color=#ff00ff size=1>5<FONT 
face="Courier New, Courier" size=1>;Column1 = <FONT 
face="Courier New, Courier" color=#0000ff size=1>MA<FONT 
face="Courier New, Courier" size=1>(V,<FONT 
face="Courier New, Courier" color=#ff00ff size=1>3<FONT 
face="Courier New, Courier" size=1>)/<FONT face="Courier New, Courier" 
color=#0000ff size=1>MA<FONT face="Courier New, Courier" 
size=1>(V,<FONT face="Courier New, Courier" color=#ff00ff 
size=1>17<FONT face="Courier New, Courier" 
size=1>);Column1Name = <FONT face="Courier New, Courier" 
color=#ff00ff size=1>"MAV(3/17)"<FONT face="Courier New, Courier" 
size=1>;<FONT face="Courier New, Courier" color=#ff00ff 
size=1>"           
"+<FONT 
face="Courier New, Courier" color=#0000ff size=1>WriteVal<FONT 
face="Courier New, Courier" size=1>(<FONT face="Courier New, Courier" 
color=#0000ff size=1>MA<FONT face="Courier New, Courier" 
size=1>(V,<FONT face="Courier New, Courier" color=#ff00ff 
size=1>3)/<FONT 
face="Courier New, Courier" color=#0000ff size=1>EMA<FONT 
face="Courier New, Courier" size=1>(V,<FONT 
face="Courier New, Courier" color=#ff00ff size=1>17<FONT 
face="Courier New, Courier" size=1>));Column1Format=<FONT 
face="Courier New, Courier" color=#ff00ff size=1>1.2<FONT 
face="Courier New, Courier" size=1>;Column2 = 
C;Column2Name = <FONT face="Courier New, Courier" 
color=#ff00ff size=1>"Today's Close "<FONT face="Courier New, Courier" 
size=1>;<FONT face="Courier New, Courier" color=#ff00ff 
size=1>"           
"+ <FONT 
face="Courier New, Courier" color=#0000ff size=1>WriteVal<FONT 
face="Courier New, Courier" 
size=1>(C);Column2Format=<FONT 
face="Courier New, Courier" color=#ff00ff size=1>1.2<FONT 
face="Courier New, Courier" size=1>;<FONT face="Times New Roman" 
size=3>_____________________________

Dimitris 
  Tsokakis // Anticipating 
  Next bar Support/Resistance via RSI trendlines<FONT 
  size=3>// An application of G. Siligardos 
  method// by D. Tsokakis, June 
  2003
 
 
 
  
 
 
 
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Steve Wiser 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, June 14, 2003 9:53 
  PM
  Subject: Re: [amibroker] Siligardos 
  method : Another application
  DimitrisI took the liberty of hacking your 
  code to do an exploration.I added to the bottom of you code for 
  Anticipating Next bar Support/Resistance the following and it provides me some 
  interesting stock picks.  I filter out thinly traded stocks and stocks 
  that have an average below 5 over the past month.This gives me any 
  stocks that are tracking higher on breakout volume.  These have should 
  have some continued momentum.  Of course I check the chart for tightness 
  and other things after this initial selection 
  process.Steve<FONT face="Courier New, Courier" 
  size=1>_______________________________Filter = Ar><FONT 
  face="Courier New, Courier" color=#ff00ff size=1>0<FONT 
  face="Courier New, Courier" size=1> AND as><FONT 
  face="Courier New, Courier" color=#ff00ff size=1>0<FONT 
  face="Courier New, Courier" size=1> AND <FONT 
  face="Courier New, Courier" color=#0000ff size=1>MA<FONT 
  face="Courier New, Courier" size=1>(V,<FONT 
  face="Courier New, Courier" color=#ff00ff size=1>20<FONT 
  face="Courier New, Courier" size=1>)><FONT 
  face="Courier New, Courier" color=#ff00ff size=1>100000<FONT 
  face="Courier New, Courier" size=1> AND <FONT 
  face="Courier New, Courier" color=#0000ff size=1>MA<FONT 
  face="Courier New, Courier" size=1>(C,<FONT 
  face="Courier New, Courier" color=#ff00ff size=1>21<FONT 
  face="Courier New, Courier" size=1>)><FONT 
  face="Courier New, Courier" color=#ff00ff size=1>5<FONT 
  face="Courier New, Courier" size=1> AND (<FONT 
  face="Courier New, Courier" color=#0000ff size=1>MA<FONT 
  face="Courier New, Courier" size=1>(V,<FONT 
  face="Courier New, Courier" color=#ff00ff size=1>3<FONT 
  face="Courier New, Courier" size=1>)/<FONT face="Courier New, Courier" 
  color=#0000ff size=1>MA<FONT face="Courier New, Courier" 
  size=1>(V,<FONT face="Courier New, Courier" color=#ff00ff 
  size=1>21))><FONT 
  face="Courier New, Courier" color=#ff00ff size=1>1.0<FONT 
  face="Courier New, Courier" size=1>;NumColumns = <FONT 
  face="Courier New, Courier" color=#ff00ff size=1>5<FONT 
  face="Courier New, Courier" size=1>;Column1 = <FONT 
  face="Courier New, Courier" color=#0000ff size=1>MA<FONT 
  face="Courier New, Courier" size=1>(V,<FONT 
  face="Courier New, Courier" color=#ff00ff size=1>3<FONT 
  face="Courier New, Courier" size=1>)/<FONT face="Courier New, Courier" 
  color=#0000ff size=1>MA<FONT face="Courier New, Courier" 
  size=1>(V,<FONT face="Courier New, Courier" color=#ff00ff 
  size=1>17<FONT face="Courier New, Courier" 
  size=1>);Column1Name = <FONT face="Courier New, Courier" 
  color=#ff00ff size=1>"MAV(3/17)"<FONT face="Courier New, Courier" 
  size=1>;<FONT face="Courier New, Courier" color=#ff00ff 
  size=1>"           
  "+<FONT 
  face="Courier New, Courier" color=#0000ff size=1>WriteVal<FONT 
  face="Courier New, Courier" size=1>(<FONT face="Courier New, Courier" 
  color=#0000ff size=1>MA<FONT face="Courier New, Courier" 
  size=1>(V,<FONT face="Courier New, Courier" color=#ff00ff 
  size=1>3)/<FONT 
  face="Courier New, Courier" color=#0000ff size=1>EMA<FONT 
  face="Courier New, Courier" size=1>(V,<FONT 
  face="Courier New, Courier" color=#ff00ff size=1>17<FONT 
  face="Courier New, Courier" size=1>));Column1Format=<FONT 
  face="Courier New, Courier" color=#ff00ff size=1>1.2<FONT 
  face="Courier New, Courier" size=1>;Column2 = 
  C;Column2Name = <FONT face="Courier New, Courier" 
  color=#ff00ff size=1>"Today's Close "<FONT face="Courier New, Courier" 
  size=1>;<FONT face="Courier New, Courier" color=#ff00ff 
  size=1>"           
  "+ <FONT 
  face="Courier New, Courier" color=#0000ff size=1>WriteVal<FONT 
  face="Courier New, Courier" 
  size=1>(C);Column2Format=<FONT 
  face="Courier New, Courier" color=#ff00ff size=1>1.2<FONT 
  face="Courier New, Courier" size=1>;<FONT 
  size=3>_____________________________
  Dimitris 
    Tsokakis // 
    Anticipating Next bar Support/Resistance via RSI trendlines<FONT 
    size=3>// An application of G. Siligardos 
    method// by D. Tsokakis, June 
    2003Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.