Gamestudio Links
Zorro Links
Newest Posts
AssetFix & Assets.csv
by MatPed. 12/11/19 07:03
How to handle profit in a TMF during training
by StefanCGN. 12/09/19 20:09
Simulate complex commission costs [Test]
by AndrewAMD. 12/09/19 13:52
StrategyFolder
by jcl. 12/09/19 13:10
Selection entity(mdl) mesh group
by Ayumi. 12/09/19 09:41
Python Bridge - Structs
by sdh309795gaas. 12/08/19 03:43
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
3 registered members (MatPed, Dalla, kvm), 649 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
PabloMF, deepscreener, wzschultz, Alit, cmor
18341 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Suppressing Messages #478617
11/16/19 14:51
11/16/19 14:51
Joined: Feb 2015
Posts: 583
Milano, Italy
M
MatPed Online OP
User
MatPed  Online OP
User
M

Joined: Feb 2015
Posts: 583
Milano, Italy
Hi during testing and using dataparse functions, I receive dozens of the messages: parse.... as shown in the pic attached.
Is there any way to avoid this?

Thank You

Attached Files
Immagine.png (6 downloads)
Last edited by MatPed; 11/16/19 14:52.
Re: Suppressing Messages [Re: MatPed] #478620
11/16/19 16:34
11/16/19 16:34
Joined: Sep 2003
Posts: 865
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 865
Looks as if you're parsing the same file again and again?

Re: Suppressing Messages [Re: Spirit] #478621
11/16/19 16:36
11/16/19 16:36
Joined: Feb 2015
Posts: 583
Milano, Italy
M
MatPed Online OP
User
MatPed  Online OP
User
M

Joined: Feb 2015
Posts: 583
Milano, Italy
yes, is what I am doing and the script works fine, but why the message?

Re: Suppressing Messages [Re: MatPed] #478622
11/16/19 17:20
11/16/19 17:20
Joined: Sep 2003
Posts: 865
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 865
I don't know but maybe it can be controlled by setting Verbose very low, like 1 or 0?

Re: Suppressing Messages [Re: Spirit] #478623
11/16/19 18:11
11/16/19 18:11
Joined: Feb 2015
Posts: 583
Milano, Italy
M
MatPed Online OP
User
MatPed  Online OP
User
M

Joined: Feb 2015
Posts: 583
Milano, Italy
Ok, lets see if somebody has other ideas. I need higher verbose settings, but usually messages are printed in the log file. this is not...

Re: Suppressing Messages [Re: MatPed] #478626
11/17/19 09:33
11/17/19 09:33
Joined: Sep 2003
Posts: 865
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 865
If you need high verbose settings, then why not set Verbose to normal before calling dataparse, and back to your high settings afterwards?

The more verbose, the more messages you get.

Re: Suppressing Messages [Re: MatPed] #478638
11/18/19 09:34
11/18/19 09:34
Joined: Feb 2015
Posts: 583
Milano, Italy
M
MatPed Online OP
User
MatPed  Online OP
User
M

Joined: Feb 2015
Posts: 583
Milano, Italy
That's an idea, I will give it a try to this workaround. On the other hand this is the only unexpected message received, others are printed only to the log file as it should be...

Re: Suppressing Messages [Re: MatPed] #478639
11/18/19 12:41
11/18/19 12:41
Joined: Jul 2000
Posts: 27,070
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,070
Frankfurt
Some messages are also printed to the window when they normally appear only once. Parsing the same file multiple times is unusual, therefore the multiple messages.

Re: Suppressing Messages [Re: MatPed] #478641
11/18/19 14:19
11/18/19 14:19
Joined: Feb 2015
Posts: 583
Milano, Italy
M
MatPed Online OP
User
MatPed  Online OP
User
M

Joined: Feb 2015
Posts: 583
Milano, Italy
I parse the file several time because I use it as a container of all the phantom trades during test and trade and than parse it in order to retrieve only the proper Asset/algo Combination.
High level code structure is:
-once delete the old file
-every bar store the closed phantom trades in the file
-every bar check if signal and then parse the file for proper Algo/Asset combination and read the numbers to decide if trade or not. Here is the parse call.


Do you think that this is not the best way to do it?

Re: Suppressing Messages [Re: MatPed] #478649
11/19/19 10:12
11/19/19 10:12
Joined: Jul 2000
Posts: 27,070
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,070
Frankfurt
Possibly not. If you write that file anyway, you can store the info in a dataset rather than in a CSV file, and then save and load the dataset directly.

Page 1 of 2 1 2

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