Comment j'ai assemblé mon conseiller par essais et erreurs - page 53
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
#propriété version "1.012"
Légère amélioration de la fonction
lorsqu'elle est déclenchée, la ligne horizontale SELL ouvre une position et affiche une ligne horizontale BUY et vice versa.
De même, la ligne est définie à partir de "0" et la distance est définiepar Obj : Trailing Step MACD
ou de la ligne horizontale"LOW".
FromTimer "LOW Up" "LOW Down" identique, seulela distance est définie (entrée ushort InpObjTrailingStepCS = 5;// Obj : Trailing Step, en pips (1.00045-1.00055=1 pips)
Comment connaître la distance de la ligne horizontale dans l'indicateurLow_Macd_Line.mq5 à mettre dans le sentier (sur chaque paire, une distance différente)
Copier et coller dans les paramètres de l'Utilitaire
dans l'image de "0" à Horizontal BUY 0.0064 et quand il touche Horizontal LOW, Horizontal SELL sera mis (seulement en dessous de"0"-0.0064)
IMPORTANT !!! Ne mettez pas de moins ( - ) devant les chiffres que nous tapons dans l'utilitaire.
Une des variantes, comment fonctionne cette fonction
Modification de la fonction "Profits et pertes #property version "1.013"
s'il est atteint, fermera et effacera tout, et changera toutes les fenêtres ouvertes pour le modèle spécifié
La fonction ouvre une position, à partir du compte de résultat.
J'ai créé un indicateur d'assistant dans UtilityCommand.mq5, les lignes se déplacent et il est possible de définir des commandes à partir de celles-ci. Je l'ai construit avecSEM
J'ai trouvé https://www.mql5.com/ru/code/16269 Il s'avère être un script mt4 Je remercie l'auteurAlexey Volchanskiy.
J'ai cherché https://www.mql5.com/ru/code/16269 Il s'avère que ce script de mt4 Merci à l'auteurAlexey Volchanskiy!
Il existe un script non seulement pour mt4 mais aussi pour mt5https://www.mql5.com/ru/code/16262 Je l'ai maîtrisé dans l'Indicateur.Je remercie l'auteurAlexey Volchanskiy!
Modification de la fonction "Profits et pertes #property version "1.013"
lorsqu'il est atteint, il fermera et supprimera tout, et changera toutes les fenêtres ouvertes pour le modèle spécifié.
#propriété version "1.014"
Pourtant, le profit de la balance est une fonction nécessaire - lorsqu'un conseiller expert travaille sur plusieurs paires.
a redéfini le concept de "Profit et Perte" afin de pouvoir clôturer sur une paire donnée sans affecter les autres paires.
Profits et pertes, écrivez le montant (par exemple 1 unité de votre devise) dans le paramètre 1000000 - jusqu'à ce qu'il prenne un million devotredevise, il ne fermera pas la position.
#propriété version "1.014"
Néanmoins, le profit de la balance est une fonction nécessaire lorsqu'un conseiller expert travaille sur plusieurs paires.
refonte des profits et pertes pour clôturer sur cette paire et ne pas affecter les autres paires
Lafonction P&L fixe le montant (par exemple, 1 unité de votre devise) à 1000000 - elle ne ferme pas la position avant d'avoir pris un million devotre devise.
#propriété version "1.015"
un peu fixe, cette fonction(Profit et Perte) - parce que sur une paire, vous pouvez ouvrir plusieurs positions, une façon - maintenant va fermer le montant total, une position peut être dans le plus et l'autre dans le négatif, mais le montant total est égal au montant spécifié dans les paramètres.
----------------------
voici une fonction(Profit & Loss)
#propriété version "1.015"
Fixé(Profit & Perte) - on peut ouvrir plusieurs positions pour une paire de devises et il sera fermé sur le montant total, une position peut être rentable et une autre - négative, mais le montant total est égal au montant spécifié dans les paramètres.
----------------------
Voici une fonction(Profits et pertes)
J'ai essayé sur un compte réel, je voulais un petit profit sur deux positions ouvertes. Je l'avais réglé sur 160 et je pensais qu'il fermerait la plus grande position négative, mais il ne l'a pas fait.
Je pensais qu'il fermerait la plus grosse position perdante mais il ne l'a pas fait. Il a fermé celle qui avait 160 de profit et a fermé les deux positions et je suis un imbécile. Il s'avère que je dois calculer à partir de la première position ouverte, en ajoutant la position négative.
#propriété version "1.015"
J'ai corrigé cette fonction(Profit & Perte) un peu - parce que sur une paire, vous pouvez ouvrir plusieurs positions, dans un sens - maintenant il va fermer sur le montant total, une position peut être dans le plus et l'autre dans le négatif, mais le montant total est égal au montant spécifié dans les paramètres.
----------------------
voici la fonction(Profit & Perte)
#propriété version "1.016"
J'ai essayé différentes méthodes, mais il semble que ce soit la seule. Si je fixe le montant en une fois, en ouvrant beaucoup de positions - il ferme le même montant.
Voici la fonction, un peu différemment
#propriété version "1.016"
J'ai essayé toutes sortes de choses, mais c'est la seule façon dont ça devrait être. Si je fixe le montant en une fois, en ouvrant de nombreuses positions - il ferme exactement ce montant.
Voici une fonction, un peu différente
J'ai vérifié cette fonction dans le testeur - j'ai fixé un profit de 300, une perte de 10000. L'ouverture provient de l'indicateur (LeMan_BrainTrend1Sig) sur l'EURUSD H1 avec une balance de 100 levier 100 avec 0.01 lot
fonction Profit Perte en devise - BUY et SELL ont leur propre profit sur la même paire, (par exemple, siBUY a fait un profit, il fermera leurs positions, SELL ne fermera pas jusqu'à ce qu'il ait fait un profit)
J'ai vérifié cette fonction dans le testeur - j'ai défini un profit de 300, une perte de 10000. L'ouverture a été effectuée en utilisant l'indicateur (LeMan_BrainTrend1Sig) sur EURUSD H1 avec un solde de 100, un effet de levier de 100 avec un lot de 0,01.
Fonction Profit Perte en devise - BUY et SELL ont leur propre profit sur une paire, (par exemple, siBUY a fait un profit, il fermera leurs positions, SELL ne fermera pas, jusqu'à ce qu'ils atteignent leur propre profit)
Une fonction supplémentaire a été ajoutée. J'ai juste besoin de le vérifier en temps réel dans le terminal.
Cette version est comme ceci - Dans le Testeur