log in     sign up for free
 
You can't make money if you're not willing to lose. It's like breathing in, but not being willing to breathe out. Various types of exits will help you do this (i.e., breathe fully), including trailing stops and the percent retracement stop.
Van K. Tharp
 
 
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

ANTI Trigger Trading System

System for: MetaStock

 

 

Views:  2878

Added: December 04, 2006
 
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
 


Re: A N T I Indicator

To: metastock@xxxxxxxxxxxxx
Subject: Re: A N T I Indicator
From: Philippe Poulat
Date: Mon, 10 May 1999 19:15:27 +0200
Reply-To: metastock@xxxxxxxxxxxxx
Sender: owner-metastock@xxxxxxxxxxxxx


At 04:36 09/05/99 -0500, you wrote:

All, Last week as I was perusing the misc.invest.futures newsgroup I came across a post containing what I guess is the TradeStation code for LindaBradford Raschkes "ANTI" indicator from the book "Street Smarts". I've copiedthatpost in it's entirety should someone here want to have a go at translatingit into MetaStock code. All I ask is anyone who is successful please sharewith the group. Regards, Bill N. Milwaukee, WI USA

On Sat, 8 May 1999 10:21:30 +0800, "Ezzz" wrote:

Does anyone trade the ANTI described in the book Street Smarts?
I believe credit for this goes to "The Code".
===================================================================

{ANTI TRIGGER}


INPUT:FASTLINE(SLOWK(7)),SLOWLINE(SLOWD(10)),
SETBARS(3),ENTRYADD(1 POINTS),EXITADD(1 POINTS);


VAR:BBUY(0),SSELL(0),CBUY(0),CSELL(0),FF(0),SS(0),
LXSTOP(0),SXSTOP(99999),MP(0);

FF=FASTLINE;
SS=SLOWLINE;
MP=MARKETPOSITION;
IF MP<1 THEN LXSTOP=L-EXITADD;
IF MP>-1 THEN SXSTOP=H+EXITADD;
IF BBUY[1]<99999 AND H>=BBUY[1] THEN LXSTOP=L-EXITADD;
IF SSELL[1]>0 AND L<=SSELL[1] THEN SXSTOP=H+EXITADD;
EXITLONG("InitialStop") LXSTOP STOP;
EXITSHORT("InitialStop ") SXSTOP STOP;

IF FF>=FF[1] AND SS<=SS[1] THEN CSELL=CSELL+1 ELSE CSELL=0;
IF FF<=FF[1] AND SS>=SS[1] THEN CBUY=CBUY+1 ELSE CBUY=0;

IF CBUY>=SETBARS THEN BBUY=H+ENTRYADD ELSE BBUY=99999;
IF CSELL>=SETBARS THEN SSELL=L-ENTRYADD ELSE SSELL=0;

IF BBUY<99999 THEN BUY("AntiTrigger") BBUY STOP;
IF SSELL>0 THEN SELL("AntiTrigger ") SSELL STOP;




For this one some approximations were done because of differences in calculation in slowk/slowD compared to stoch in metastock and also because of impossibility (as far as I know for EOD version) to to set stop or limit order in metastock. In addition you could do some optimization on ff or ss.

>>>>
(ANTI TRIGGER 1}

INPUT:FASTLINE(AVERAGE(C,3)-AVERAGE(C,10)),SLOWLINE(AVERAGE(AVERAGE(C,3) - AVERAGE(C,10),16)),
SETBARS(3),ENTRYADD(1 POINTS),EXITADD(1 POINTS);

VAR:BBUY(0),SSELL(0),CBUY(0),CSELL(0),FF(0),SS(0),
LXSTOP(0),SXSTOP(99999),MP(0);

FF=FASTLINE;
SS=SLOWLINE;
MP=MARKETPOSITION;
IF MP<1 THEN LXSTOP=L-EXITADD;
IF MP>-1 THEN SXSTOP=H+EXITADD;
IF BBUY[1]<99999 AND H>=BBUY[1] THEN LXSTOP=L-EXITADD;
IF SSELL[1]>0 AND L<=SSELL[1] THEN SXSTOP=H+EXITADD;
EXITLONG("InitialStop") LXSTOP STOP;
EXITSHORT("InitialStop ") SXSTOP STOP;

