Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Quad, AndrewAMD, Imhotep, TipmyPip, Edgar_Herrera), 809 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
EXITRUN for TRADE #483362
05/24/21 15:13
05/24/21 15:13
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
If is a possible, enable use flag "EXITRUN" also for Trade mode.

if (is(INITRUN)) ... work
if (is(EXITRUN)) ...not work


thanks

Re: EXITRUN for TRADE [Re: Grat] #483601
06/19/21 08:07
06/19/21 08:07
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
I think if one clicks "Stop", they want to really stop it, not start an exitrun.

Re: EXITRUN for TRADE [Re: Grat] #483603
06/19/21 13:06
06/19/21 13:06
Joined: Jul 2017
Posts: 783
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 783
+1

One normally uses EXITRUN for calculating/logging some stats (and for other housekeeping - like freeing memory), at first when Testing...and having to make this work separately for Trade just wastes time and adds code .


I guesstimate it takes more lines in Zorro's code to forbid EXITRUN in Trade mode then to allow.

Why make assumptions about what one wants when pressing "Stop" in a live session?

Ideally, the transition from Test to Trade should be as simple as possible.

Re: EXITRUN for TRADE [Re: Grat] #483626
06/24/21 10:09
06/24/21 10:09
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt

Re: EXITRUN for TRADE [Re: Grat] #483634
06/26/21 08:07
06/26/21 08:07
Joined: Jul 2017
Posts: 783
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 783
So, "if (suspended==16) quit("zzz"); " will raise an "EXITRUN" flag in Live and allow code under EXITRUN to run, correct?

The manual says quit() will close open trades - which might not be desirable....Can it just follow the "Close open trades?" dialogue in Live instead of closing trades by default?

Re: EXITRUN for TRADE [Re: Grat] #483639
06/26/21 17:28
06/26/21 17:28
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
In live mode you are always asked if you really want to close them, and if not they stay open.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1