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

[amibroker] Re: Simultaneous trades?



PureBytes Links

Trading Reference Links

Thanx Graham,

I used SetForeign() and it did most probably overwrite arrays with 
the processing of every symbol. I coded static variables instead and 
it worked fine, except there where only 5 trades, at least better 
than before, instead of an expected higher number. So I checked 
settings again. The little mistake was in my standardized backtesting 
settings that I copy from one program to another. I found SetOption
("MaxOpenPositions", 5); 

>:-(

cheers
enzo



--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
>
> Would need to see the code to see what could be wrong
> Looping through symbols within the aFL will not produce signals for
> the current symbol unless you are using foreign trade signals for 
the
> current symbol signals
> There could be other things in your code or AA window settings
> stopping other symbols from trading
> 
> -- 
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://e-wire.net.au/~eb_kavan/ab_write.htm
> 
> 
> On 07/07/06, herrfrechdax <herrfrechdax@xxx> wrote:
> > Graham, poitionsSize is set according to the numbr of contract I 
want
> > to trade:
> > contracts = 2;
> > PositionSize = Contracts * MarginDeposit;
> >
> > Its not working when I loop through a market-category using
> > CategorieGetSymbols(), when I hard-code the symbols its fine.
> >
> > But since this loop is so slow I will remain on the hardcoded-
> > sysmbols version.
> > It is solved, its strange anyway but cant spent much more time on
> > this bullshit, took me almost the whole week.
> >
> > thx
> > enzo
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@> wrote:
> > >
> > > hyave you specified the PositionSize=-5;
> > >
> > > On 07/07/06, herrfrechdax <herrfrechdax@> wrote:
> > > > Hi,
> > > >
> > > > I have Max open positions set to 50, a trade would use only 
5% of
> > > > equity but there is always only 1 trade at a time when I 
backtest
> > the
> > > > strategy.
> > > >
> > > > What to do?
> > > >
> > > > enzo
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 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 other support material please check also:
> > > > http://www.amibroker.com/support.html
> > > >
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Cheers
> > > Graham
> > > AB-Write >< Professional AFL Writing Service
> > > Yes, I write AFL code to your requirements
> > > http://e-wire.net.au/~eb_kavan/ab_write.htm
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> > 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 other support material please check also:
> > http://www.amibroker.com/support.html
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>