Trading4j

Contains build settings common to all Trading4j projects.

Лицензия

Лицензия

Группа

Группа

de.voidnode.trading4j
Идентификатор

Идентификатор

parent
Последняя версия

Последняя версия

0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Trading4j
Contains build settings common to all Trading4j projects.
Ссылка на сайт

Ссылка на сайт

https://github.com/rbi/trading4j
Система контроля версий

Система контроля версий

https://github.com/rbi/trading4j

Скачать parent

Имя Файла Размер
parent-0.1.pom 10 KB
parent-0.1-buildconfig.jar 5 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/de.voidnode.trading4j/parent/ -->
<dependency>
    <groupId>de.voidnode.trading4j</groupId>
    <artifactId>parent</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/de.voidnode.trading4j/parent/
implementation 'de.voidnode.trading4j:parent:0.1'
// https://jarcasting.com/artifacts/de.voidnode.trading4j/parent/
implementation ("de.voidnode.trading4j:parent:0.1")
'de.voidnode.trading4j:parent:jar:0.1'
<dependency org="de.voidnode.trading4j" name="parent" rev="0.1">
  <artifact name="parent" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.voidnode.trading4j', module='parent', version='0.1')
)
libraryDependencies += "de.voidnode.trading4j" % "parent" % "0.1"
[de.voidnode.trading4j/parent "0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • core
  • server
  • examples

Trading4j

Trading4j is a library that allows to write automated expert advisors for Forex trading. The library promotes writing code that is reusable across different expert advisors by clearly separating between different aspects of expert advisor programming. In Trading4j these aspects are strategies, indicators, money management and order filtering.

Expert advisors written with trading4j can place orders through the well known trading terminal MetaTrader. Therefore a wide range of brokers is supported while still having all the benefits of programming on the Java platform.

License

Trading4j can be used under the terms of the GNU General Public License Version 3.

Getting Started

To get started with programming with trading4j take a look at the examples directory. The example contains a server that serves an exemplary expert advisor.

To connect MetaTrader to the server a Trading4j client must be installed. It can be downloaded from the releases tab. Unzip the client into the MetaTrader directory. The client should now be available as an expert advisor in MetaTrader terminal, e.g. for backtesting or live trading. The Import of DLLs option must be enabled in MetaTrader for Trading4j to function properly.

On the Java side, Trading4j is available as Maven artifact with the following Maven coordinates.

<dependency>
  <groupId>de.voidnode.trading4j</groupId>
  <artifactId>server</artifactId>
  <version>[some_version]</version>
</dependency> 

The newest version available can be found on Maven Central.

Compiling the client for MetaTrader 4

The directory client-metatrader contains a MetaTrader compatible expert advisor. This expert advisor will connect to the server created with trading4j to delegate the trading decisions. To build it, enable the Maven project client-metatrader by activating the Maven Profile client-metatrader. At the moment you need a C/Windows cross-compiler named i686-w64-mingw32-gcc. In Ubuntu 16.04 you can get this by installing the package mingw-w64. You also need wine and a MetaTrader installation. You need to set up the Maven property metaeditor.executable (e.g. in your settings.xml) to point to the metaeditor.exe executable. A working Maven comand line could look as the following: mvn -Pclient-metatrader -Dmetaeditor.executable="~/.wine/Program Files (x86)/MetaTrader 4/metaeditor.exe" install.

After the build you get the client as a ZIP bundle in the target folder.

Версии библиотеки

Версия
0.1