Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Received candle has older time than pervious candle
 Post subject: Received candle has older time than pervious candle Post rating: 0   New post Posted: Thu 26 Apr, 2012, 15:23 
User avatar

User rating: 0
Joined: Thu 19 May, 2011, 11:48
Posts: 26
Location: Hungary, Budapest
Dear Support,

When I run my tester client, I got the following exception. "Received candle has older time than pervious candle"

I've cleared the cache from here /Users/xxxx/JForex/.cache and from here too: java.io.tmpdir (/var/folders/jg/1293xkcj5vsgwnxcdf2g_9740000gn/T/) . There isn't a .cache folder in java.io.tmpdir.

Here is the client, strategy and the console output.

package kt.genetic;

import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import java.util.TimeZone;
import java.util.TreeSet;
import java.util.concurrent.Future;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.dukascopy.api.Instrument;
import com.dukascopy.api.LoadingProgressListener;
import com.dukascopy.api.Period;
import com.dukascopy.api.system.ISystemListener;
import com.dukascopy.api.system.ITesterClient;
import com.dukascopy.api.system.TesterFactory;

public class GHistTester implements ISystemListener, LoadingProgressListener {
   
   private static final Logger LOGGER = LoggerFactory.getLogger(GHistTester.class);
    private static String jnlpUrl = "https://www.dukascopy.com/client/demo/jclient/jforex.jnlp";
    private static String userName = "xxxxx";
    private static String password = "yyyyy";
    private int lightReconnects = 3;
   private ITesterClient client;


   public void onConnect() {
      lightReconnects = 3;
   }

   public void onDisconnect() {
      if (lightReconnects > 0) {
            client.reconnect();
            --lightReconnects;
        } else {
            try {
                Thread.sleep(10000);
            } catch (InterruptedException e) {
            }
            try {
                client.connect(jnlpUrl, userName, password);
            } catch (Exception e) {
                LOGGER.error(e.getMessage(), e);
            }
        }
   }

   public void onStart(long processId) {
   }

   public void onStop(long processId) {
   }

   /**
    * @param args
    */
   public static void main(String[] args) throws Exception {
      
      LOGGER.info(System.getProperty("java.io.tmpdir") + "/.cache");
      GHistTester app = new GHistTester();
      app.client = TesterFactory.getDefaultInstance();
      app.client.setSystemListener(app);
      // Connecting
      app.client.connect(jnlpUrl, userName, password);
        int i = 10; //wait max ten seconds
        while (i > 0 && !app.client.isConnected()) {
            Thread.sleep(1000);
            i--;
        }
        if (!app.client.isConnected()) {
            LOGGER.error("Failed to connect Dukascopy servers");
            System.exit(1);
        }
      
      // custom historical data
      String dateFromStr = "03/25/2012 00:00:00";
      String dateToStr = "05/26/2011 00:00:00";

      final SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
      dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));

      Date dateFrom = dateFormat.parse(dateFromStr);
      Date dateTo = new Date();//dateFormat.parse(dateToStr);

      app.client.setDataInterval(   ITesterClient.DataLoadingMethod.ALL_TICKS,
                           dateFrom.getTime(),
                           dateTo.getTime());

      // set instruments that will be used in testing
      Set<Instrument> instruments = new HashSet<Instrument>();
      instruments.add(Instrument.EURUSD);
      LOGGER.info("Subscribing instruments...");
      app.client.setSubscribedInstruments(instruments);

      // setting initial deposit
      app.client.setInitialDeposit(Instrument.EURUSD.getSecondaryCurrency(), 100000);

      // load data
      LOGGER.info("Downloading data");
      Future<?> future = app.client.downloadData(null);

      // wait for downloading to complete
      future.get();
      LOGGER.info("Data downloaded.");
      
      SimpleROCStrategy rs = new SimpleROCStrategy();
      rs.setAmount(1);
      rs.setInstruments(new TreeSet<Instrument>(Arrays.asList(new Instrument[]{ Instrument.EURUSD })));
      rs.setPeriod(Period.ONE_HOUR);
      rs.setStopLossPips(30);
      rs.setTakeProfitPips(45);
      rs.setRocPeriod(12);
      
      app.client.startStrategy(rs);
   }

   public void dataLoaded(long start, long end, long currentPosition, String info) {
      LOGGER.info(info);
   }

   public void loadingFinished(boolean allDataLoaded, long start, long end, long currentPosition) {
   }

   public boolean stopJob() {
      return false;
   }

}


