The JsTraderApi is a powerful connection/interface that bridges your JavaScript strategies with MT4/5 terminals. This functionality is analogous to our well-known Pytrader_API, which is widely used by many strategies coded in Python.
In addition to the JsTraderApi, an Expert Advisor (EA) is required for both MT4 and MT5 terminals, and these are included as part of the system. The demo version offers full functionality for the following instruments:
- EURUSD
- AUDCHF
- NZDCHF
- GBPNZD
- USDCAD
- DAX (added as an index instrument in the demo)
📄 Documentation
The functionality is thoroughly documented in a PDF file.
- A running MT4 or MT5 terminal.
- The appropriate EA must be active on at least one chart.
- Fill in the socket server port and, for the licensed version, the folder with the authentication indicator.
- The demo version is fully functional for the mentioned instruments, and the authentication indicator can be acquired via MQL5 Markets.
The socket communication is very fast (interrupt-based), ensuring efficient execution. The execution time of functions depends on the specific function and the selected broker. The MT terminal acts as a server while the JsTraderApi acts as a client, facilitating a question-and-answer interaction.
For any questions, feel free to join our Discord Server:
👉 Join Discord Community
- Instantiation
- Connect to server
- Check connection
- Disconnect from MT terminal
- Change timeout value
- Get broker server time
- Get static account information
- Get dynamic account information
- Get instrument information
- Get broker instrument names
- Check instrument in market watch
- Check license type
- Check if trading is allowed
- Check terminal type
- Check terminal server connection
- Get last tick information
- Get actual bar information
- Get specific bars
- Get last X ticks from now
- Get last X bars from now
- Open order
- Set stop loss and take profit for position
- Set stop loss and take profit for order (pending)
- Reset stop loss and take profit for position
- Reset stop loss and take profit for pending order
- Change settings for pending order
- Delete pending order
- Close position
- Close position partially
- Close position by opposite position (CloseBy)
- Close positions asynchronously
- Get all pending orders
- Get all deleted pending orders within window
- Get all deleted pending orders
👉 Join Our Best Supported Broker
🔗 Get the Full Unlimited Version Here:
👉 JsTrader Full Version
Thank you for your support, and happy trading! 💰✨