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

Formation efficiency



PureBytes Links

Trading Reference Links


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