package jforex;
import com.dukascopy.api.*;

public class BasicStrategy implements IStrategy {
	private IConsole console con = null;

	
	public void onStart(IContext context) throws JFException {       
        //here we remember the IConsole needed for printing messages
        //on to "Messages" tab
        this.con = context.getConsole();
	}

	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 {
            con.getOut().println(instr+" "+tick.getAsk()+"/"+tick.getBid());
    }

	
    public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
    }
}