Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
+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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt

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

Joined: Jul 2017
Posts: 784
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