PureBytes Links
Trading Reference Links
|
Stephane
I'm having some problems with scRemBuyTrail() in the latest REM.DLL.
I am testing the following code:
////////////
SetTradeDelays(1,1,0,0);
Buy = Cross(30,RSI());
Sell = Cross(RSI(),70);
entryprice = Open;
stopprice = Low;
stoploss = -1;
trailstop = -1;
target = -1;
exitbin = Sell;
bars = -1;
scRemBuyTrail(Buy,entryprice,stopPrice,stopLoss,trailStop,target,exitBin,bars);
Buy = Buy;
Sell = Sell;
BuyPrice = entryprice;
SellPrice = Open;
////////////
I disabled all parameters except 'exitbin' and so I think the results should be the same as when I don't use scRemBuyTrail().
But the problem is that scRemBuyTrail() ignores my Sell statement and just exits the next day.
Can you help? Thanks.
|