--- In [email protected], Grant Noble <[EMAIL PROTECTED]> wrote: > > Was wondering if I'd ever use switch. Now I can! Thanks Tomasz. > > Tomasz Janeczko wrote: > > Hello, > > > > Yes, but for the moment you can easily code this that way: > > > > n = Name(); > > > > spread = 0; > > > > switch( n ) > > { > > case "EURUSD": spread = 2; break; > > case "USDPLN": spread = 30; break; > > default: spread = 3; break; > > } > > > > BuyPrice = BuyPrice + spread; > > > > Best regards, > > Tomasz Janeczko > > amibroker.com > > ----- Original Message ----- > > From: "Grant Noble" <[EMAIL PROTECTED]> > > To: <[email protected]> > > Sent: Monday, October 29, 2007 11:10 PM > > Subject: Re: [amibroker] Backtesting (Commisions) > > > > > >> Of course it would be ideal to specify spread on a per symbol basis as dealing spread typically > >> varies with different pairs. Here's my FC request of some time ago: > >> http://www.amibroker.com/feedback/view_bug.php?bug_id=447 > >> > >> Tomasz Janeczko wrote: > >>> BuyPrice = BuyPrice + 0.0005; // add spread > >>> > >>> Best regards, > >>> Tomasz Janeczko > >>> amibroker.com > >>> ----- Original Message ----- > >>> From: "ifrmd" <[EMAIL PROTECTED]> > >>> To: <[email protected]> > >>> Sent: Sunday, October 28, 2007 8:48 PM > >>> Subject: [amibroker] Backtesting (Commisions) > >>> > >>> > >>>> Hi! I got an a backtesting problem. I'm trying to backtest my system > >>>> on forex currency pairs. My broker asks for 5 point commision for > >>>> every position i open. How do i set settings in Amibroker to get > >>>> correct results. Without those setting my backtesting dont have any > >>>> sence. Please, help. > >>>> > >>>> > >>>> > >>>> Please note that this group is for discussion between users only. > >>>> > >>>> To get support from AmiBroker please send an e-mail directly to > >>>> SUPPORT {at} amibroker.com > >>>> > >>>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > >>>> http://www.amibroker.com/devlog/ > >>>> > >>>> For other support material please check also: > >>>> http://www.amibroker.com/support.html > >>>> > >>>> Yahoo! Groups Links > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> Please note that this group is for discussion between users only. > >>> > >>> To get support from AmiBroker please send an e-mail directly to > >>> SUPPORT {at} amibroker.com > >>> > >>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > >>> http://www.amibroker.com/devlog/ > >>> > >>> For other support material please check also: > >>> http://www.amibroker.com/support.html > >>> > >>> Yahoo! Groups Links > >>> > >>> > >>> > >>> > >> > >> Please note that this group is for discussion between users only. > >> > >> To get support from AmiBroker please send an e-mail directly to > >> SUPPORT {at} amibroker.com > >> > >> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > >> http://www.amibroker.com/devlog/ > >> > >> For other support material please check also: > >> http://www.amibroker.com/support.html > >> > >> Yahoo! Groups Links > >> > >> > >> > >> > >> > > > > > > Please note that this group is for discussion between users only. > > > > To get support from AmiBroker please send an e-mail directly to > > SUPPORT {at} amibroker.com > > > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > > http://www.amibroker.com/devlog/ > > > > For other support material please check also: > > http://www.amibroker.com/support.html > > > > Yahoo! Groups Links > > > > > > > > >
And if i need to count all spread paid (for Bactesting Period)?
