![MQL5 - Langage des stratégies de trading intégré au terminal client MetaTrader 5](https://c.mql5.com/i/registerlandings/logo-2.png)
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
start() :
OK est juste #define OK 0
mon fichier journal :
2013.11.15 14:35:30 Test réduit 0 : USDJPY M15 Debug Init() begin :
2013.11.15 14:35:30 Test réduit 0 : USDJPY M15 DebugMyInit begin :
2013.11.15 14:35:30 Test réduit 0 : USDJPY M15 Debug Init() return :
2013.11.15 14:35:30 Test réduit 0 : USDJPY M15 DebugStart : begin : InitialGapFound : True
2013.11.15 14:35:30 Test reduced 0 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
15.11.2013 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:30 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:31 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
2013.11.15 14:35:32 Test réduit 1180990 : USDJPY M15 DebugStart : début : InitialGapFound : True
2013.11.15 14:35:32 Test réduit 1180990 : USDJPY M15 DebugStart : InitialHistoryGapClosed :
2013.11.15 14:35:32 Test réduit 1180990 : USDJPY M15 DebugMyInit begin :
2013.11.15 14:35:32 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 1 nach CreateHistory()
2013.11.15 14:35:33 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 2 nach CreateHistory()
2013.11.15 14:35:34 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 3 nach CreateHistory()
2013.11.15 14:35:35 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 4 nach CreateHistory()
2013.11.15 14:35:35 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 5 nach CreateHistory()
2013.11.15 14:35:36 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 6 nach CreateHistory()
2013.11.15 14:35:37 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 7 nach CreateHistory()
2013.11.15 14:35:37 Test réduit 1180990 : USDJPY M15 DebugMyInit retour InitialMyInitCalls : 0 IndexCount : 8
2013.11.15 14:35:37 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
Le fichier journal de MT4 ne montre rien. Print() ne fonctionne pas dans un tel cas, lorsque MT4 se bloque, car le fichier journal de MT4 n'est pas nettoyé. C'est pourquoi j'utilise ma propre fonction log.
voir aussi
WHRoeder2013.11.14 19:27#
Fichier journal MT4 :
13:38:00 GA_Pivot Points DE30.Z,M15 : initialisé
13:38:00 $CH_Stochastic Copyright Dec2009 DE30.Z,M15 : initialisé
14:35:05 GA_Daily Range Lines V1.3 _US30,M15 : désinitialisé
14:35:05 GA_Daily Range Lines V1.3 _US30,M15 : désinitialisation raison 1
14:35:05 GA_MTF MAs 1 V1.4 _US30,M15 : raison de désinitialisation 1
14:35:05 GA_MTF MAs 2 V1.4 _US30,M15 : raison uninit 1
14:35:05 GA_Pivot Points _US30,M15 : désinitialisé
14:35:05 GA_Pivot Points _US30,M15 : raison de désinitialisation 1
14:35:05 $CH_Stochastic Copyright Dec2009 _US30,M15 : désinitialisé
14:35:05 $CH_Stochastic Copyright Dec2009 _US30,M15 : uninitialisé pour raison 1
14:35:05 GA_Daily Range Lines V1.3 _US30,M15 : supprimé
14:35:05 GA_MTF MAs 1 V1.4 _US30,M15 : supprimé
14:35:05 GA_MTF MAs 2 V1.4 _US30,M15 : supprimé
14:35:05 GA_Pivot Points _US30,M15 : supprimé
14:35:05 $CH_Stochastic Copyright Dec2009 _US30,M15 : supprimé
14:35:05 GA_MTF MAs 1 V1.4 _US30,M15 : raison de désinit 1
14:35:05 GA_MTF MAs 2 V1.4 _US30,M15 : raison de désinit 1
14:35:05 GA_Pivot Points _US30,M15 : désinitialisé
14:35:05 GA_Pivot Points _US30,M15 : raison de désinitialisation 1
14:35:05 $CH_Stochastic Copyright Dec2009 _US30,M15 : désinitialisé
14:35:05 $CH_Stochastic Copyright Dec2009 _US30,M15 : uninit reason 1
14:35:05 GA_MTF MAs 1 V1.4 _US30,M15 : supprimé
14:35:05 GA_MTF MAs 2 V1.4 _US30,M15 : supprimé
14:35:05 GA_Pivot Points _US30,M15 : supprimé
14:35:05 $CH_Stochastic Copyright Dec2009 _US30,M15 : supprimé
14:35:05 GA_MTF MAs 1 V1.4 _EUR50,Daily : raison de désinit 1
14:35:05 GA_MTF MAs 2 V1.4 _EUR50,Daily : motif de désinitialisation 1
14:35:05 GA_Pivot Points _EUR50,Daily : désinitialisé
14:35:05 GA_Pivot Points _EUR50,Daily : raison de désinitialisation 1
14:35:05 $CH_Stochastic Copyright Dec2009 _EUR50,Daily : désinitialisé
14:35:05 $CH_Stochastic Copyright Dec2009 _EUR50,Daily : uninit reason 1
14:35:05 GA_MTF MAs 1 V1.4 _EUR50,Daily : supprimé
14:35:05 GA_MTF MAs 2 V1.4 _EUR50,Daily : supprimé
14:35:05 GA_Pivot Points _EUR50,Daily : supprimé
14:35:05 $CH_Stochastic Copyright Dec2009 _EUR50,Quotidien : supprimé
14:35:05 GA_MTF MAs 1 V1.4 _DE30,M15 : raison de désinit 1
14:35:05 GA_MTF MAs 2 V1.4 _DE30,M15 : motif de désinit 1
14:35:05 GA_Pivot Points _DE30,M15 : désinitialisé
14:35:05 GA_Pivot Points _DE30,M15 : raison de désinitialisation 1
14:35:05 $CH_Stochastic Copyright Dec2009 _DE30,M15 : désinitialisé
14:35:05 $CH_Stochastic Copyright Dec2009 _DE30,M15 : uninit reason 1
14:35:05 GA_MTF MAs 1 V1.4 _DE30,M15 : supprimé
14:35:05 GA_MTF MAs 2 V1.4 _DE30,M15 : supprimé
14:35:05 GA_Pivot Points _DE30,M15 : supprimé
14:35:05 $CH_Stochastic Copyright Dec2009 _DE30,M15 : supprimé
14:35:05 GA_MTF MAs 1 V1.4 DE30.Z,M15 : raison de désinit 1
14:35:05 GA_MTF MAs 2 V1.4 DE30.Z,M15 : raison de désinit 1
14:35:05 GA_Pivot Points DE30.Z,M15 : désinitialisé
14:35:05 GA_Pivot Points DE30.Z,M15 : raison de désinitialisation 1
14:35:05 $CH_Stochastic Copyright Dec2009 DE30.Z,M15 : désinitialisé
14:35:05 $CH_Stochastic Copyright Dec2009 DE30.Z,M15 : uninit reason 1
14:35:05 GA_MTF MAs 1 V1.4 DE30.Z,M15 : supprimé
14:35:05 GA_MTF MAs 2 V1.4 DE30.Z,M15 : supprimé
14:35:05 GA_Pivot Points DE30.Z,M15 : supprimé
14:35:05 $CH_Stochastic Copyright Dec2009 DE30.Z,M15 : supprimé
start() :
OK est juste #define OK 0
OK![](https://c.mql5.com/mql4/forum/2013/11/yes_5.gif)
voir aussi
WHRoeder2013.11.14 19:27#
J'exécute le programme en tant qu'indicateur.
Pour l'arrêter, je dois tuer le processus du terminal MT4.
J'ai inséré comment() comme vous l'avez suggéré.
Le commentaire n'apparaît pas sur le graphique.
Je sais, je l'utilise juste pour vérifier combien de temps s'est écoulé avant de procéder à une nouvelle vérification.
Dans ce cas, je pourrais utiliser n'importe quelle fonction temporelle, du moment que j'utilise toujours la même.
Ce n'est pas le problème.
Est-il possible que je détruise d'une manière ou d'une autre la pile d'appels de la fonction start() ?
J'exécute le programme en tant qu'indicateur.
Est-ce que vous ralentissez le fil de l'interface ?
Que voulez-vous dire par là ?
Qu'est-ce que vous entendez par là ?
"La fonction ne peut pas être appelée depuis des indicateurs personnalisés car ils sont exécutés dans le thread de l'interface et ne peuvent pas le ralentir."
Non, je n'utilise pas sleep() ou messagebox(), mais je fais beaucoup de travail dans la fonction MyInit(), qui prend environ 5 secondes.
Vous pouvez le constater dans le fichier journal :
2013.11.15 14:35:32 Test réduit 1180990 : USDJPY M15 DebugStart : InitialHistoryGapClosed
2013.11.15 14:35:32 Test réduit 1180990 : USDJPY M15 DebugMyInit begin : <---------- travail commence
2013.11.15 14:35:32 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 1 nach CreateHistory()
2013.11.15 14:35:33 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 2 nach CreateHistory()
2013.11.15 14:35:34 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 3 nach CreateHistory()
2013.11.15 14:35:35 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 4 nach CreateHistory()
2013.11.15 14:35:35 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 5 nach CreateHistory()
2013.11.15 14:35:36 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 6 nach CreateHistory()
2013.11.15 14:35:37 Test réduit 1180990 : USDJPY M15 DebugMyInit InitialMyInitCalls : 0 IndexCount : 7 nach CreateHistory()
2013.11.15 14:35:37 Test réduit 1180990 : USDJPY M15 DebugMyInit retour InitialMyInitCalls : 0 IndexCount : 8 <---------- fin du travail
2013.11.15 14:35:37 Test réduit 1180990 : USDJPY M15 DebugStart : dernier retour dans InitialGapFound
Mais pourquoi cela fait-il que MT4 passe en boucle après cela ?