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

RE [amibroker] Candlestick Formulae Building Blocks



PureBytes Links

Trading Reference Links

HI AB GROUP
I try to play litle bit with Candlestick but i thing i have sothing wrong
here

BUILDING BLOCKS
Maximum High Today - (MHT)
We want to see today's high as the highest of the past (5) days
MAXH5=H
****** MHT= hhv(close,5) ;
Maximum High Yesterday - (MHY)
We want to see yesterday's high as the highest of the past (5) days
MAXH5=H1
****** MHY=ref(hhv(close,5),-1) ;
Minimum Low Today - (MLT)
We want to see today's low as the lowest of the past (5) days
MINL5=L
********* MLT = llv( close, 5) ;
Minimum Low Yesterday - (MLY)
We want to see yesterday's low as the lowest of the past (5) days
MINL5=L1
********* MLY = REF(llv( close, 5),-1) ;

------------ here is my trying ALF ----------
Upside Gap Three
C2>=O2*1.01 AND L1>H2 AND C1>=O1*1.01 AND O<C1
AND O>H2 AND C<C2
(MHY)
*********

UpsideGapThree=
ref(close,-2) >= ref(open,-2)*1.01 //C2>=O2*1.01
AND ref(low,-1) > ref(high,-2) //L1>H2
AND ref(close,-1) >= ref(open,-1)*1.01 //C1>=O1*1.01
AND O <ref(close,-1) //O<C1
AND O >ref(high,-2) // O>H2
AND C <ref(close,-2) // C<C2
AND MHY;

Bullish Harami
C1<=O1*.99 AND H<=O1 AND L>=C1 AND C>O
(MLY)
************
BullishHarami =
ref(close,-1)<= ref(OPEN,-1)*.99 //C1<=O1*.99
AND H<= ref(open,-1) // H<=O1
AND L>= ref(close,-1) // L>=C1
AND C>O
AND MLY ;


///---------------------------------\\\
Panagiotis Boufardeas
akaraman@xxxx

UNI #ICQ 28735786