I am trying to back test different systems that want
to buy
Todays High Price + .125 and the following code works only when the
next days price is > the h,-1 otherwise it will buy the h of the
entry day and not the day before.
This should a simple thing to do but I can't make it work??
THANKS
Ernie
CondA = C > O;
CondB = O < C;
SetTradeDelays(1,1,1,1);
BuyStop = Ref(H,-1); // *1.01; //the formula for Buy stop level;
SellStop = Ref(L,-1)*0.99; //the formula for Sell stop level;
Buy = CondA;
Sell = CondB;
BuyPrice = Max( BuyStop, Low ); // make sure buy price not less than
Low
SellPrice = Min( SellStop, High ); // make sure sell price not
greater than High