PureBytes Links
Trading Reference Links
|
At 12:48 PM 2/10/2006, you wrote:
>Thanks to the generous help of list members I have verifiable code as
>follows :
>
>" inputs : TickDist(1);
>
>vars: MarketTicks ( TickDist * MinMove / PriceScale);
>
>Buy next bar at Close + MarketTicks stop;
>SellShort next bar at Close - MarketTicks stop; "
>
>To the above, I am bolting on my standard scale out exit and trailing stop
>strategy that works well with other strategies, ie. there are two strategies
>inserted on the chart : exactly what you see within the inverted commas
>above + my exit strat.
>
>However, the strategy does not issue orders on the current bar; eg, if I set
>TickDist to 10 & the current bar moves up 10 ticks from the close of the
>previous bar, then I want to enter long, but nothing happens until the next
>bar starts to form, by which time the market can be far away from my desired
>entry area (I am using 60 min bars or longer).
It is setting an entry stop at the close of the bar for execution during the next bar. That is what you are asking for. If you are talking about not getting trades in the overnight gap, then you need to be using the Globex symbol.
>Do I have to include "Intrabarpersist variables" to get this to work (I am
>reading about them but find them confusing !) ?
>
>I only want one entry in each direction per bar.
>I have checked "Enable intrabar order generation & calculation" with "Limit
>entries from same signal in this strategy and exits from the same signal in
>this strategy to once per bar" for the entry strat and "Allow entry from
>this strategy and any exit from this strategy to occur multiple times
>perbar" for the exit strat, although no combination of these options enables
>order generation on the current bar.
>I use Build 3066 of 8.1.
>
>Any help would be greatly appreciated, please.
There must be something you are not describing correctly. The code should do what you seem to be asking for.
If all you need is the value of the previous close, you have that and have no need for using InterbarPersist.
Bob Fulks
|