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
Moi, d'un autre côté, je l'ai sorti d'un tas de code :
Une question : pourquoi des glissements ? Et 10 (nombre de répétitions) devrait être déplacé vers les variables globales.
Et celui-là ?
Il y a différents glissements. Ceux qui sont dans la boucle sont... Quand vous avez une fille assise là, vous devez le répéter dix fois et attendre qu'elle mette son rouge à lèvres. Quand une fille est assise, elle doit le répéter dix fois et attendre qu'elle se maquille. Et parfois le serveur ralentit. Tout ça pour le "vrai DC".
Se glisse après PlaySound, afin que les autres sons ne l'emportent pas, PlaySound interrompt le son du précédent.
Lesvariables globales sont astucieusement pondérées par le terminal. Et ce n'est pas nécessaire, l'algorithme externe devrait fonctionner normalement avec les ordres qui ne sont pas fermés.
Les variables globales sont astucieusement pondérées par le terminal.
Oh, j'oubliais -- Rafraîchir les taux au début de la boucle après la capture du contexte, alors vous n'aurez pas besoin de manipuler Ask et Bid. Et d'autres valeurs aussi.
RefreshRates n'est pas là pour autre chose. Voici comment j'ai essayé de traiter les situations où OrderClose renvoie false, mais où l'ordre est effectivement clôturé. Après la pause et les RefreshRates vient OrderSelect(). Je ne sais pas comment elle est là, mais elle semble fonctionner.
Ask et Bid sont une vraie merveille, ils ont parfois besoin d'être normalisés :)
---
Une dizaine de répétitions et quoi pour les variables globales, je ne comprends pas. Ils sont au nombre de dix, avec une marge suffisante. Est-il externe ?
Et si l'ordre est clôturé dans une minute ? Vous ne pouvez pas battre ça avec un code. Il s'agit d'un échec de communication du terminal.
gip:
Je ne comprends pas les dix répétitions et le rôle des variables globales.
Elle réduit simplement le nombre d'échecs par un facteur de deux. Bien sûr, toutes les situations ne sont pas traitées exactement dans ce bloc. Si un ordre est fermé pendant une minute, le programme doit attendre tout ce temps. Ces attentes, même si elles sont coupées, retardent la boucle et tout se passe comme prévu à la fin.
---
> Pour éviter les chiffres magiques et les réglages faciles.
Ajuster ce dix ? Oui c'est avec une telle marge, qu'il est plus facile de changer le DC :) Et pour le bien de mégalot, si cela a dû, et peut être dans le code à corriger.
Il y a un conseiller. Nous devons le faire paraître décent.
Ce sont les fonctions qui en découlent. Il y a un moyen de le rendre décentJ'ai ajouté deux fonctions pour simplifier le travail
Le premier vérifie le type d'ordre et le second recherche le dernier ordre ouvert.
Une partie des fonctions retravaillées de l'auteur