Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by JeyKey II. 11/25/26 19:57
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
6 registered members (Martin_HH, JeyKey II, AndrewAMD, EW_bytes, Grant, Quad), 8,092 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Right way to Reset a BrokerCommand #484900
12/28/21 11:37
12/28/21 11:37
Joined: Dec 2020
Posts: 27
Italy
D
dpn Offline OP
Newbie
dpn  Offline OP
Newbie
D

Joined: Dec 2020
Posts: 27
Italy
Hello to all.

The following is an abstract from the manual:

Variables or text set up with brokerCommand keep their content until modified by another brokerCommand. Take care of this when a previous trading session has used this command to set a variable or text


I have a question (probably stupid):
After setting a BrokerCommand(SET_ORDERTEXT, abc), is it correct to set another BrokerCommand(SET_ORDERTEXT, "") to reset the ordertext "abc" to the default value (i.e. "blank")?
Or does exists another way [f.i. BrokerCommand (RESET_ORDERTEXT)]?


Thank you
Have a Nice Day

Re: Right way to Reset a BrokerCommand [Re: dpn] #484904
12/28/21 14:59
12/28/21 14:59
Joined: Jul 2000
Posts: 28,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,149
Frankfurt
The warning in the manual is for commands that affect external programs, like MT4 or MT5. Normal broker API commands are automatically reset at login.

For resetting the order text, use brokerCommand(SET_ORDERTEXT, "").

Re: Right way to Reset a BrokerCommand [Re: jcl] #484905
12/28/21 15:34
12/28/21 15:34
Joined: Dec 2020
Posts: 27
Italy
D
dpn Offline OP
Newbie
dpn  Offline OP
Newbie
D

Joined: Dec 2020
Posts: 27
Italy
Thank you @jcl

Best Regards


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1