Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
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

stdlib.mq5 - bibliothèque pour MetaTrader 5

MetaQuotes Software Corp
Publié par:
jaffer wilson
Vues:
6808
Note:
(16)
Publié:
2019.12.26 12:32
Mise à jour:
2019.12.27 07:17
\MQL5\Libraries\
stdlib.mq5 (17.38 KB) afficher
\MQL5\Include\
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Here I have modified the stdlib from MQL4 to MQL5 which was originally written by MetaQuotes Software Corp.

This function is changed:

MT4

//+------------------------------------------------------------------+
//| convert integer to string contained input's hexadecimal notation |
//+------------------------------------------------------------------+
string IntegerToHexString(int integer_number)
  {
   string hex_string="00000000";
   int    value,shift=28;
//---
   for(int i=0; i<8; i++)
     {
      value=(integer_number>>shift)&0x0F;
      if(value<10)
         hex_string=StringSetChar(hex_string,i,ushort(value+'0'));
      else
         hex_string=StringSetChar(hex_string,i,ushort((value-10)+'A'));
      shift-=4;
     }
//---
   return(hex_string);
  }

MT5

//+------------------------------------------------------------------+
//| convert integer to string contained input's hexadecimal notation |
//+------------------------------------------------------------------+
string IntegerToHexString(int integer_number)
  {
   string hex_string="00000000";
   int    value,shift=28;
//---
   for(int i=0; i<8; i++)
     {
      value=(integer_number>>shift)&0x0F;
      if(value<10)
         bool check=StringSetCharacter(hex_string,i,ushort(value+'0'));
      else
         bool check=StringSetCharacter(hex_string,i,ushort((value-10)+'A'));
      shift-=4;
     }
//---
   return(hex_string);
  }


    iWPR+ iWPR+

    iWPR+ is an iWPR %Range function with a positive value.

    VR Smart Grid Lite MT5 VR Smart Grid Lite MT5

    The EA uses large volume orders to partially close other orders, with this approach, the breakeven and profit price is much closer to the current price than if you use all orders in the terminal or their full volumes.

    iRSIOnArray for MT5 iRSIOnArray for MT5

    Header with iRSIOnArray function for use with MQL 4 or 5 code.

    Normalized Price Indicator Normalized Price Indicator

    By using this indicator you can see the normalized price of any chart! You can use this indicator to find the divergence in the market!