Sachin
What if your condition is not met?
In other words, if the High is not greater than the highest high of the last
four days, or the low.
To create an indicator,
you need to specify the value if your condition if true/not
true.
Therefore, if both
your conditions are met, the value of the indicator will be 1 (true) or Zero
(false).
So in your example:
a:= if(HIGH > Ref(HHV(HIGH,4),-1) AND
VOLUME >500000, 1,0);
b:= if(LOW < Ref(LLV(LOW,4),-1) AND
VOLUME >500000, 1,0);
a-b;
So a-b will always be 1, 0, or -1.
That can be plotted as a histogram.
Dusant
----- Original Message -----
Sent: Saturday, February 19, 2005 3:38
AM
Subject: Re: [EquisMetaStock Group] Help
needed for an indicator
Hello Dusant, Thank you for a
reply,
Basically in my exploration, a)HIGH > Ref(HHV(HIGH,4),-1)
AND VOLUME >500000 I'm looking for the high of the 4 days
and for the volume to exceed 500000, for my criteria to meet.
Even
if I do an exploration simply by HIGH > Ref(HHV(HIGH,4),-1) and with
the reults do another expl0ration for just the volume AND
VOLUME >500000 The results I get from both the explorations
are the same, regardless whether both the condtions are carried out
separately or combined.
Therefore here i'm looking for both the
conditions to be true. With the results of the true condtion I want to
convert it into a histogram chart. The histogram value is the results
from both of my exploration on the HIGH - LOW results as indicated by the
exploration (a) - (b)
My explorations (recap)
a)HIGH >
Ref(HHV(HIGH,4),-1) AND VOLUME >500000
b)LOW <
Ref(LLV(LOW,4),-1) AND VOLUME >500000
Thus ultimate
value for new indicator is (a) - (b)
Actually I was reading this
book Trading for a living and found this indicator as mentioned by the
author. Hoefully you have read it too. If yes, then it's mentioned in page
194 of the book.
I hope my explanation here is clearer and sorry if my
earlier post is not clear, my apologies.
Thank
you
Sachin
--- In
equismetastock@xxxxxxxxxxxxxxx, Dusant <cooldush@xxxx> wrote: >
Sachin > > There is a basic defect in your
question. > > When you want a condition, when the high is
greater than its previous four highs, and volume is greater than 500000,
what is the value you want to register, when the condition is true? The
High? > > Similarly for the low. > > It
would be better if you post the code which you have already worked on and
then ask what you need. > > Dusant >
----- Original Message ----- > From:
sachinsac31 > To: equismetastock@xxxx
> Sent: Friday, February 18, 2005 11:25
AM > Subject: [EquisMetaStock Group] Help needed
for an indicator > > > > >
> Hi Everyone > > I need a help to creat a new
indicator based on the two results from > the
exploration values. > > a)HIGH >
Ref(HHV(HIGH,4),-1) AND VOLUME >500000 > eg,result
=300 > > b)LOW < Ref(LLV(LOW,4),-1) AND VOLUME
>500000 > > eg, result = 290 > > the indicator to
create is the values of a-b > > Thus the new
indicator is NEW IND = a-b > eg, 300 - 290 = 10 > and
finally to plot a histogram on this value of 10 > > Can
some one out there please assist me in creating this
indicator > for my chart setting > > Thank
you > sachin > Yahoo! India Matrimony: Find your life
partneronline.
Yahoo! Groups Links
Yahoo! India Matrimony: Find your life partner
online. |