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.

Eclipse backtesting
 Post subject: Eclipse backtesting Post rating: 0   New post Posted: Tue 03 Jul, 2012, 13:54 

User rating: 0
Joined: Sun 22 Apr, 2012, 19:19
Posts: 54
Location: United KingdomUnited Kingdom
Is there a way of using eclipse to back test a strategy over the last 5 years.


 
 Post subject: Re: Eclipse backtesting Post rating: 0   New post Posted: Tue 03 Jul, 2012, 14:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Adjust TesterMain.java the following way:
https://www.dukascopy.com/wiki/#Standalone_JForex_API/Testing_over_a_particular_historical_time_interval


 
 Post subject: Re: Eclipse backtesting Post rating: 0   New post Posted: Tue 03 Jul, 2012, 16:03 

User rating: 0
Joined: Sun 22 Apr, 2012, 19:19
Posts: 54
Location: United KingdomUnited Kingdom
Thanks

How do I suppress news messages in the standalone api.

T


 
 Post subject: Re: Eclipse backtesting Post rating: 0   New post Posted: Tue 03 Jul, 2012, 16:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
If you mean the ones that com from the logger, then by changing the rc/log4j.properties file.


 
 Post subject: Re: Eclipse backtesting Post rating: 0   New post Posted: Tue 03 Jul, 2012, 19:35 

User rating: 0
Joined: Sun 22 Apr, 2012, 19:19
Posts: 54
Location: United KingdomUnited Kingdom
Thanks
for reference, Is there a list somewhere of options to switch on and off for the log4j file?
T


 
 Post subject: Re: Eclipse backtesting Post rating: 0   New post Posted: Wed 04 Jul, 2012, 14:14 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Locate in the libs\log4j.properties file the section:
#Output only INFO logs to console
log4j.appender.systemOut=org.apache.log4j.ConsoleAppender
log4j.appender.systemOut.Threshold=INFO
log4j.appender.systemOut.layout=org.apache.log4j.PatternLayout
log4j.appender.systemOut.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p %c{1} - %m%n
And then just change INFO to ERROR - this will make the logger to log to the console only errors, if any. For reference see:
https://logging.apache.org/log4j/1.2/manual.html


 
 Post subject: Re: Eclipse backtesting Post rating: 0   New post Posted: Wed 04 Jul, 2012, 23:30 

User rating: 0
Joined: Sun 22 Apr, 2012, 19:19
Posts: 54
Location: United KingdomUnited Kingdom
Useful - thanks.

T


 

Jump to:  

  © 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