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

RE: [amibroker] CommissionMode option (4.51 new feature)



PureBytes Links

Trading Reference Links

I have my commission on the settings page set to zero and I
handle commissions and slippage directly in my AFL code.
The following example shows how to build percentage (the
slippage part) and fixed per share amounts into the price
array. 

SetTradeDelays(1,1,1,1);
SetOption("PriceBoundChecking",False);//must turn it off
slippage 	= 0.005;// 0.005 is 1/2%
Commission 	= 0.01;// 0.01 is 1 cent/share 
BuyPrice = CoverPrice = (Open*(1+slippage)) + Commission;
SellPrice = ShortPrice = (Open*(1-slippage)) - Commission;

b

--- Thomas Chan <tchan@xxxxxxxxxx> wrote:
> My tests show that setOption() and the setting in the GUI
> interfere each
> other. Change any of the settings and the result changes.
> I ended up
> disabling the setOption() for now. I tried 'percent of
> trade' only.
> 
>  
> 
>  
> 
>  
> 
> Thomas
> 
>  
> 
> ________________________________
> 
> From: Chuck Rademacher
> [mailto:chuck_rademacher@xxxxxxxxxx] 
> Sent: Tuesday, February 24, 2004 10:18 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] CommissionMode option (4.51 new
> feature)
> 
>  
> 
> Has anyone tried to use this new feature?   I can't get
> it to have any
> effect on my systems.  It doesn't override the GUI
> settings for
> commission.  I've tried all four modes. 
> 
> 


__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/