Dukascopy
 
 
Wiki JStore Search Login

DDSJFX-467 IIndicatorContext.getHistory()
 Post subject: DDSJFX-467 IIndicatorContext.getHistory() Post rating: 0   New post Posted: Tue 14 Jun, 2011, 19:05 

User rating: 0
Joined: Tue 14 Jun, 2011, 17:19
Posts: 1
Location: RU
package jforex;

import com.dukascopy.api.indicators.*;
import com.dukascopy.api.Instrument.*;
import com.dukascopy.api.*;
import java.util.*;

public class Tick2 implements IIndicator {
    private IndicatorInfo indicatorInfo;
    private InputParameterInfo[] inputParameterInfos;
    private OptInputParameterInfo[] optInputParameterInfos;
    private OutputParameterInfo[] outputParameterInfos;
    private double[][] inputs = new double[1][];
    private int[][] outputs = new int[1][];
    private Instrument instrument;
    private Period period;
    private IConsole console;
    private IHistory history;
   
    public void onStart(IIndicatorContext context) {
        indicatorInfo = new IndicatorInfo("tick", "tick", "My indicators", false, false, false, 0, 0, 1);
        outputParameterInfos = new OutputParameterInfo[] {new OutputParameterInfo("out", OutputParameterInfo.Type.INT, OutputParameterInfo.DrawingStyle.LINE)};
               
  //      instrument = context.getInstrument();
        history = context.getHistory();       
        period = context.getPeriod();
        console = context.getConsole();
    }
 ...


Compilation successful, but
16:48:12 Exception in onStart method: java.lang.NoSuchMethodError: com.dukascopy.api.indicators.IIndicatorContext.getHistory()Lcom/dukascopy/api/IHistory; @ jforex.Tick2.onStart(Tick2.java:25)


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com