ref function and candlestick

#1
hi,
this is ali from hyderbad, i want to now , how can wee now that, was there a hammer or doji occured yesterday by using a formula in exploration?

example if i wrigt a formula as hammer() in exploration metastock will find mee those stocks which has a hammer today. But i want to find which of the stocks had hammer yesterday, day before yesterday weak ago month ago like that. i am trying to build a formula with ref function here but anable to do so. Will some body help me to do so please.

waiting for your inputs -Ali
 
#3
thanks uasis bhai it worked. one more thing i would like to ask is it possible to do exploration date wise like if i want to explore hammer on 1st of janvary 2008 is it possible ?

waiting for your replay's -Ali
 
U

uasish

Guest
#4
Ali,

There is a provision to do exploration Date Specific ,in the Exploration box Option,put the Date there.

Asish
 
#5
hi ali agaain,
thanks uasish bhai. it worked . when you open exploration windo, choose which a formula and go for edit in edit windo, there is a option, where wee can choose the date for exploration. and to now more about it, after choosing a formula go for help in that choose option, lot of details about it . dam i love this soft ware who ever programed it and thougth fist about it he really deserve ouer thanks and congrats.

once thanks for the hel uasish bhia,
thankse traderji, and sorry about broken english
Ali from hyderabad
 

oxusmorouz

Well-Known Member
#7
Ref( hammer(),-1) will give you stocks having formed a Hammer yesterday in Metastock.
I think that returns the day when the hammer occurred previously. This should suit the circumstances more:

{Inputs}
a:= Input("DayLag",1,10000,1);

{Variable}
b:= Hammer();

{Output}
d:= BarsSince(b) = a;
d
 

oxusmorouz

Well-Known Member
#8
thanks uasis bhai it worked. one more thing i would like to ask is it possible to do exploration date wise like if i want to explore hammer on 1st of janvary 2008 is it possible ?

waiting for your replay's -Ali
{Inputs}
a:= Input("Day of the month",1,31,1);
b:= Input("Month",1,12,1);
d:= Input("Year",1896,2200,2008);

{Variable}
f:= Hammer();
g:= DayofMonth() = a;
i:= Month() = b;
j:= Year() = d;

{Output}
k:= f And (g and i and j);
k
 

Similar threads