RedeeCash 4XLOTS
- Bibliothèque
- Patrick Odonnell Ingle
- Version: 1.0
- Activations: 10
La bibliothèque RedeeCash 4XLOTS est une bibliothèque de gestion des risques localisée basée sur l'algorithme de l'API WEB 4xlots.com. Cet algorithme de gestion des risques ne dépend pas de la devise car l'équation rapide de la taille du lot de,
lots = CompteEquity / 10000
qui est pour chaque 100 $ de capitaux propres du compte aura 0,01 lot.
La bibliothèque RedeeCash 4XLOTS utilise un algorithme plus détaillé et amélioré développé pour la première fois en 2011 sous forme de calcul manuel.
RedeeCash 4XLOTS a une seule fonction appelée LotsOptimize. Copiez et incluez le fichier RedeeCash_4XLOTS.mqh suivant dans votre projet.
//+------------------------------------------------------------------+ //| RedeeCash_4XLOTS.mqh | //| Copyright 2011-2022, PressPage Entertainment Inc DBA RedeeCash | //| https://4xlots.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2011-2022, PressPage Entertainment Inc DBA RedeeCash" #property link "https://4xlots.com" #property strict //+------------------------------------------------------------------+ //| defines | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| DLL imports | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| EX4 imports | //+------------------------------------------------------------------+ #import "Market/RedeeCash_4XLOTS.ex4" double LotsOptimize(double deposit,int preserve); #import //+------------------------------------------------------------------+
Pour utiliser la bibliothèque, incluez la référence MQH ci-dessus dans votre fichier de projet et transmettez deux paramètres, le montant total du dépôt sur le compte et un indicateur booléen indiquant s'il faut conserver le dépôt en réduisant le montant dans le calcul.
La taille optimale des lots sera renvoyée, comprise entre la taille minimale et maximale des lots du compte.
La vidéo ci-dessous parle de l'API Web, mais cette version utilise le même algorithme intégré dans la bibliothèque sans avoir besoin d'invoquer une API externe. Plus important encore, Priscilla parle de l'importance de mettre en œuvre un algorithme de gestion des risques évolutif dans votre algorithme de trading afin de minimiser vos risques tout en maximisant vos profits.
AVERTISSEMENT DE RISQUE :
LE PRÉLÈVEMENT POURRAIT DÉPASSER 50 % DU SOLDE DU COMPTE.