Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

output to console box
 Post subject: output to console box Post rating: 0   New post Posted: Mon 18 Apr, 2011, 06:59 

User rating: 0
Joined: Fri 08 Apr, 2011, 03:23
Posts: 5
Hi Support,

what am I missing here?

When I run my simple test strategy, nothing is outputted to the message window. And my strategy compiled just fine with no error messages

public void onStart(IContext context) throws JFException {

this.engine = context.getEngine();
this.console = context.getConsole();
this.context = context;
instrument = context.getSubscribedInstruments();
this.console.getOut().print("test");

}


 
 Post subject: Re: output to console box Post rating: 0   New post Posted: Tue 19 Apr, 2011, 07:12 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Try using println().


 
 Post subject: Re: output to console box Post rating: 0   New post Posted: Tue 19 Apr, 2011, 08:37 

User rating: 0
Joined: Fri 08 Apr, 2011, 03:23
Posts: 5
Thanks,

That was an easy one. I can't believe I missed it.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com