Dukascopy
 
 
Wiki JStore Search Login

Using Netbeans debugger
 Post subject: Using Netbeans debugger Post rating: 0   New post Posted: Sun 21 May, 2017, 19:24 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Hello Support

Please can you give me simple to understand instructions on how to run a strategy on the Dukascopy platform (demo) under the Netbeans debugger IDE

Thank you

Bob M


 
 Post subject: Re: Using Netbeans debugger Post rating: 0   New post Posted: Sun 10 Sep, 2017, 16:21 
User avatar

User rating: 0
Joined: Mon 13 Mar, 2017, 19:30
Posts: 3
Location: Pakistan, Jhang
Open a demo account with dukascopy. After opening account download metatrader 4 platform. please inter your mt4 account and password. After login mt4 platform now you click on watch market and set your desired symbols. Now you are able to click on new order and buy or sell any pair here.


 
 Post subject: Re: Using Netbeans debugger Post rating: 0   New post Posted: Mon 01 Jan, 2018, 14:50 

User rating: 1
Joined: Tue 10 Oct, 2017, 08:11
Posts: 10
Location: SingaporeSingapore
I use this method:

After downloading/unzipping & opening the JForexDSK project in NetBeans build it make sure all the sources/dependencies are setup properly.

1. Edit the TestMainGUIMode.java, TesterMain.java, Main.java files (let us call xxxMain from now on) userName & password fields and enter your DEMO credentials.

2. The default code is setup to run the MA_Play.java strategy from the singlejartest package. You can copy your strategy file to this package location and search/replace all the findings of "MA_Play" with your strategy name. ( You will find only two instances per each xxxMain file.)

3. Right click the xxxMain.java file from the Project Explorer Frame & select "Debug File" or press "Ctrl + Shift + F5"

4. You can set breakpoints where ever you like in the Strategy.java file like onStart(...), onBar(..) or onTick(...)

5. Depending on which file you are running i.e. TestMainGUIMode.java for chart window etc. or TesterMain.java for commandline you will see the tester run the strategy.

6. The report file will be saved in C:\Reports. [This location can be changed to whatever you like]. Similarly you can change the time period, instrument etc.


 

Jump to:  

cron
  © 1998-2024 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