Erreurs, bugs, questions - page 1622
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
Voici le script qui appelle le menu "Fichier" - item "Connecter au compte de trading" - cliquez sur le bouton "OK" - ainsi le terminal se connectera au dernier compte de trading qui a été authentifié :
_IsX64 ne peut pas être utilisé de cette manière. Il n'est pertinent qu'au moment de l'exécution.
Avez-vous testé ou optimisé ? Dans ce dernier cas, il y a effectivement des problèmes.
_IsX64 ne peut pas être utilisé de cette manière. Cela ne compte qu'au moment de l'exécution.
Merci pour le conseil. Je l'ai corrigé et l'ai fait en tant que fichier inclus :
Malheureusement, pas toujours. S'il n'y a pas de connexion pendant une longue période, le terminal affiche "Compte désactivé" et vous devez alors vous connecter manuellement. Cela se produit, par exemple, dans un fonds où les serveurs sont généralement éteints la nuit.
Voici la solution : EA vérifie périodiquement l'état de la connexion au serveur commercial(TERMINAL_CONNECTED) et si la valeur renvoyée est "0", il appelle (en utilisant l'API WIn) le menu "File", l'élément "Connect to trade account". Le fichier include dans lequel la fonction de clic de menu est implémentée se trouve ici. Exemple d'une EE :
EA vérifie l'état de la connexion toutes les 12 secondes et efface les commentaires de temps en temps.
Comment connecter un fichier tableau à mon EA ?
D'abord, le script écrit un tableau :
Je connecte le fichier dans l'EA :
#include <mas.dat>
Lors de la compilation, des erreurs :
'??????????????????????????t ????...' - l'identifiant est trop long mas.dat 1 1
'' - symbole inconnu mas.dat 1 3015
Comment connecter un fichier tableau à mon EA ?
D'abord, le script écrit un tableau :
Je connecte le fichier dans l'EA :
Lors de la compilation, des erreurs :
'??????????????????????????t ????...' - l'identifiant est trop long mas.dat 1 1
'' - symbole inconnu mas.dat 1 3015
Voici la solution : EA vérifie périodiquement l'état de la connexion au serveur commercial(TERMINAL_CONNECTED) et si la valeur renvoyée est "0", il appelle (en utilisant l'API WIn) le menu "File", l'élément "Connect to trade account". Le fichier include dans lequel la fonction de clic de menu est implémentée se trouve ici. Exemple d'une EE :
Le conseiller vérifie l'état de la connexion toutes les 12 secondes et efface les commentaires de temps en temps.
Merci beaucoup pour la solution fournie. Tout fonctionne.