PureBytes Links
Trading Reference Links
|
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).
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.
J.
|