Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, Quad), 903 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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