Toute question des nouveaux arrivants sur MQL4 et MQL5, aide et discussion sur les algorithmes et les codes. - page 1646
Vous manquez des opportunités de trading :
- Applications de trading gratuites
- Plus de 8 000 signaux à copier
- Actualités économiques pour explorer les marchés financiers
Inscription
Se connecter
Vous acceptez la politique du site Web et les conditions d'utilisation
Si vous n'avez pas de compte, veuillez vous inscrire
Bonne journée Makar ! !!
En suivant vos conseils, j'ai trouvé un endroit dans la fonction void OnTick() où je peux attacher la fonction TrailingGroupOrder() pour envoyer une commande pour modifier une traînée d'ordres groupés, et oh mon dieu la traînée d'ordres groupés a commencé à fonctionner. Cependant, ma joie n'a pas duré longtemps. En regardant de plus près, j'ai vu que seule la commande avec un ticket minimum est trilled.
Je peux très probablement supposer que le problème réside dans la modification de la première commande (minimale) uniquement et non de toutes les commandes en même temps.
Makar conseille comment faire en sorte que tous les ordres de la grille soient modifiés en même temps ????.
Montrez-moi où vous avez mis TrailingGroupOrder() dans la fonction void OnTick() ?
Supprimer les éléments surlignés en rouge
Surligné en jaune, il faut l'amener en haut de la page.
Supprimer les éléments surlignés en rouge
Surligné en jaune, affichez-le
Makar est la variante que vous m'avez envoyée hier - il serait très simple dans cette variante les ordres sont également fermés de manière incorrecte
Makar c'est la variante que vous m'avez envoyé hier - il aurait été très simple dans cette variante les ordres ne sont pas fermés correctement
Mes corrections n'affectent pas la clôture.
Une dernière chose : que signifie "tr" dans la fonction TrailingGroupOrder() ?
Makar c'est la variante que vous m'avez envoyé hier - il aurait été très simple dans cette variante les ordres sont aussi fermés incorrectement
Que voulez-vous dire par "ne se ferme pas correctement" ?
Toutes les commandes ne sont pas fermées en même temps à partir du chalut, mais seulement la commande avec le ticket le plus bas et ainsi de suite, une par une.
Toutes les commandes ne sont pas fermées en même temps à partir du chalut, mais seulement la commande avec le ticket le plus bas et ainsi de suite, une par une.
Bonjour à tous, Je suis en train d'écrire du code pour une recherche de commandes groupées. La logique du code est la suivante :
Après l'ouverture du deuxième ordre et des ordres suivants, nous recevons une commande pour modifier les ordres ModifyOrders() où nous calculons la moyenne et ensuite le calcul du takeprofit et modifions tous les ordres mais uniquement le takeprofit.
Ensuite, nous appelons la fonction TrailingGroupOrder() à partir de la fonction void OnTick() où le Stop Loss est modifié en Trailing Stop.
La question est que seul un ordre avec un ticket minimum est modifié ; ce n'est pas correct ; tous les ordres de la grille devraient être modifiés et clôturés au TP ou SL. Aidez-moi à comprendre. Merci d'avance.
Bonjour à tous, Je suis en train d'écrire du code pour une recherche de commandes groupées. La logique du code pour le chalut est la suivante :
Pourquoi cette duplication
Vous pouvez le faire de cette façon
Montrez également quels paramètres