Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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