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

Bullish Harami(Final ?)



PureBytes Links

Trading Reference Links


Hi David,
I think here we have what you ask.
"FROM" 4 haramis "GAINED" 3, i. e. the
"% G" is 75%.
The most I liked is COLUMN4 syntax.
 
/*BULLISH HARAMI BUY CONDITION*//*GAIN10 DAYS 
LATER*//*PERCENTAGE SUCCESS*/u=5;/*PERCANTAGE DROP THE FIRST 
DAY*/d1=10;/*DAYS TO 
WATCH*/cond1=close<=(1-u/100)*open;cond2=close>open and 
close<ref(open,-1) and open>ref(close,-1);cond3=cond2 and 
ref(cond1,-1);h1=hhv(close,d1);filter=ref(COND3,-d1);BUY=cond3;sell=filter;numcolumns=7;column0=ref(close,-d1);column1=h1;column2=100*(column1/column0-1);column0name="HARAMI 
CLOSE";column1name="HIGHEST CLOSE";column2name="MAX 
GAIN";COLUMN3=LASTVALUE(CUM(BUY));COLUMN4=LASTVALUE(CUM(COLUMN2>0 AND 
SELL));COLUMN5=100*COLUMN4/COLUMN3;COLUMN3NAME="FROM";COLUMN4NAME="GAINED";COLUMN5NAME="% 
G";COLUMN6NAME="B/S  
F";COLUMN3FORMAT=1.0;COLUMN4FORMAT=1.0;COLUMN5FORMAT=1.0;
 
The majority of my 400 stocks, although ina 2 
years bearish
period, were above 50%
 
Dimitris Tsokakis