Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Imhotep), 567 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 6 1 2 3 4 5 6
Multiple broker connection - beta testers wanted! #468286
09/28/17 06:55
09/28/17 06:55
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
We're currently looking for beta testers for the Zorro S feature "Simultaneous connection to multiple brokers". If you have Zorro S and are interested in broker arbitrage or whatever you can do with this feature, please contact support(at)opgroup.de.

Re: Multiple broker connection - beta testers wanted! [Re: jcl] #468561
10/10/17 09:10
10/10/17 09:10
Joined: Jun 2016
Posts: 30
france
S
stephane97490 Offline
Newbie
stephane97490  Offline
Newbie
S

Joined: Jun 2016
Posts: 30
france
Hi, for example, I can download at the same time data from alpha vantage and uses them for live trading with fxcm ?

Re: Multiple broker connection - beta testers wanted! [Re: stephane97490] #468563
10/10/17 10:33
10/10/17 10:33
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
That would work with any Zorro version. AlphaVantage is no broker connection.

Re: Multiple broker connection - beta testers wanted! [Re: jcl] #469956
12/16/17 12:43
12/16/17 12:43
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Just making some experiments with it. If the MT broker does not offer tick data (or not really sufficient) accessible with assetHistory I think it must be possible to record it in live trading with the tick function and the example in the manual "print every price quote in a file". I'm searching for a possibility to convert this file to .t1 but unfortunately the CSVToHistory script covers only .t6 data. It would be very helpful to know how the format string for dataParse has to look like for .t1 or a hint to the manual if I missed something. laugh

Thanks Sphin

Re: Multiple broker connection - beta testers wanted! [Re: Sphin] #469993
12/18/17 14:30
12/18/17 14:30
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
You need no .t1 format string. Just store the t1 data directly.

Code:
void tick()
{
	T1* Ask = dataAppendRow(1,2);
	Ask->time = wdate();
	Ask->fVal = priceClose();
}

void click()
{
	dataSort(1);
	dataSave(1,strf("History\\%srec.t1",strx(Asset,"/","")));
	quit("Done!");
}

void run()
{
	BarPeriod = 1;
	LookBack = 0;
	panelSet(-1,-1,"Save");
}


Re: Multiple broker connection - beta testers wanted! [Re: jcl] #470001
12/18/17 18:43
12/18/17 18:43
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Thanks a lot!

Re: Multiple broker connection - beta testers wanted! [Re: Sphin] #470167
12/30/17 18:08
12/30/17 18:08
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
This works! After I stored some days of .t1 data, made my first tries in backtesting the 'Simple broker arbitrage example' to find out a suitable threshold and then tried a live demo - nothing happened. While printing the spreads to csv I found out that they behave quite differently from simulation with fixed spreads so it might be better to simulate with the variable spreads stored from live/demo environment. From the manual:

Quote:
Both .t1 and .t6 data can contain the current ask-bid spread, which is returned by the marketVal function. For backtesting with variable spread, set Spread = marketVal() in the script.

But how to store the spread in .t1 so that is accessible with marketVal()?

Re: Multiple broker connection - beta testers wanted! [Re: Sphin] #470195
01/02/18 09:30
01/02/18 09:30
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
The bid price is negative, so:

Code:
void tick()
{
	T1* Ask = dataAppendRow(1,2);
	Ask->time = wdate();
	Ask->fVal = priceClose();
	T1* Bid = dataAppendRow(1,2);
	Bid->time = wdate();
	Bid->fVal = -(priceClose()-Spread);
}


Re: Multiple broker connection - beta testers wanted! [Re: Sphin] #470225
01/03/18 16:11
01/03/18 16:11
Joined: Dec 2016
Posts: 71
F
firecrest Offline
Junior Member
firecrest  Offline
Junior Member
F

Joined: Dec 2016
Posts: 71
Hi Sphine,

I have tried broker arbitrage using the same asset between Oanda and IG but was not successful. I used Demo account to play this. I think one possible factor is connection speed. Can it be this strategy is untouchable for retail traders?

Re: Multiple broker connection - beta testers wanted! [Re: firecrest] #470226
01/03/18 17:21
01/03/18 17:21
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
What do you mean with "not successful" - technically or financially? Didn't the script trade at all or weren't the trades profitable?
I use the 'Simple broker arbitrage example' actually only to record spread and price (there is no commission at the used brokers) to find out a practical threshold and to view the relations between these components in a real environment.

Page 1 of 6 1 2 3 4 5 6

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1