log in     sign up for free
 
If you can't take a small loss, sooner or later you will take the mother of all losses.
Ed Seykota
 
 
Home
systems (284)
 
 
Special offer: buy AmiBroker and EOD+Real-Time 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

Linear Regression Reversal System

System for: MetaStock


 

 

Views:  2145

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
 
Your Ad Here
Barbara Star's, "Trade the Swing Price" uses a 5-period linear regression indicator as the basis for buy and sell signals. The formulas for the reversal indicator and the system based on it are below.

Here is the system test to go with it. To add this to MetaStock; open the system tester. Click New and enter the name of the test. Then enter the following formula in the respective areas. Please note, MetaStock 8.0 will have a slightly different name for these areas, but the formulas are the same. Also, the article suggested a trailing stop for the exit conditions, but did not recommend how tight to set the stop. Therefore, this tip makes not recommendation. After entering the formulas, click on stops and enable the trailing stop for both long and short positions. Set the trailing stop at a value you are comfortable with and click Okay. The system test is now ready to use.

William Golson
Equis International

 

 



Code:

Linear Regression Reversal System
Enter Long:

LRR:=If( LinearReg(C,5)>(Ref( LinearReg(C,5),-1)),+1, If( LinearReg(C,5)<(Ref(LinearReg(C,5),-1)),-1,0));
Ref(LRR,-1)=1 AND C> Ref(C,-1)

Enter Short:

LRR:=If( LinearReg(C,5)>(Ref( LinearReg(C,5),-1)),+1, If( LinearReg(C,5)<(Ref(LinearReg(C,5),-1)),-1,0));
Ref(LRR,-1)=-1 AND C< Ref(C,-1)


 






Author: Barbara Star
Source: http://www.equis.com

 

View similar:

Miesal Indicator System Test
RSI Divergence Trading System
Bull Fear/Bear Fear with DX System
Key Reversals System
Genesis of a Simple Futures Trading System
Automatic Support and Resistance Trading System
Chandelier Exit
Chandelier Exit 2
Ultimate Signal Generator
Stock Rhythm System
...
 
 
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.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012