[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

Hi Wayne

The Buy/Sell is correct - system orders are placed the bar prior to the 
actual trade bar ( for stop or limit orders ) - you can't tell 
Tradestation's system language to buy/sell at tomorrow's high or low . 
Indicators on the other hand will plot a high/low of the current bar.

Rgds Stuart


From: Wayne Mathews <wayne@xxxxxxxxx>
To: =omega list <omega-list@xxxxxxxxxx>
Subject: Buy Sell Occuring at the wrong Bars
Date: Mon, 15 Oct 2001 16:42:40 -0700

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.
<< BuySellHiLo.gif >>