Questions des débutants MQL5 MT5 MetaTrader 5 - page 1337
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
Bonjour, pourriez-vous me dire comment passer une structure à une fonction, afin que les modifications apportées aux éléments de la structure dans la fonction, soient stockées dans la structure créée globalement ?
Passer la structure par référence. Exemple :
Passer la structure par référence. Exemple :
Merci ! D'où vient cet exemple ? Je cherchais justement quelque chose à propos de ma question dans l'aide et je ne l'ai pas trouvé(((.
Merci ! D'où vient cet exemple ? Je cherchais justement quelque chose à propos de ma question dans l'aide et je ne l'ai pas trouvé(((.
Mise en œuvre réelle + fonction inventée, par exemple.
Mise en œuvre réelle + fonction inventée par exemple.
OK, merci encore !
Mise en œuvre réelle + fonction inventée par exemple.
Mauvais exemple. Une structure, ainsi que toute variable déclarée globalement, est accessible dans n'importe quelle partie du programme.
Cela fonctionnera aussi de cette façon.
Il en va différemment si une variable de structure est déclarée localement.
Comment augmenter/diminuer la période de temps avec mt5 ?
Forum sur le trading, les systèmes de trading automatisés et les tests de stratégie
Indicateurs : changer de période avec les touches de raccourci
SanAlex, 2020.08.07 11:59
je pense que ce serait la même chose pour mt4 et mt5
Mauvais exemple. Une structure, ainsi que toute variable déclarée globalement, est accessible dans n'importe quelle partie du programme.
Cela fonctionnera également.
C'est différent si la variable de structure est déclarée localement.
Merci ! !!