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

Re: use IF statement, return nul value



PureBytes Links

Trading Reference Links

John,

I do not have much time this am, will send later.  But in mean time, I did cut
and paste.
And after looking at your gif, I 'suspect' possibly yours is plotting each bar
also.  Look at the first candlestick extreme left, at the bottom of the body and
the top of its bottom wick, there is a 'small' rectanglular structure.  Try
changing your color to a high contrast color such as white and see what you get.



Dan

jhmtn wrote:

> Dan,
>
> ??? If you just did a cut and paste of the indicator, I don't know.
> I've attached a gif showing the results I obtained.  Notice that the
> "Dot" just shows over the bars that are Inside Day bars (errr....
> candlesticks I should say).
>
> Send me your chart and a copy of the indicator you applied and
> maybe I can tell.  Is it possible that the chart you've used to test
> has an abnormally high number of Inside Days?
>
> Bewildered at your results without more info.
> John
>
> ----- Original Message -----
> From: "Dan" <dcash@xxxxxxxxxxxx>
> To: <metastock@xxxxxxxxxxxxx>
> Sent: Monday, January 29, 2001 7:41 PM
> Subject: Re: use IF statement, return nul value
>
> > I get the indicator putting a dot over every bar.  What am I doing wrong?
> >
> >
> > jhmtn wrote:
> >
> > > Michael,
> > >
> > > Yes! This is how I implemented the useage.  With graphic bars,
> > > it makes the close more noticeable to the eye, with graphic
> > > candlesticks, it often dissappears.
> > >
> > > There are manual changes needed however:
> > > 1. The line style has to be changed to being a dotted line.
> > > 2. The line weight has to changed to being thicker than the
> > >     default.
> > > 3. The line color has to be changed to match the color of the
> > >     price bar.
> > >
> > > To test how this works, try the following indicator that puts
> > > a dot above an Inside Day Bar:
> > >
> > >         If((Inside()=1),H*1.015,C)
> > >
> > > Hope this helps ............ John
> > >
> > > ----- Original Message -----
> > > From: "michael" <mslist@xxxxxxxxxxxxxxxx>
> > > To: <metastock@xxxxxxxxxxxxx>
> > > Sent: Monday, January 29, 2001 8:51 AM
> > > Subject: RE: use IF statement, return nul value
> > >
> > > > If your formula permits, you can use the closing price as the null
> value.
> > > > This doesn't throw off the scaling like a zero value does.
> > > >
> > > > example: if( expr, true, close);
> > > >
> > > > Hope this helps.
> > > > Michael
> > > >
> > > > -----Original Message-----
> > > > From: owner-metastock@xxxxxxxxxxxxx
> > > > [mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of neo
> > > > Sent: Friday, January 26, 2001 3:20 PM
> > > > To: metastock@xxxxxxxxxxxxx
> > > > Subject: RE: use IF statement, return nul value
> > > >
> > > >
> > > > Bob
> > > >
> > > > I tried everything on this a little while ago and called MS support.
> It is
> > > > not possible. What I has to do what make up a null indicator that is
> 0. I
> > > > then plot this as the last indicator with a gray line and this covers
> up
> > > the
> > > > 0 points.
> > > >
> > > > neo
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: owner-metastock@xxxxxxxxxxxxx
> > > > [mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Bob Webb
> > > > Sent: Thursday, January 25, 2001 9:29 AM
> > > > To: metastock@xxxxxxxxxxxxx
> > > > Subject: use IF statement, return nul value
> > > >
> > > >
> > > > I want to use an IF Statement in an indicator.
> > > >
> > > > But I want the "else" part of the statement to return nothing... a nul
> > > > value, and not a 0 (zero) nor anything else.
> > > >
> > > > Reason: What I want to plot is a point over the bar when a condition
> is
> > > > met, and to plot nothing when the condition is not met. If you put a 0
> > > > (zero) as the "else" part of the statement, then the indicator plots a
> > > zero
> > > > at the bottom of the graph; I don't want this.
> > > >
> > > > Can you help?
> > > >
> > > > Bob.
> > > >
> > > >
> > > > ==============+==============
> > > > Robert L. Webb
> > > > Webb.Bob@xxxxxxxx
> > > > ===============+=============
> > > >
> > > >
> > > >
> >
> > --
> >
> > mailto:dcash@xxxxxxxxxxxx
> >
> > Kibosh spam: http://spamcop.net/
> >
> > Dan
> >
> >
>
>   ------------------------------------------------------------------------
>                                    Name: Inside Day Dot Indicator.gif
>    Inside Day Dot Indicator.gif    Type: GIF Image (image/gif)
>                                Encoding: base64

--

mailto:dcash@xxxxxxxxxxxx

Kibosh spam: http://spamcop.net/

Dan