log in     sign up for free
 
In fact, the ironic part of system design is if you want to maximize profits, you must be willing to give back a great deal of the profits you have already accumulated.
Van K. Tharp
 
 
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

LinRegSlope Divergence

System for: MetaStock


 

 

Views:  2488

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
Re: LinRegSlope divergence
* To: metastock@xxxxxxxxxxxxx
* Subject: Re: LinRegSlope divergence
* From: Pierre Tremblay <pt2000@xxxxxxxxxxxxxxxx>
* Date: Mon, 23 Jul 2001 14:01:25 -0400
* References: <000401c112f3$da6cc980$45b272c3@xxx>
* Reply-To: metastock@xxxxxxxxxxxxx
* Sender: owner-metastock@xxxxxxxxxxxxx

> They are very profitable in tests, just too good to be true. That's because
> it is... Tests results back-adjust themselves (ie, you know you should have
> gone long 3 bars after the fact, just like the ZigZag indicator).
>
> My question is: what's wrong with the formula?? For all I know LinRegSlope
> indicator doesnt change its apperance on the chart going back. MS Help says
> the divergence function uses ZigZag ... is that it?
>
> Thanks,
> Yarroll

Yarroll,

DIVERGENCE function uses ZIG ZAG function. So you have the same behavior.

Pierre Tremblay

This reminds me of a problem I ran into a while back. Reasoning that a peak or trough, once established, ought to remain a peak or trough, I decided to see whether one could make a profit by taking action after the change of direction had been recognized. So I wrote a system that said, in effect, "Take a position after the price has moved X points down from the peak or up from the trough," where X was the size of the move required to establish that a peak or trough had been made. Worked like a charm! Except, of course, that when I looked at it on short intraday bars, about once a week it would decide that a bunch of peaks and troughs had never happened, and the up or down trend had been continuously in effect since almost forever. If I'd actually been trading, significant money would have gone the wrong direction.

So, fine. Now I accept that there is no way around the peak/trough problem. Yet I can't help thinking that a peak (or trough) established by prices X percent lower (or higher) on either side ought to remain a peak or trough, no matter
what else happens later. Can anyone explain what it is about the way the relevant functions are written that invalidates this reasoning? Or direct me to a resource that will explain it to me, in very small words?

Many thanks.
Owen Davies

 

 



Code:

LinRegSlope Divergence

Buy long:
divergence(C,LinRegSlope(C,2),0.01)=-1

Sell short:
divergence(C,LinRegSlope(C,2),0.01)=1


 





Source: http://www.purebytes.com/archives/metastock/2001/msg02982.html

 

View similar:

Buy Trigger Trading System
StoRSI Trading System
Gil Raff MarketSpace Timing System
Combining Trend and Oscillator Signals
25x25 Bond System
Chandelier Exit
Crude Oil Seasonal Trade
Candle - 3 Crows & Soldiers & %D
LinRegSlope Divergence
ANTI Trigger Trading 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