Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 677 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Example of trading with web based broker #474181
09/27/18 02:33
09/27/18 02:33
Joined: Sep 2018
Posts: 1
N
Naqviak Offline OP
Guest
Naqviak  Offline OP
Guest
N

Joined: Sep 2018
Posts: 1
Hi
I am new to forum and am looking for examples on how to use Zorro with brokers who only support web based trading

Re: Example of trading with web based broker [Re: Naqviak] #474188
09/27/18 14:16
09/27/18 14:16
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
You have two three options:

1) Use a supported broker.
2) Make your own broker DLL. You must know/learn how to program.

To write a DLL, it's best to have an API to work with, such as a REST API. Whereas, to program mouse clicks into a web browser is not fun.

3) Do what Petra says, below. cool

Last edited by AndrewAMD; 09/27/18 16:31. Reason: oh yeah
Re: Example of trading with web based broker [Re: AndrewAMD] #474189
09/27/18 15:25
09/27/18 15:25
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
The keys function can send mouseclicks to a web browser.

Re: Example of trading with web based broker [Re: Petra] #474190
09/27/18 17:10
09/27/18 17:10
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline
Serious User
DdlV  Offline
Serious User
D

Joined: Jun 2013
Posts: 1,609
Re. keys(), beware that it sends to the active window. In practice this is not a very workable long-term solution, even on a dedicated machine where you may think you have total control over keeping the browser window always as the active window.

For want of a keystroke ...

Re: Example of trading with web based broker [Re: DdlV] #474244
10/01/18 21:18
10/01/18 21:18
Joined: Jul 2017
Posts: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
Yes, Zorro seems to always be the "active window".

Re: Example of trading with web based broker [Re: Zheka] #474248
10/02/18 06:24
10/02/18 06:24
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
No, the active window is always the last started or last clicked.

For actvating it by script, use SetForegroundWindow. Do not work on that PC at the same time, or else your mouse clicks will be in conflict with the automated clicks.

Re: Example of trading with web based broker [Re: jcl] #474499
10/20/18 05:09
10/20/18 05:09
Joined: Oct 2018
Posts: 1
TX
E
Eugene Offline
Guest
Eugene  Offline
Guest
E

Joined: Oct 2018
Posts: 1
TX
Just starting with Zorro, I found this article with an example code of using an online broker.

http://www.financial-hacker.com/binary-options-scam-or-opportunity/#more-1709


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1