log in     sign up for free
 
If you really think the stock is going to make a big move - and that should be the only reason you are buying the stock to begin with - then there is no reason to haggle over an eighth of a point. Just buy the stock.
David Ryan
 
 
Home
systems (285)
 
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD Data
 

Buy

AmiBroker

     (special offer)
 
 
 

Buy

EOD data for AmiBroker

     (special offer)
 
 
 

Buy

Realtime data for AmiBroker

     (special offer)
 
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

MetaStock System Test 05 - Tema StochRSI_13 & 55

System for: MetaStock

 

 

Views:  1454

Added: February 09, 2007
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 
 

email this link

 
 
Tags: MetaStock, system
 


For my last MetaStock system test, (05_StochRSI_13 & 55) I used the StochRSI formula described at the Equis site then modified it slightly. The original formula was:

StochRSI
((RSI(14)-LLV(RSI(14),14))/((HHV(RSI(14),14))-LLV(RSI(14 ),14)))




I didn't want to use a specific number such as 14 for my formula, but want to be able to use my favorite Fibonacci numbers. I also wanted to smooththe formula with Tema smoothing. I finally settled on the Fibonacci numbersof 13 and 55 for my formulas. I also subtracted 0.5 from the result so Icould plot the formula as a histogram. Therefore my formulas became:

Tema StochRSI_13
Periods := Input("Enter Tema Smoothing Periods",5,233,13);
Tema(((RSI(Periods) - LLV(RSI(Periods),Periods)) /
((0.0001 + HHV(RSI(Periods),Periods)) - LLV(RSI(Periods),Periods))) -0.5,Periods)



Tema StochRSI_55
Periods := Input("Enter Tema Smoothing Periods",5,233,55);
Tema(((RSI(Periods) - LLV(RSI(Periods),Periods)) /
((0.0001+HHV(RSI(Periods),Periods)) - LLV(RSI(Periods),Periods))) -0.5,Periods)




After I decided on the formulas, the next step was how to use them in a system test. I plotted the two formulas above several of my favorite stocks andlooked at them for buying patterns. Since they are plotted as a histogramI looked at zero crossovers to the upside as buys and to the downside assells. Then instead of a zero crossover, I used an optimized value crossover.After some experimenting, I found that the shorter length crossover gavebetter signals if I also required the longer length one to be negative, andconfirmed an up move by also requiring that a short term moving average wasmoving up. Finally I saw that there was usually a good buy signal when thelonger term formula crossed the optimized value and the shorter term formulawas above zero. Therefore my open long signal became:

MetaStock System Test 05 - Tema StochRSI_13 & 55
Open Long :

(Alert(Cross(Fml("Tema StochRSI_13"),opt1),21) AND
Fml("Tema StochRSI_55") < 0 AND Mov(C,21,VAR) > Ref(Mov(C,21,VAR),-8)) OR
Alert(Cross(Fml("Tema StochRSI_55"),opt1),13) AND
Fml("Tema StochRSI_13") > 0




I couldn't find a good close long signal, but did find that a reverse toa short on the longer term StochRSI crossing an optimized value confirmedby a falling moving average seemed to work well. Therefore my Open Short became:

Open Short :
Alert(Cross(opt2,Fml("Tema StochRSI_55")),13) AND
Mov(C,21,VAR) < Ref(Mov(C,21,VAR),-8)

The optimization valiues are:

opt1: Min = -0.3 Max = 0 Step = 0.1
opt2: Min = -0.3 Max = 0 Step = 0.1






That's all there is to the StochRSI test, but it seems to work very wellfor some stocks. Try it and let me know what you think.

from Jim Greening

 

 



Code:

For my last MetaStock system test, (05_StochRSI_13 & 55) I used the StochRSI formula described at the Equis site then modified it slightly. The original formula was:

StochRSI
((RSI(14)-LLV(RSI(14),14))/((HHV(RSI(14),14))-LLV(RSI(14 ),14)))




I didn't want to use a specific number such as 14 for my formula, but want to be able to use my favorite Fibonacci numbers. I also wanted to smooththe formula with Tema smoothing. I finally settled on the Fibonacci numbersof 13 and 55 for my formulas. I also subtracted 0.5 from the result so Icould plot the formula as a histogram. Therefore my formulas became:

Tema StochRSI_13
Periods := Input("Enter Tema Smoothing Periods",5,233,13);
Tema(((RSI(Periods) - LLV(RSI(Periods),Periods)) /
((0.0001 + HHV(RSI(Periods),Periods)) - LLV(RSI(Periods),Periods))) -0.5,Periods)



Tema StochRSI_55
Periods := Input("Enter Tema Smoothing Periods",5,233,55);
Tema(((RSI(Periods) - LLV(RSI(Periods),Periods)) /
((0.0001+HHV(RSI(Periods),Periods)) - LLV(RSI(Periods),Periods))) -0.5,Periods)




After I decided on the formulas, the next step was how to use them in a system test. I plotted the two formulas above several of my favorite stocks andlooked at them for buying patterns. Since they are plotted as a histogramI looked at zero crossovers to the upside as buys and to the downside assells. Then instead of a zero crossover, I used an optimized value crossover.After some experimenting, I found that the shorter length crossover gavebetter signals if I also required the longer length one to be negative, andconfirmed an up move by also requiring that a short term moving average wasmoving up. Finally I saw that there was usually a good buy signal when thelonger term formula crossed the optimized value and the shorter term formulawas above zero. Therefore my open long signal became:

MetaStock System Test 05 - Tema StochRSI_13 & 55
Open Long :

(Alert(Cross(Fml("Tema StochRSI_13"),opt1),21) AND
Fml("Tema StochRSI_55") < 0 AND Mov(C,21,VAR) > Ref(Mov(C,21,VAR),-8)) OR
Alert(Cross(Fml("Tema StochRSI_55"),opt1),13) AND
Fml("Tema StochRSI_13") > 0




I couldn't find a good close long signal, but did find that a reverse toa short on the longer term StochRSI crossing an optimized value confirmedby a falling moving average seemed to work well. Therefore my Open Short became:

Open Short :
Alert(Cross(opt2,Fml("Tema StochRSI_55")),13) AND
Mov(C,21,VAR) < Ref(Mov(C,21,VAR),-8)

The optimization valiues are:

opt1: Min = -0.3 Max = 0 Step = 0.1
opt2: Min = -0.3 Max = 0 Step = 0.1






That's all there is to the StochRSI test, but it seems to work very wellfor some stocks. Try it and let me know what you think.

from Jim Greening


 




 

Code to difficult? Find somebody to help you with coding here.

 


Source: http://www.guppytraders.com

 

View similar:

Crude Oil Seasonal Trade
MACD Difference System
Breakout Range2
MetaStock System Test 05 - Tema StochRSI_13 & 55
Pathfinder Trading System
Candle - 3 Crows & Soldiers & CCI
StoRSI Trading System
ANTI Trigger Trading System
Psychological Index
Volume Oscillator System w/Optm
...
 
 
all systems for MetaStock
all systems

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
PayPalSecure payments by PayPal S4T™ is a part of TAURO EDUCATION NETWORK
 
Privacy note | (c) copyrights systems4trading.com 2006-2009