[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Formation efficiency



PureBytes Links

Trading Reference Links


Great Thanks to you, Dimitris
 
Tom Supera
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Dimitris 
Tsokakis 
To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, October 06, 2001 8:13 
PM
Subject: [amibroker] Formation 
efficiency

How many times (expressed in %) a stock gained 
more than P% in the next T days after a formation F 
?
The answer is in the Exploration
 
/*FORMATION EFFICIENCY*/
COND=Your condition 
here;
T=10;/*Days after the 
formation*/
P=10;/*Percentage 
gain*/
H1=100*(-<FONT 
size=2>1+HHV<FONT 
size=2>(C,T)/Ref(C,-T));
Buy=COND;
Sell=Ref(COND,-T);
C1=IIf(<FONT 
size=2>H1>P,1,<FONT 
size=2>0);
C2=Cum(Sell AND C1);
C3=Cum(Sell);
Filter=1;
NumColumnS=1;
Column0=100*<FONT 
size=2>LastValue(C2)/<FONT 
size=2>LastValue(C3);
Column0Name="%";
 
The condition may be a candlestick formation or any
other interesting event (a buy cross), which may be considered as
a "Buy" criterion.
Explore  your database 
for All Stocks, <FONT 
color=#ff0000>n last days n=1 
and click on "%" to sort the champions.
A reading 65 in "%" column means that the certain stock in the 
65% of F formation gave more than P% gain in T days.
This is a way to backtest a database, when we want to find 
the efficiency of a "buy" condition
 
Dimitris Tsokakis
 Your 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.