IF FF>=FF[1] AND SS<=SS[1] THEN CSELL=CSELL+1 ELSE CSELL=0;
IF FF<=FF[1] AND SS>=SS[1] THEN CBUY=CBUY+1 ELSE CBUY=0;

IF CBUY>=SETBARS THEN BBUY=H+ENTRYADD ELSE BBUY=99999;
IF CSELL>=SETBARS THEN SSELL=L-ENTRYADD ELSE SSELL=0;

IF BBUY<99999 THEN BUY("AntiTrigger") BBUY STOP;
IF SSELL>0 THEN SELL("AntiTrigger ") SSELL STOP;

<<<<
just replace in all conditions

ff:=mov(c,3,s)-mov(c,10,s);
ss:=mov(ff,16,s);

>>>>
{ANTI BASIC 2}


Input: FASTLINE(SLOWK(7)),SLOWLINE(SLOWD(10));
IF FASTLINE CROSSES OVER FASTLINE[1] AND SLOWLINE>SLOWLINE[1] AND
SLOWLINE[1]>SLOWLINE[2] Then Buy on Close;
IF FASTLINE CROSSES UNDER FASTLINE[1] AND SLOWLINE SLOWLINE[1]

{ANTI BASIC 1}

Input:
FASTLINE(AVERAGE(C,3)-AVERAGE(C,10)),SLOWLINE(AVERAGE(AVERAGE(C,3) - AVERAGE(C,10),16));
IF FASTLINE CROSSES OVER FASTLINE[1] AND SLOWLINE>SLOWLINE[1] AND
SLOWLINE[1]>SLOWLINE[2] Then Buy on Close;
IF FASTLINE CROSSES UNDER FASTLINE[1] AND SLOWLINE SLOWLINE[1]


<<<<
This one is non understandable : "IF FASTLINE CROSSES OVER FASTLINE[1] "?????
>>>>

Sincerely,
Philippe Poulat

[13838]

 

 



Code:

ANTI Trigger Trading System

Enter long :
setbars:=opt1{3};
entryadd:=opt2{1};
ff:=mov(stoch(7,1),3,e);
ss:=mov(Mov(Stoch(10,1),3,E),3,e);
cbuy:=if(ff<=ref(ff,-1) and ss>=ref(ss,-1),cum(1),0);
bbuy:=if(cbuy>=setbars,H+entryadd, 99999);
bbuy<99999


Exit long :

setbars:=opt1{3};
entryadd:=opt2{1};
exitadd:=opt3{1};
ff:=mov(stoch(7,1),3,e);
ss:=mov(Mov(Stoch(10,1),3,E),3,e);
cbuy:=if(ff<=ref(ff,-1) and ss>=ref(ss,-1),cum(1),0);
bbuy:=if(cbuy>=setbars,H+entryadd, 99999);
lxstop:=if(ref(bbuy,-1)<99999 and h>=ref(bbuy,-1),l-exitadd,l);
c<=lxstop


Enter short :

setbars:=opt1{3};
entryadd:=opt2{1};
ff:=mov(stoch(7,1),3,e);
ss:=mov(Mov(Stoch(10,1),3,E),3,e);
csell:=if(ff>=ref(ff,-1) and ss<=ref(ss,-1),cum(1),0);
ssell:=if(csell>=setbars,l-entryadd,0);
ssell>0


Exit short :

setbars:=opt1{3};
exitadd:=opt3{1};
entryadd:=opt2{1};
ff:=mov(stoch(7,1),3,e);
ss:=mov(Mov(Stoch(10,1),3,E),3,e);
csell:=if(ff>=ref(ff,-1) and ss<=ref(ss,-1),cum(1),0);
ssell:=if(csell>=setbars,l-entryadd,0);
sxstop:=if(ref(ssell,-1)>0 and l<=ref(ssell,-1),h+exitadd,h);
c>=sxstop


 




 

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

 



Author: Linda Bradford Raschke
Source: http://purebytes.com/archives/metastock/

 

View similar:

Automatic Support and Resistance Trading System
Trend Analysis Index System
Tema PDI - MDI
Pivot Points All
System Test Examples
Miesal Indicator System Test
PLdot MP Price's
FibFO
Fazola MAROC System
Stochastic Simianer System Test
...
 
 
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