Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Creating a permanent log of messages on the JForex platform at Dukascopy

 
Rancher
Posts: 688
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have an automated strategy running on the JForex platform at Dukascopy

My strategy outputs quite a lot of data..............using myConsole.getOut().println(....);

When I click on my strategy name tag at the bottom of the platform screen I see only a few lines from my strategy output (being the latest output)

What do I need to do, to capture ALL output ?

Bob M

private IConsole myConsole = null;
myConsole = context.getConsole();
 
Rancher
Posts: 5012
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

What do I need to do, to capture ALL output ?


For example do you mean: write the output to a file?

What package is the IConsole class in?  What methods does it have that might be useful?
 
Bob Matthews
Rancher
Posts: 688
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

yes - write the output to a file is what I am seeking.

The package:-
public class XXX implements IStrategy {
 
Norm Radder
Rancher
Posts: 5012
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was asking what package the IConsole class was in.  What import statement do you use to be able to use the IConsole class?  Were is the class file located?

If you want to write the lines written using the IConsole class's methods, you should read the API doc for that class to see if it has any useful methods for writing those lines to a file.

For example the System.out object in Java SE has methods that allow the code to intercept what is written with calls to System.out.println() so it can be written to a disk file.
 
Bob Matthews
Rancher
Posts: 688
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the following example what I should be adapting ?

 
Norm Radder
Rancher
Posts: 5012
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I do not know anything about the classes in the com.dukascopy.api packages.  Is there a website or forum for classses in those packages?
 
Marshal
Posts: 4583
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Docs here: Interface IConsole
 
Marshal
Posts: 28288
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Matthews wrote:When I click on my strategy name tag at the bottom of the platform screen I see only a few lines from my strategy output (being the latest output)

What do I need to do, to capture ALL output ?



So your "strategy name tag" only shows you the last few lines of the output? Sounds like it might be configured to discard old output after some point. You could look at its configuration and see if there's something there which you could do differently.
 
Bob Matthews
Rancher
Posts: 688
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul

I agree completely
I have posted a query to Dukascopy Support but their response is yet to come
I must say their support is piteful

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Norm Radder wrote:

What do I need to do, to capture ALL output ?


For example do you mean: write the output to a file?

What package is the IConsole class in?  What methods does it have that might be useful?


core java solve the problem, by ouputing to excel
also Duca supports this type of process.

I guest Duca anllow max mesaage of 100 only!

I think they have a filed to detmine number of messages!
 
Mohammed Al-otaibi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Matthews wrote:Hi

I have an automated strategy running on the JForex platform at Dukascopy

My strategy outputs quite a lot of data..............using myConsole.getOut().println(....);

When I click on my strategy name tag at the bottom of the platform screen I see only a few lines from my strategy output (being the latest output)

What do I need to do, to capture ALL output ?

Bob M

private IConsole myConsole = null;
myConsole = context.getConsole();




void setMaxMessages(int maxNumber)
Sets the maximum number of messages. Unrestricted by default.
Parameters:
maxNumber - maximum number of messages in Messages table. Passing -1 makes it unrestricted.
reply
    Bookmark Topic Watch Topic
  • New Topic