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

public class YYYY implements IStrategy {
    private IUserInterface userInterface = null;
	private final String tabName = "YYYY tab";
 
    @Override
    public void onStart(IContext context) throws JFException {
        this.userInterface = context.getUserInterface();
        JPanel tab = userInterface.getBottomTab(tabName);
    }
 
    @Override
    public void onTick(Instrument instrument, ITick tick) throws JFException {}
 
    @Override
    public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {}
 
    @Override
    public void onMessage(IMessage message) throws JFException {}
 
    @Override
    public void onAccount(IAccount account) throws JFException {}
 
    @Override
    public void onStop() throws JFException {
        if (userInterface != null) {
            userInterface.removeBottomTab(tabName);
        }
    }
}
