4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible),
623
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: AlpacaZorroPlugin v1.2.0 Released
[Re: kzhao]
#484687
11/30/21 19:43
11/30/21 19:43
|
Joined: Jun 2013
Posts: 1,609
DdlV
Serious User
|
Serious User
Joined: Jun 2013
Posts: 1,609
|
Hi @kzhao, Question re. order text. The docs say
// 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,725 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,725
Chicago
|
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.
|
|
|
|