The strategy
package kt.genetic;

import java.util.Set;
import java.util.concurrent.Callable;

import com.dukascopy.api.Filter;
import com.dukascopy.api.IAccount;
import com.dukascopy.api.IBar;
import com.dukascopy.api.IContext;
import com.dukascopy.api.IEngine;
import com.dukascopy.api.IIndicators;
import com.dukascopy.api.IMessage;
import com.dukascopy.api.IOrder;
import com.dukascopy.api.IStrategy;
import com.dukascopy.api.ITick;
import com.dukascopy.api.Instrument;
import com.dukascopy.api.JFException;
import com.dukascopy.api.OfferSide;
import com.dukascopy.api.Period;
import com.dukascopy.api.IEngine.OrderCommand;
import com.dukascopy.api.IIndicators.AppliedPrice;

public class SimpleROCStrategy implements IStrategy {
   
   private int stopLossPips;
   private int takeProfitPips;
   private int rocPeriod;
   private Period period;
   private double amount;
   private Set<Instrument> instruments;
   private double profit;
   
   private IContext context;
   private IEngine engine;
   private IIndicators indicators;
   private boolean isTradeAllowed = true;

   // Getters and Setters
   public int getStopLossPips() {
      return stopLossPips;
   }

   public void setStopLossPips(int stopLossPips) {
      this.stopLossPips = stopLossPips;
   }

   public int getTakeProfitPips() {
      return takeProfitPips;
   }

   public void setTakeProfitPips(int takeProfitPips) {
      this.takeProfitPips = takeProfitPips;
   }

   public int getRocPeriod() {
      return rocPeriod;
   }

   public void setRocPeriod(int rocPeriod) {
      this.rocPeriod = rocPeriod;
   }

   public Period getPeriod() {
      return period;
   }

   public void setPeriod(Period period) {
      this.period = period;
   }

   public Set<Instrument> getInstruments() {
      return instruments;
   }

   public void setInstruments(Set<Instrument> instruments) {
      this.instruments = instruments;
   }

   public double getProfit() {
      return profit;
   }
   
   public double getAmount() {
      return amount;
   }

   public void setAmount(double amount) {
      this.amount = amount;
   }

   public void onAccount(IAccount account) throws JFException {
   }

   public void onBar(final Instrument instrument, Period period, IBar askBar, final IBar bidBar)
         throws JFException {
      
      if(instruments.contains(instrument) && this.period.equals(period)){
         
         double[] roc = indicators.roc(
               instrument,
               period,
               OfferSide.BID,
               AppliedPrice.CLOSE,
               this.rocPeriod,
               Filter.ALL_FLATS,
               this.rocPeriod,
               bidBar.getTime(),
               0 );
         
/*         
         if(isTradeAllowed) {
            double currRoc = roc[roc.length-1];
            double prevRoc = roc[roc.length-2];
            final double sl = round(instrument.getPipScale(), this.stopLossPips);
            final double tp = round(instrument.getPipScale(), this.takeProfitPips);
            
            // Buy
            if( prevRoc < 0 && currRoc > 0) {
               
               this.context.executeTask(new Callable<IOrder>(){

                  public IOrder call() throws Exception {
                     IOrder o = engine.submitOrder(
                           OrderCommand.BUY.name(),
                           instrument,
                           OrderCommand.BUY,
                           amount,
                           0,
                           5,
                           bidBar.getClose() - sl,
                           bidBar.getClose() + tp
                           );
                     return o;
                  }               
               });            
            }
            
            // Sell
            if( prevRoc > 0 && currRoc < 0) {
               
               this.context.executeTask(new Callable<IOrder>(){

                  public IOrder call() throws Exception {
                     IOrder o = engine.submitOrder(
                           OrderCommand.SELL.name(),
                           instrument,
                           OrderCommand.SELL,
                           amount,
                           0,
                           5,
                           bidBar.getClose() + sl,
                           bidBar.getClose() - tp
                           );
                     return o;
                  }
                  
               });
            }
         }*/
      }
   }

