Getting started with Eclipse

To follow these instructions, you should already have downloaded the Market Runner package and the Java Development Kit (1.6 or above). See Install Market Runner for details.

Install Eclipse

  • Download Eclipse IDE for Java Developers
  • Unzip the downloaded file and open the resulting directory
  • Start Eclipse by double-clicking on the eclipse file
  • A default location for an Eclipse workspace will be suggested. You might want to use a more appropriate location where you'll be working on your strategies.
  • Click the "Go to Workbench" Icon

Eclipse_Go_To_Workbench.png

Import your Algodeal project into Eclipse

  • In the package explorer area, right click and select "Import..."

Eclipse_Import....png

  • Select "Existing Projects into Workspace" and choose the location of the Market Runner Eclipse project "MyStrategies" (should be in your Market Runner/eclipse folder)

Eclipse_Import_existing_project.png

Eclipse_Select_MarketRunner_MyStrategies.png

You can then open a strategy from the source code folder (/src) and edit it using all the Eclipse features for java editing.

Add menus to run strategies from Eclipse

You can add Algodeal menus to Eclipse in order to easily run your strategies.

  • click on the black arrow of the right of the Run button

Eclipse_run_button.png

  • Select "Organize favorites"

Eclipse_Add_Favorites.png

  • Add the two Algodeal menus (Run Strategy Local and Run Strategy Remote)

Eclipse_Select_Run_shortcuts.png

Run your strategy

You can then open any strategy file and edit it

EditYourStrategy.png

Run the Currently edited strategy by selecting the Run Local or Run Remote menus.

Eclipse_RunStrategyLocal.png

You can also debug your strategy with Eclipse using step-by-step execution, breakpoints, etc. (You will have similar debug facilities if you execute MarketRunner from many other java IDEs)