Manual for GRat Crypto
Make sure your computer's local time is synchronized with the Internet.MT5 & EA Setup
2. In MT5 go to Tools – Options.
a. On the Charts tab, set in Max bars in chart: the default number of bars to load from the exchange (Though it cannot load more bars than is available through the exchange API).
b. On the Expert Advisors tab, check Allow WebRequest for listed URL:
Binance:
fapi.binance.com
dapi.binance.com
testnet.binance.vision
testnet.binancefuture.com
BingX:
open-api-swap.bingx.com
Bybit:
Coinbase:
CoinEx:
Kraken:
KuCoin:
push-private-sandbox.kucoin.com
MEXC:
wbs.mexc.com
OKX:
3. Run GRat_Crypto EA on any chart.
4. On the Inputs tab enter the parameters:
MaxHistory – the maximum number of trades in the History panel.
Press OK.
Important! You should wait for the xxx bars loaded entry in the Experts log for a specified coin (it can take a long time at the first launch) and the appearance in the Market Watch window of the corresponding custom symbol with the addition of the exchange suffix (e.g. BTCUSDT.bncf - Binance BTCUSDT futures, or ETHUSDT.okx - OKX ETHUSDT spot), and switching of the EA's chart to this symbol. The number of loaded bars depends on QuotesStart EA setting, or on Max bars in chart: terminal setting, the timeframe of the chart on which the EA is running, and the capabilities of the specified crypto exchange API.
Strategy Testing
After downloading the bars from the crypto exchange, you can test any EA in the MT5 strategy tester on the downloaded history of custom symbol (it is created in the Custom\<Crypto exchange>\... group, e.g. Custom\Binance\BTCUSDT.bncf). The testing period should not go beyond the downloaded history.
To reload bars again (e.g., if you need to fix gaps in history or load earlier history), stop GRat_Crypto, close all charts with reloading custom symbol, delete the reloading custom symbol from MT5, change the QuotesStart setting or the Max bars in chart: terminal setting, restart GRat_Crypto and wait for the xxx bars loaded again.
Dashboard

1. By default, the order volume is in the currency to trade. Press BTC: (or other currency) button to set it as balance currency or a percentage of the total balance (it will change to Risk %). Enter the order volume.
2. Enter Leverage: (for some exchanges only).
3. Enter Price: if you want to send pending order.
4. Enter Stop Limit: price (for Stop Limit orders only).
5. Enter SL: price.
6. Enter TP: price.
7. Press Buy @.. / Sell @.. button to send Market order.
8. Press Buy Stop / Sell Stop button to open Stop order.
9. Press Buy Limit / Sell Limit button to open Limit order.
10. Press Buy Stop Limit / Sell Stop Limit button to open Stop Limit order.
11. Press Trades button to show Trades panel (see below).
12. Press History button to show History panel (see below).
Trades panel

1. In SL column press
button to delete stop-loss, or
button to set stop-loss according to the dashboard settings.
2. In TP column press
button to delete take-profit, or
button to set take-profit according to the dashboard settings.
3. In Trailing Stop column press the button to set trailing stop-loss parameters: distance, step and start level.
4. In Trailing Profit column press the button to set trailing take-profit parameters as well.
5. In Close column enter the part of closing volume (optional, for position only) and press
to close position or delete order.
History panel

Copy from File
GRat_Crypto can copy orders from external file OrderExchange<Magic>.csv (where Magic is GRat_Crypto unique magic number). For example, OrderExchange10000.csv. The file can be located both in the terminal folder ..\MQL5\Files\ and in the common folder of all client terminals ..\Terminal\Common\Files. The GRat_IndiTrade product creates such file. Or use GRat_OrderExport (MT5), GRat_OrderExport (MT4).


