Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Bibliothèque

MQL4/5-JsonLib - bibliothèque pour MetaTrader 5

ding9736
Publié par:
hini
Vues:
158
Note:
(3)
Publié:
Mise à jour:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

The original library only supports MQL5, but I made some modifications to support MQL4. You can test the MQL4 version by copying the test script and changing the suffix to mq4.

Original author link: https://www.mql5.com/en/code/62735



Open Trade Open Trade

This function performs the main logic of opening a trade. It calculates the opening price, take profit levels and stop loss based on the symbol information and parameters provided by the user. Prepare a trade request (MqlTradeRequest) with the necessary information such as symbol, volume, order type, slippage, comment, magic number, etc. Call the OrderSend function to send the trade request and get the result. SetTypeFillingBySymbol function: determines the order fulfilment type (Fill or Cancel, Immediate or Cancel or Return) according to the symbol's fulfilment policy. GetMinTradeLevel function: calculates the minimum trade level based on the freeze level and stop level of the symbol. Adjusts the minimum level to ensure that it is within certain limits and returns the result.

ATR_Momentum_Colour ATR_Momentum_Colour

combination of many familiar indicators for beginner traders

TickCompressor - with compression of 1 tick to 2-3 bytes on average TickCompressor - with compression of 1 tick to 2-3 bytes on average

Compression of tick data for storage in a compact form up to 3.5 times more compact than .tcs MQ files. And for fast work with them, because reading 3 bytes takes less time than reading 60 bytes of MqlTick structure.

MACD Signals MACD Signals

Indicator edition for new platform.