log in     sign up for free
 
Whenever you get hit, you are very upset emotionally. Most traders try to make it back immediately; they try to play bigger. Whenever you try to get all your losses back at once, you are most often doomed to fail.
Marty Schwartz
 
 
Home
systems (285)
 
 
Special offer: buy AmiBroker and EOD+Real-Time Data
 

Buy

MetaStock

     (special offer)
 
 
 

Buy

EOD data for MetaStock

     (special offer)
 
 
 

Buy

Realtime data for MetaStock

     (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

4% Rule

Formula for: MetaStock

indicator

 

 

Views:  2194

Added: May 29, 2008
 
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, indicator
 


Q: Is it possible to write the "4% Rule" intoa custom formula?

A: The "4% Rule", popularized by Martin Zweig, among others, states that you enter the market after it has gone UP 4%, and exit the market after it has gone DOWN 4%. This counter-intuitive rule is intended to get you into (or out of) the big price moves. This is a good strategy for a strongly-trending market, but a poor strategy for a sideways market.

The following formula uses the PREV function and is slow to calculate onlarge amounts of data. The formula returns +1 in buy mode, -1 in sellmode, and 0 before there is a signal.

 

 



Code:

4% Rule
If(PREV = 1,
If(CLOSE < HighestSince(1,PREV <> 1,CLOSE)*.96,
-1,PREV),
If(PREV = -1, If(CLOSE>LowestSince(1,PREV <> -1,CLOSE)*1.04,
+1,PREV),
If(PREV = 0, If(CLOSE>Lowest(CLOSE)*1.04,
+1,
If(CLOSE -1,
PREV)),PREV)))

 





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

 



Author: Martin Zweig
Source: http://www.DeBry.com

 

View similar (indicator for MetaStock):

Plotting Forward Days
Divergence Between the Close and an Indicator
Multi-Stop Indicator
Bollinger Band of MACD
Breakout Range2
Support and Resistance
Buy and Hold Indicator
ATR Custom Indicator
Exponential Moving Average - Trade-Adjusted
Standard Deviation Bands
...
 
 
all formulas for MetaStock
all formulas

 

 

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