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.

compile problem
 Post subject: compile problem Post rating: 0   New post Posted: Tue 12 Feb, 2013, 10:59 
User avatar

User rating: 0
Joined: Tue 27 Nov, 2012, 11:50
Posts: 19
Location: SlovakiaSlovakia
Dear support,

it is possible to compile a mql4 strategy that needs to read files stored in MT4 experts / include?
When so, how please?


 
 Post subject: Re: compile problem Post rating: 0   New post Posted: Tue 12 Feb, 2013, 12:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
files get read/written to the IContext.getFilesDir() directory, you can check the full path the following way:
package chart;

import com.dukascopy.api.*;

public class CheckFilesDir implements IStrategy {
   @Override
   public void onStart(IContext context) throws JFException {
      context.getConsole().getOut().println(context.getFilesDir());
   }

   @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 {}

}



 

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