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, juanex, Grant), 1,018 guests, and 8 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
Page 1 of 2 1 2
Avoid modal dialogs #429081
09/08/13 20:00
09/08/13 20:00
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Thank you for making it possible to run Zorro in training mode, unattended via the command line.

For compile errors which can be caused by my strategies or Zorro bugs, Zorro sometimes stops and produces a modal dialog box that can only be dismissed by the human user.

This is not compatible with automation.

Re: Avoid modal dialogs [Re: GPEngine] #429135
09/09/13 12:17
09/09/13 12:17
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
All modal dialog boxes normally require a user reaction. Otherwise they weren't modal.

Messages that do not require immediate user attention appear in nonmodal dialogs or in the message window.

Re: Avoid modal dialogs [Re: jcl] #429192
09/10/13 07:16
09/10/13 07:16
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
I have a dos/cmd/batch script which executes Zorro -train at the command line, say 1000 times, with a different strategy each time. If one of the strategies has an error, the remainder will not execute. Zorro will block and wait for me to click on something. I would rather Zorro just log the error and exit so the batch script can continue and as much work as possible will be completed without my intervention. I can deal with the errors at the end.

Do you follow me?

Last edited by GPEngine; 09/10/13 07:27.
Re: Avoid modal dialogs [Re: GPEngine] #429214
09/10/13 10:58
09/10/13 10:58
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Not really. If a strategy has an error, you normally would fix it - automation or not. What kind of error are you getting?

Re: Avoid modal dialogs [Re: jcl] #429272
09/10/13 15:53
09/10/13 15:53
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Compile error.

I am automatically generating strategies. Sometimes this produces code that Zorro doesn't like, and Zorro produces a compile error either in Train or Test phase. This can be an error in the strategy code or in Zorro. When this happens, I'll segregate the broken strategy for further inspection -- maybe post a bug about it here, if it's compelling. Or, discard it. But the only reason this requires immediate attention from me is because Zorro blocks with a dialog box and does not exit.

I have employed an AutoIt script which just clicks Abort every time that box comes up.

Re: Avoid modal dialogs [Re: GPEngine] #429275
09/10/13 17:14
09/10/13 17:14

A
acidburn
Unregistered
acidburn
Unregistered
A



I tend to agree with GPEngine that Zorro suddenly switching from noninteractive (auto) mode to interactive (click is needed) is not very nice. I've not seen much problems with it so far, but I've also occassionaly seen popups that didn't make much sense.

Here's an idea (that might also help GPEngine's case), if command line switch is used (-train in this case), behave non-interactively and just die with an error message (exit status?) if some fatal error is encountered. Don't ask for user assistance, because the user might not be near, that's why -train was used (probably Zorro was called from another script).

OTOH, if Train button is clicked, the operator is probably still near, so continue asking for help/direction with popups when needed (in case of an error, etc...).

This approach could bring the best of both worlds, IMHO.

Re: Avoid modal dialogs [Re: ] #429291
09/11/13 07:54
09/11/13 07:54
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
This is a good idea - when started by command line, suppress message boxes.

Still, I'm interested in some example that produces such an error - it should not happen.

Re: Avoid modal dialogs [Re: jcl] #429330
09/11/13 13:58
09/11/13 13:58
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Great!
Watch this forum for more example scripts. In my last update of the PERCEPTRON thread, I mentioned that if all the input signals are poor, adviceLong(PERCEPTRON,...) will produce .c file with a syntax error. (Containing something like "if( > 0.50)". Kaboom.)

In the meantime, consider that other failure modes also produce message boxes. These are two I've seen.
Error 049: Too many trades
Error 060: memory fragmented

Last edited by GPEngine; 09/11/13 14:02.
Re: Avoid modal dialogs [Re: GPEngine] #430949
10/06/13 17:46
10/06/13 17:46
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Thank you for acting quickly and implementing this feature in 1.16.

Re: Avoid modal dialogs [Re: GPEngine] #451684
05/16/15 15:20
05/16/15 15:20
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
The -quiet flag is great.
One more request. Can you also make it so that when -quiet is supplied, the Zorro UI window does not take focus?

For example, I execute a script which starts many Zorro quiet-ly in succession. I cannot get other work done because every time a new Zorro starts, the other window I'm working on goes into the background. laugh

Page 1 of 2 1 2

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