Aurum79
As a chemical element with the symbol Au and atomic number 79, aurum, commonly known as gold, has long been esteemed for its associations with wealth and luxury. The Aurum79 JavaScript library offers a client for connecting to the MetaTrader 5 trading platform, potentially aiding users in achieving financial success through trading.
It is possible to utilize tensorflow.js
for predicting prices, as well as for fetching forex calendar or other relevant events, allowing for the combination of technical and fundamental analysis. Additionally, using javascript can be a more convenient option than scripting in MQL5, as there may be fewer restrictions and difficulties.
Installation
Prerequisites:
- NodeJS (latest version or LTS)
- MT5 client
Install from package manager:
NPM
npm install aurum79 --save
Yarn
yarn add aurum79
PNPM
pnpm add aurum79
Usage
To utilize the aurum79 module in your project, you will first need to download the compiled EA from the mql/Aurum79.ex5
directory or compile it yourself. Once this is done, activate it within the MetaTrader5 client prior to running your script.
An example of how to utilize the aurum79
module in your project is provided below:
import {
MetaTraderClient,
MetaTraderClientActionType,
MetaTraderClientTradingStatus,
} from 'aurum79';
const client = new MetaTraderNode();
client.on('tick', ({ tick, history, chart, status, action }) => {
action('BUY');
action('SELL');
console.log({ status })
console.log({ tick });
console.log({ history });
fs.writeFileSync(
path.join('image', `${new Date().toISOString()}.png`),
chart
);
});
client.on('action', ({ type, data }) => {
console.log({ type });
});
client.on('result', ({ result, data }) => {
console.log({ result, data });
});
client.start();
License
MIT (c) copyrighted 2002 by Ribhararnus Pracutian.