Hi there.
I'm new here and new at Java. I can program just about anything with MQL4 and cAlgo (as well as PHP, JavaScript, Pascal, Ruby etc.), but cannot get one single line running in jForex. This is what the Wiki has to offer for starter. Beneath is the error that is generated.
package jforex;
import com.dukascopy.api.*;
public class Strategy1 implements IStrategy {
public void onStart(IContext context) throws JFException {}
public void onAccount(IAccount account) throws JFException {}
public void onMessage(IMessage message) throws JFException {}
public void onStop() throws JFException {}
public void onTick(Instrument instr, ITick tick) throws JFException {}
}
09:47:00 ----------
09:47:00 The type Strategy1 must implement the inherited abstract method IStrategy.onBar(Instrument, Period, IBar, IBar)
09:47:00 ^^^^^^^^^
09:47:00 public class Strategy1 implements IStrategy {
09:47:00 2. ERROR in /Users/MacPro/JForex/MacPro/jfxide/tmp/compile/SemperRiskMan.java (at line 4)
What's wrong with me?