[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

explore: sell after x days



PureBytes Links

Trading Reference Links

Hi all, just got Amibroker and I'm playing around with backtesting.
There's probably a simple answer to this, but I can't find out how to 
sell after 5 days. Have tried this: 

sell=iif(hold(0,5),0,1);

but it doesn't work. I have also changed sell delay to 5 in Settings 
but the stocks are sold the same day they get bought.