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
5 registered members (TipmyPip, AndrewAMD, Quad, aliswee, degenerate_762), 970 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 2 of 3 1 2 3
Re: Binary.com plugin (binaries trading) [Re: Fiber] #474424
10/14/18 14:12
10/14/18 14:12
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline OP
Junior Member
kvm  Offline OP
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
Do you see the preinstalled Dukascopy plugin (it uses Java) in your Account/Broker window? If not, the Java is not configured correctly.

Re: Binary.com plugin (binaries trading) [Re: kvm] #474427
10/14/18 21:55
10/14/18 21:55
Joined: Dec 2016
Posts: 43
F
Fiber Offline
Newbie
Fiber  Offline
Newbie
F

Joined: Dec 2016
Posts: 43
Yes, It was wrong Path settings and now I can connect to Binary com and start receiving quotes.
But I can not execute trades. Also, how to setup trade duration in ticks, different trade type?
Code:
function run()
{
set(TICKS);
set(BINARY);
History = ".t1";
BarPeriod = 1;
LookBack = 1;
Lots = 1;
LifeTime = 1;
WinPayout = 94;
LossPayout = 0;
enterLong();
}


Re: Binary.com plugin (binaries trading) [Re: Fiber] #474430
10/15/18 06:36
10/15/18 06:36
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline OP
Junior Member
kvm  Offline OP
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
Could you send me the plugin's log file? I can't test the script as it is, because I don't have Zorro S license to work with tick data.

If I comment set(TICKS); and His1tory = ".t1"; lines, everything is working as expected. A long position is opened every minute with $1 amount and 5 min. duration.

Last edited by kvm; 10/15/18 12:48.
Re: Binary.com plugin (binaries trading) [Re: kvm] #474439
10/15/18 17:56
10/15/18 17:56
Joined: Dec 2016
Posts: 43
F
Fiber Offline
Newbie
Fiber  Offline
Newbie
F

Joined: Dec 2016
Posts: 43
Strange thing happened. Today I started Zorro and same script without any changes and it start trading with TICKS setting. Log file attached.

Attached Files
vBinary-log.txt (119 downloads)
Re: Binary.com plugin (binaries trading) [Re: Fiber] #474440
10/15/18 18:15
10/15/18 18:15
Joined: Dec 2016
Posts: 43
F
Fiber Offline
Newbie
Fiber  Offline
Newbie
F

Joined: Dec 2016
Posts: 43
I still can not execute trades on periods lower then 1 minute.
With settings BarPeriod = 0.5; LifeTime = 1; trades on binary.com is opened with 1 minute expiration. Zorro process trades us closed after each 30 sec but in reality (on bnary.com) trade is still open.
Is it limitation of plugin?

Re: Binary.com plugin (binaries trading) [Re: Fiber] #474441
10/15/18 18:20
10/15/18 18:20
Joined: Dec 2016
Posts: 43
F
Fiber Offline
Newbie
Fiber  Offline
Newbie
F

Joined: Dec 2016
Posts: 43
One more issue. How to open trades with stake less then 1 usd. Zorro treats setting Lots = 0.35; like Lots = 0 and do not execute trades.

Re: Binary.com plugin (binaries trading) [Re: Fiber] #474447
10/16/18 08:10
10/16/18 08:10
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline OP
Junior Member
kvm  Offline OP
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
Originally Posted By: Fiber
Strange thing happened. Today I started Zorro and same script without any changes and it start trading with TICKS setting. Log file attached.


There is no errors in the log and I can't be sure what happened.

Last edited by kvm; 10/16/18 08:19.
Re: Binary.com plugin (binaries trading) [Re: Fiber] #474448
10/16/18 08:18
10/16/18 08:18
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline OP
Junior Member
kvm  Offline OP
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
Originally Posted By: Fiber
I still can not execute trades on periods lower then 1 minute.
With settings BarPeriod = 0.5; LifeTime = 1; trades on binary.com is opened with 1 minute expiration. Zorro process trades us closed after each 30 sec but in reality (on bnary.com) trade is still open.
Is it limitation of plugin?

When you buy a contract via Binary.com API there is a field called 'duration'. The value of the field is got from the config file, because the Zorro doesn't pass the trade duration or bar period to the plugin.

The plugin is limited to work only with duration_unit = minutes, that is why the smallest duration is one minute. But in fact the API supports duration_unit = ticks, so lower duration could be used.

Last edited by kvm; 10/16/18 08:23.
Re: Binary.com plugin (binaries trading) [Re: Fiber] #474449
10/16/18 08:39
10/16/18 08:39
Joined: Jan 2017
Posts: 95
Bulgaria
kvm Offline OP
Junior Member
kvm  Offline OP
Junior Member

Joined: Jan 2017
Posts: 95
Bulgaria
Originally Posted By: Fiber
One more issue. How to open trades with stake less then 1 usd. Zorro treats setting Lots = 0.35; like Lots = 0 and do not execute trades.


The plugin interprets Lots=1 as $1 trade amount. This could be changed to be interpreted as 1 cent, so if you put in your script Lots=35, would mean $0.35 trade amount.

I'm open to suggestions how to improve the plugin!

Re: Binary.com plugin (binaries trading) [Re: kvm] #474452
10/16/18 14:42
10/16/18 14:42
Joined: Dec 2016
Posts: 43
F
Fiber Offline
Newbie
Fiber  Offline
Newbie
F

Joined: Dec 2016
Posts: 43
So I think for plugin improvement would be useful to add to config file:
duration_unit = minutes/ticks
lots_unit = dollar/cent
duration = 5 (ticks or minutes depending on duration_unit setting)
Lots would be passed from Zorro and used in dollars or cents depending from lots_unit setting.

Page 2 of 3 1 2 3

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