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

Re: Buy Sell Occuring at the wrong Bars



PureBytes Links

Trading Reference Links

if the highest high / lowest low condition
is updated on current bar, you buy / sell
next bar... ( case 1,2,3 indicator paint current bar but
you buy, sell next bar )
if the highest high / lowest low condition
is set on any other bar but the current bar
you buy / sell the current bar as it's considered
to be the "next" bar from which ever bar last
updated your hh, ll condition.
( other cases, indicator paints this bar and you buy sell
this bar too )
catching that?:-)
bilo.

----- Original Message -----
From: "Wayne Mathews" <wayne@xxxxxxxxx>
To: "=omega list" <omega-list@xxxxxxxxxx>
Sent: Monday, October 15, 2001 7:42 PM
Subject: Buy Sell Occuring at the wrong Bars


> I have a signal made up of the code below on a chart of VRSN.
>
> buy next bar highest(h,5)   stop;
> sell next bar lowest(L,5) stop;
>
> Also added to the chart is the indicator below which gives the red and
> blue dots
>
> if h=highest(h,5) then plot1(h);
> if L=lowest(L,5) then plot2(L);
>
>
> A buy should occur on the first bar with a red dot (indicating that bar
> is the highest high in the last 5 bars) after a sell. Also, a sell
> should occur on the first bar with a blue dot (indicating that bar is
> the lowest low in the last 5 bars) after a buy. This generally happens
> but a number of times the buy and sell occur on the SECOND highest high
> or lowest low (see 1, 2, and 3).  Anyone have an explanation for this
> behavior? (MarketPosition changes at the buy and sell bars).
>
> Replacing "sell next bar lowest(L,5) stop" with "ExitLong  Next Bar at
> lowest(L,5)  Stop" gives the same results.


----------------------------------------------------------------------------
----