PureBytes Links
Trading Reference Links
|
Do you realize you can run multiple trading programs in one instance
of AB? All you have to do is create a new default sheet for each
instance you want to run. Set each up to trade the symbol you want.
Then when you have them set up go to Window and arrange them
vertically. Once you get it set up as you want go to Layout and save
the layout and default layout and exit the program. When you restart
it you should have the layout you just saved.
I have run up to 4 instances this way. Now that I have multiple
monitors I could probably run 6 to 9 at once. The huge caveat is that
you must have static variables that are different for each instance
or they will interact. I use a var prefix for the static vars that
uses the filename + symbol(). An example of this is
VarPfx = filename + symbol();
StaticVarSet(VarPfx + "OrderID", orderid);
That way I can use the same trading program for each symbol and they
will not interact.
The second caveat is that you cannot use cancelAll or closeAll in any
program on the same system because it will do exactly as you request,
cancel or close all orders on TWS.
A fast system can handle many auto trading programs with ease. TWS
only updates the tick three times a second. If you use a data feed
that sends all ticks that may make a difference but I think any fast
system still could handle the load.
Barry
--- In amibroker@xxxxxxxxxxxxxxx, "Paul Ho" <paul.tsho@xxx> wrote:
>
> Thanks for tip, will look into that
> it also seems possible to have 2 instances of AB talking to one
> instance of ibc controller.
> /Paul.
> --- In amibroker@xxxxxxxxxxxxxxx, "hf_thief" <eric.q.lee@> wrote:
> >
> > There is a way to effectively achieve this. Go to account
management
> > with your IB account and create a second account. You can then
run
> two
> > instances of the TWS in which both connect to the same account.
> > Thereafter, run your two instances of Amibroker and have each
connect
> > to a different instance of the TWS.
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Paul Ho" <paul.tsho@> wrote:
> > >
> > > Interested in running multiple systems, one on each instance of
> AB, Is
> > > that possible? Currently IB controller complains.
> > > /Paul.
> > >
> >
>
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL 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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|