Wednesday, November 30, 2022
HomeForexGRat Crypto Guide - Buying and selling Methods - 29 November 2022

GRat Crypto Guide – Buying and selling Methods – 29 November 2022


1.       Run MT5 on any account (even demo).
2.       In MT5 go to Instruments – Choices.
a.       On the Charts tab, set in Max bars in chart: the default variety of bars to load from the alternate (Although it can not load extra bars than is on the market by means of the alternate API).
b.       On the Professional Advisors tab, examine Enable WebRequest for listed URL:

stream.binance.com

fstream.binance.com

testnet.binance.imaginative and prescient

stream.binancefuture.com

stream.bybit.com

stream-testnet.bybit.com

ws-api.kucoin.com

push-private-sandbox.kucoin.com

https://www.okx.com

ws.okx.com

wspap.okx.com

3.       Run GRat_Crypto EA on any chart.
4.       On the Inputs tab enter the parameters:

Magic – Essential! Every occasion of GRat_Crypto operating on the identical terminal will need to have a singular magic quantity.

Mode  Feed Solely simply feeds market knowledge for the chosen coin/pair for charts; Commerce Solely – simply trades on the chosen coin/pair(you should feed marked knowledge by one other GRat_Crypto occasion); Feed & Commerce – each feeds and trades.

WebSocket – if true (beneficial), then market knowledge is requested by way of WebSocket API (attainable for Binance, Bybit, KuCoin и OKX), in any other case – by way of REST API.

UpdateMilliseconds – quote request frequency (0 – minimal attainable for the alternate).

QuotesStart –  the beginning date of the quotes historical past. If 1970.01.01 00:00:00 is ready, then not more than the variety of bars specified within the Max bars in chart: terminal setting will probably be loaded.

Simulation – if true then the EA does not open actual trades on crypto exchanges, however simply attracts traces он the chart and reveals the trades in Trades panel. Use it for testing. For actual buying and selling set false

TradeAlerts – if true then an alert will seem on every commerce occasion, in any other case solely a document within the log.

ErrorAlerts – if true then an alert will seem on every error, in any other case solely a document within the log.

ShowTradesOnChart  – if true then the chart will present traces from opening to closing positions.

=== CopyFrom ===

Change on Begin — when beginning GRat_Crypto, if there are open orders or positions on the cryptocurrency alternate, you’ll be prompted to repeat them to the EA.

Image – you may run any EA or commerce manually on any account (even demo) and GRat_Crypto will copy all orders and trades made by different EAs from the required image (not empty) to the cryptocurrency alternate.

Magic – you may run any EA on any account (even demo) and GRat_Crypto will copy all orders and trades made by different EAs with the required magic quantity (nonzero) to the cryptocurrency alternate.

File – if true then GRat_Crypto will copy orders from OrderExchange<Magic>.csv file (added after GRat_Crypto begin solely). See beneath easy methods to add orders to this file.

Widespread — if true, then the OrderExchange<Magic>.csv file is positioned within the frequent folder of all shopper terminals ..TerminalCommonFiles, if false – within the folder of the present terminal ..MQL5Files.

=== Change === – cryptocurrency alternate (Binance, Bybit, Kraken, KuCoin or OKX).

Coin – forex or instrument to commerce, e.g., Binance – BTC, Bybit – BTC, Kraken – XBT, KuCoin – BTC, OKX – BTC or BTC_USD_SWAP or BTC-USDT-220624.

Base – steadiness forex, e.g., Binance – USDT, Bybit – USDT, Kraken – USD, KuCoin – USDT, OKX – USDT or USD.

APIKey – alternate API public key.

APISecret – alternate API personal key.

BookDepth – the variety of entries within the order guide (0 – disabled). To view, open the “Depth Of Market” window in MT5.

WalletType – buying and selling pockets kind: Change – spot, Margin – (Binance solely) or Futures (Binance, KuCoin and OKX solely).

Leverage – leverage relying on the flexibility of the alternate (e.g., Binance Futures pockets – 1..125).

KuCoin Passphrase – required for KuCoin solely.

OKX Passphrase – required for OKX solely.

=== Dashboard ===

ScalePercent – panels dimension in share to unique (in case of customized system font dimension).

PerPage – the variety of traces per web page within the Trades and Historical past panel.

MaxHistory – the utmost variety of trades within the Historical past panel.


1.    By default, the order quantity is within the forex to commerce. Press BTC: (or different forex) button to set it as steadiness forex or a share of the full steadiness (it would change to Threat %). Enter the order quantity.
2.    Enter Leverage: (for some exchanges solely).
3.    Enter Worth: if you wish to ship pending order.
4.    Enter Cease Restrict: value (for Cease Restrict orders solely).
5.    Enter SL: value.
6.    Enter TP: value.
7.    Press Purchase @.. / Promote @.. button to ship Market order.
8.    Press Purchase Cease / Promote Cease button to open Cease order.
9.    Press Purchase Restrict / Promote Restrict button to open Restrict order.
10.   Press Purchase Cease Restrict / Promote Cease Restrict button to open Cease Restrict order.
11.   Press Trades button to indicate Trades panel (see beneath).
12.   Press Historical past button to indicate Historical past panel (see beneath).


1.       In SL column press     button to delete stop-loss, or   button to set stop-loss in keeping with the dashboard settings.
2.       In TP column press     button to delete take-profit, or   button to set take-profit in keeping with the dashboard settings.
3.       In Trailing Cease column press the button to set trailing stop-loss parameters: distance, step and begin degree.
4.       In Trailing Revenue column press the button to set trailing take-profit parameters as nicely.
5.       In Shut column enter the a part of closing quantity (elective, for place solely) and press   to shut place or delete order.


GRat_Crypto can copy orders from exterior file OrderExchange<Magic>.csv (the place Magic is GRat_Crypto distinctive magic quantity). For instance, OrderExchange10000.csv. The file will be positioned each within the terminal folder ..MQL5Files and within the frequent folder of all shopper terminals ..TerminalCommonFiles. The GRat_IndiTrade product creates such file. Or use OrderExport() perform from the hooked up beneath module ..MQL5IncludeGRat_OrderExport.mqh so as to add an order out of your script code:

#embrace <GRat_OrderExport.mqh>
…
MqlTradeRequest request = {};

request.motion  = TRADE_ACTION_DEAL;
request.image  = Image();
request.quantity  = 0.2;
request.kind   = ORDER_TYPE_SELL;
request.value  = SymbolInfoDouble(Image(), SYMBOL_BID);
request.magic  = 10000;
OrderExport(request);

 You must fill further MqlTradeRequest fields for actions TRADE_ACTION_DEAL (for closing positions),  TRADE_ACTION_SLTP, TRADE_ACTION_REMOVE and TRADE_ACTION_MODIFY:

  • kind
  • quantity (constructive for purchase, destructive for promote)
  • value (for pending orders solely)
  • stoplimit (for Cease Restrict orders solely)
  • sl
  • tp
  • place (constructive, for closing positions solely)
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments