Unisciti alla nostra fan page
- Pubblicati da::
- hini
- Visualizzazioni:
- 400
- Valutazioni:
- Pubblicato:
- Aggiornato:
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a 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
Update: Thanks to @fxsaber for the suggestion. The files JsonTypes.mqh, JsonUtils.mqh, and JsonDomBuilder.mqh have been modified to slightly improve parsing speed.

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
combination of many familiar indicators for beginner traders
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.
PHSB Screener
This Screener was created to simplify the process of finding assets trading at discounted prices. Initial usage may take slightly longer due to the data loading process for all selected instruments. The tool can scan all available broker assets or be limited to specific asset classes.