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

Re: [amibroker] Re: empty scan of a watchlist (?)



PureBytes Links

Trading Reference Links

There have been a few posts here lately about calculating
commission/slippage.  "b" came up with some excellent suggestions and a few
of us made extensions to his ideas.

Unfortunately, it appears that we can't set BuyPrice, SellPrice, etc. when
using rotational mode portfolio backtesting.  Has anyone come up with a way
to dynamically adjust slippage when using rotational mode?

I can't use the "use portfolio commission table" feature as it simply DOES
NOT work with backadjusted prices.

This will give you an idea of what I would like to be able to do (it works
in non-rotational mode):

Slippage = Close * IIf(actualClose > 4, 0.01,
			 IIf(ActualClose > 10, 0.005,
			 0.0133));
BuyPrice = Open + Slippage;
SellPrice = Open - Slippage;

I have shortened the above code for simplicity.

Thanks for any suggestions you may be able to offer.



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/