MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

Linear Regression Reversal System by Barbara Star

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.


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)

 

e-st-Linear_Regression_Reversal_System.gif
William Golson
Equis International
Source / From: TOP
http://www.equis.com

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!