Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AbrahamR, AndrewAMD, ozgur), 763 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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