PureBytes Links
Trading Reference Links
|
Hi,
Any help for this cut & paste (non-)programmer would be very gratefully
appreciated, please : I am attempting to create a very simple strategy that
enters long or short x ticks from the close of the previous bar, so in
English Language it would be "If on current bar price reaches x ticks from
close of previous bar, then buy or sell ...". I understand that Easy
Language expects to generate orders at the close of the current bar, so I am
endeavouring to get around this.
This is how far I've got, the verification process stops at "stop" !
inputs :
TickDist(1);
vars:
MarketTicks ( TickDist * MinMove / PriceScale);
If currentbar > Close[1] then buy this bar at (Close[1]+MarketTicks) stop;
else
if currentbar < Close[1] then buy this bar at (Close[1]+MarketTicks) stop;
J.
|