   public void onMessage(IMessage message) throws JFException {
      switch(message.getType()){
      
         case ORDER_FILL_OK :
            isTradeAllowed = false;
            break;
            
         case ORDER_CLOSE_OK:
            isTradeAllowed = true;
            break;
            
         case ORDER_SUBMIT_REJECTED:
            isTradeAllowed = true;
            break;
            
         case ORDER_FILL_REJECTED:
            isTradeAllowed = true;
            break;
            
         case ORDER_CLOSE_REJECTED:
            isTradeAllowed = false;
            break;
      }
   }

   public void onStart(IContext context) throws JFException {
      this.context = context;
      this.engine = context.getEngine();
      this.indicators = context.getIndicators();
      
      this.context.setSubscribedInstruments(instruments);
   }

   public void onStop() throws JFException {
      this.profit = this.context.getAccount().getBalance();
   }

   public void onTick(Instrument instrument, ITick tick) throws JFException {
   }
   
   private static double round(double scale, double num){
      double i = Math.pow(10, scale);
      return Math.round(num*i)/i;
   }

}


and the console out

Apr 26, 2012 4:06:13 PM kt.genetic.GHistTester main
INFO: /var/folders/jg/1293xkcj5vsgwnxcdf2g_9740000gn/T//.cache
Apr 26, 2012 4:06:18 PM com.dukascopy.api.impl.connect.AuthorizationClient getRetrievePropsFromResponse
INFO: >> [https://www1.dukascopy.com/authorization/demo/auth?typus=0&munus=stngs&appello=DEMO2VLoCz&licentio=2bf140904f5d468de86a083ef9622c698daf99255f236441e91b860b457045fa&sermo=3990ca14-5f53-4854-94d4-affc567af442&stngs=1]
Apr 26, 2012 4:06:20 PM com.dukascopy.api.impl.connect.AuthorizationClient getRetrievePropsFromResponse
WARNING: << [{news.host.url=https://external.dukascopy.com, jss.logserver.url=https://demo-login.dukascopy.com/jss-log/, userTypes=REGULAR,MINI_FX,MANAGE_STOP_LIMIT,, wlabel.logo=[B@4934ce4a, news.source=api, contest.chart.url=https://demo-login.dukascopy.com/aDDS/export/contestChart.php, menu.item.dayly.hl=/marketwatch/daily_hl_interbank/, menu.item.margin.level.calculator=/marketwatch/forexcalc/margin_level/, wlabel.shortLabel=Dukascopy Bank, encryptionKey=CFB905DBE8E7ACA89CBEDAC84E9158C5, reports.url=/Reports, base.calendar.url=https://www.dukascopy.com/swiss/{0}, menu.item.economic.calendar=/marketwatch/calendars/eccalendar/, additionalUserTypes=[], feed.commission.history=[], brokerChat.url=https://www.dukascopy.com/chat/login.php?channel=3, wlabel.url=https://www.dukascopy.com, platformFaq.url=https://www.dukascopy.com/swiss/english/forex/faq/, menu.item.holidays.calendar=/marketwatch/calendars/NationalHolidaysCalendar/, menu.item.report.issue=/about/issues/, reports=portfolio_client,intraday_client,position_client,annual_report,deposit_receipt,trader_sll,self_traded_volume,activity_log,merge_log,trade_log,trader_sll_action_log, tradelog_sfx.url=/aDDS/export/tradeLog.php, platformManual.url=https://www.dukascopy.com/wiki/, instruments=[CAD/HKD, EUR/SGD, EUR/NOK, EUR/NZD, AUD/NZD, USD/TRY, GBP/USD, NZD/CHF, USD/MXN, USD/HKD, SGD/JPY, EUR/HKD, AUD/CAD, USD/PLN, EUR/PLN, USD/NOK, USD/CHF, GBP/CHF, EUR/CHF, USD/JPY, GBP/CAD, HKD/JPY, GBP/JPY, EUR/CAD, USD/SEK, CHF/SGD, USD/DKK, EUR/SEK, NZD/JPY, AUD/SGD, NZD/USD, CAD/JPY, EUR/GBP, CHF/JPY, XAG/USD, GBP/AUD, AUD/JPY, XAU/USD, EUR/USD, AUD/USD, USD/CAD, USD/ZAR, EUR/JPY, USD/SGD, AUD/CHF, GBP/NZD, USD/RUB, NZD/CAD, CAD/CHF, EUR/AUD, EUR/DKK, EUR/TRY], menu.item.forex.calculator=/marketwatch/forexcalc/forex_calculator/, debug=false, client.mode=DEMO, loginId=384316, get.help.url=https://www.dukascopy.com/swiss/english/forex/jforex/forum/, menu.item.interest.rates.calendar=/marketwatch/calendars/InterestRatesCalendar/, wlabel.foUrl=https://demo-login.dukascopy.com, history.server.url=https://www.dukascopy.com/datafeed/, external_ip=84.225.91.202, wlabel.longLabel=Dukascopy Bank SA, services1.url=https://demo-login.dukascopy.com, wlabel.skype=dukascopy, wlabel.phone=+41 (0) 22 799 4888}]
Apr 26, 2012 4:06:21 PM kt.genetic.GHistTester main
INFO: Subscribing instruments...
Apr 26, 2012 4:06:21 PM kt.genetic.GHistTester main
INFO: Downloading data
Apr 26, 2012 4:06:23 PM com.dukascopy.api.impl.connect.TesterClientImpl$2 authorized
INFO: Authorized
Apr 26, 2012 4:07:04 PM kt.genetic.GHistTester main
INFO: Data downloaded.
Apr 26, 2012 4:07:04 PM kt.genetic.GHistTester main
INFO: Balance: 0.0
Apr 26, 2012 4:07:13 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [72000000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [72000000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:13 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [68400000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [68400000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:13 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [64800000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [64800000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:13 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [61200000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [61200000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:13 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [57600000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [57600000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:13 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [54000000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [54000000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:13 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [50400000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [50400000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:13 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [46800000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [46800000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:13 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [43200000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [43200000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [39600000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [39600000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [36000000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [36000000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [32400000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [32400000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [28800000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [28800000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [25200000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [25200000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [21600000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [21600000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [18000000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [18000000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [14400000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [14400000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [10800000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [10800000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [7200000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [7200000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)
Apr 26, 2012 4:07:14 PM com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory addCandle
SEVERE: [3600000] Received candle has older time than pervious candle, ignoring
java.lang.Exception: [3600000] Received candle has older time than pervious candle, ignoring
at com.dukascopy.dds2.greed.agent.strategy.tester.TesterHistory.addCandle(TesterHistory.java:287)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:650)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:470)
at java.lang.Thread.run(Thread.java:680)


Thank you for your help!

Best regards,
Kirilla


 
 Post subject: Re: Received candle has older time than pervious candle Post rating: 0   New post Posted: Thu 26 Apr, 2012, 16:08 
User avatar

User rating: 0
Joined: Thu 19 May, 2011, 11:48
Posts: 26
Location: Hungary, Budapest
"03/25/2012 00:00:00"; was sunday so I've changed it to "03/26/2012 00:00:00" and it is working.


 

Jump to:  

  © 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