Two dimension Array fill and Print – script MetaTrader 5 – script MetaTrader 5

result
We often need to input numeric values into an array, in which I am sharing how we can easily use a string array to input and output numeric values. In this case, a 2-dimensional array is used, but it can also be multidimensional. Two dimension Array fill and Print – script MetaTrader 5 – script … Read more

BinanceQuotesDownloader – script MetaTrader 5

BinanceQuotesDownloader - script for MetaTrader 5
This script allows you to receive quotes from the Binance crypto exchange and display them in a custom symbol window. To run the script: 1. In the terminal settings in the Expert Advisors tab, enable WebRequest and enter the website address: https://api.binance.com 2. Place the BinanceQuotesDownloader file in the Scripts folder of the MT5 terminal … Read more

Input and output of onnx model – script MetaTrader 5

Input and output of onnx model - script for MetaTrader 5
ONNX is an open-source format for representing machine learning models. The script allows the user to select an ONNX model file through a file dialog. It then creates an ONNX session, retrieves information about the input and output tensors in the model, and prints this information to the console. Here’s a breakdown of the script’s … Read more

Linear Regression calculation based on pine script v4 – indicator MetaTrader 5

ScreenshotLinreg
Linear regression curve A line that best fits the prices specified over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length – 1 – offset), where length is the y argument, offset is the z … Read more

COLLECT ALL INDICATORS DATA – script MetaTrader 5

COLLECT ALL INDICATORS DATA - script for MetaTrader 5
Collect All Indicators Script This Script collects all MQL5 built-in indicators buffers and stores them in a CSV file for analysis purposes. Bollinger Bands (BB): BB_BASE_LINE: The base (central) line of the Bollinger Bands. BB_UPPER_BAND: The upper band of the Bollinger Bands. BB_LOWER_BAND: The lower band of the Bollinger Bands. Other Indicators: ADX-MAIN_LINE: The main … Read more

Closing all open trades if all one symbol and one trade direction – script MetaTrader 4

Closing all open trades if all one symbol and one trade direction - script for MetaTrader 4
All open trades must be of same symbol and type, e.g. all GBPUSD and all BUY. This script will close out your position using one large trade to hedge your position then using CloseBy() function to close all trades against the one large trade until all trades are closed. There can be a maximum of … Read more

pivots calculation based on pine script v4 – indicator MetaTrader 5

MT5 Pivots
For MQL4 version please click here. pine script v4 function I/O : pivothigh(source, leftbars, rightbars) → series[float] pivotlow(source, leftbars, rightbars) → series[float] This indicator includes two simple functions to calculate the pivotshigh and pivotslow functions based on pine script. The functions can be used as copy and paste snippet in conversion projects from tradingview platform. Note: The … Read more

pivots calculation based on pine script v4 – indicator MetaTrader 4

pivots calculation based on pine script v4 - indicator for MetaTrader 4
For MQL5 version please click here. pine script v4 function I/O : pivothigh(source, leftbars, rightbars) → series[float] pivotlow(source, leftbars, rightbars) → series[float] This indicator includes two simple functions to calculate the pivotshigh and pivotslow functions based on pine script. The functions can be used as copy and paste snippet in conversion projects from tradingview platform. Note: The … Read more