Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 01/22/22 00:55
Lapsa's very own thread
by Lapsa. 01/21/22 08:23
Generic, dynamically growing array
by 3run. 01/18/22 15:37
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/18/22 15:00
Bug in NumUp/Dn
by jcl. 01/17/22 12:23
Help with plotting Lookback in Trade Mode
by degenerate_762. 01/15/22 23:43
AUM Magazine
Latest Screens
Tactics of World War I
Hecknex World
Scheherazade's Journey
Paradox Vector
Who's Online Now
7 registered members (ozgur, Zheka, AndrewAMD, gamers, NorbertSz, kawjansen, 3run), 172 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
kawjansen, Alex2052, AndreasTrader, spacenomad, coinpump
18731 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: AlpacaZorroPlugin v1.2.0 Released [Re: kzhao] #484687
11/30/21 19:43
11/30/21 19:43
Joined: Jun 2013
Posts: 1,572
D
DdlV Offline
Serious User
DdlV  Offline
Serious User
D

Joined: Jun 2013
Posts: 1,572
Hi @kzhao,

Question re. order text. The docs say

Code
// Use borkderCommand(SET_ORDERTEXT, xxxx) to set a custom order text
brokerCommand(SET_ORDERTEXT, "MyAlpacaOrder");  // "MyAlpacaOrder" will be added into ClientOrderId
enterLong(5);


Is there a default for order text? Rather than having to explicitly set it each time, a good default might be "<strategy>-<algo>"?

Thanks.

Re: AlpacaZorroPlugin v1.2.0 Released [Re: DdlV] #484688
11/30/21 19:54
11/30/21 19:54
Joined: Feb 2017
Posts: 1,377
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,377
Chicago
Originally Posted by DdlV
a good default might be "<strategy>-<algo>"?
This is impossible because the broker plugin does not have access to this information. The script writer has access to this information and can set it via brokercommand.

Re: AlpacaZorroPlugin v1.2.0 Released [Re: kzhao] #484689
11/30/21 22:30
11/30/21 22:30
Joined: Sep 2019
Posts: 57
Naperville
K
kzhao Offline OP
Junior Member
kzhao  Offline OP
Junior Member
K

Joined: Sep 2019
Posts: 57
Naperville
As @AndrewAMD said, the plugin doesn't know anything about the strategy.

Re: AlpacaZorroPlugin v1.2.0 Released [Re: kzhao] #484693
12/01/21 18:04
12/01/21 18:04
Joined: Jun 2013
Posts: 1,572
D
DdlV Offline
Serious User
DdlV  Offline
Serious User
D

Joined: Jun 2013
Posts: 1,572
Thanks @AndrewAMD, @kzhao. Obviously I'm not a plugin writer. laugh Just a lazy scripter... laugh laugh

Page 2 of 2 1 2

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