Hi guys, Thanks for Reading!I have been asked a few times where to find info on how to develop strategies in JForex, there are limited resources available online so i thought to help you guys by creating a few basic strategies over here.There a few different sort of strategies such as:- trend following strategies- trend reversal strategies- scalp strategiesIMHO the easiest strategies to develop are trend following strategies, because usually the take profit and stop loss defined by these strategies are wider than for scalping strategy and therefore their entries points need to be less complex.Enough Talking let's go through your first piece of code/*The following lines are pretty much standard you can just copy them if you wish to all your strategies.*/package com.pipscity;import com.dukascopy.api.*;import java.util.*;import java.lang.Math;import java.text.DecimalFormat;import java.awt.Color;/*The following line define the name of your strategyIn Java the Name of the Class "MyFirstStrategy"also must be the name of the file you are going to save.so if you create a class named MyFirstStrategy you need to save it asMyFirstStrategy.java.*/public class MyFirstStrategy implements IStrate…
Read article
Translate to English Show original