Gamestudio Links
Zorro Links
Newest Posts
Few update suggestions
by 3run. 07/23/21 08:47
FXCM Login Error
by jcl. 07/22/21 08:25
New Zorro version 2.40.1
by dpn. 07/21/21 19:39
MT5 bridge plugin
by jcl. 07/21/21 15:52
FXCM - CFD Price can not be loaded
by jcl. 07/21/21 08:40
AUM Magazine
Latest Screens
Hecknex World
Scheherazade's Journey
Paradox Vector
The Space Between
Who's Online Now
1 registered members (NobbyG), 382 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ace_trader, chrissierra, fredperim, degenerate_762, TalonTrades
18664 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: 389
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 389
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: 363
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 363
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: 564
Z
Zheka Offline
User
Zheka  Offline
User
Z

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

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,565
Frankfurt

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

Joined: Jul 2017
Posts: 564
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: 887
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 887
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