Non-Execution ordres sur CFD Actions IG

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #157853 quote
    MarcCh
    Participant
    Average

    Oui, mais alors il va falloir que je l’initialise pour la tester au démarrage et je vais retomber dans mon problème du Once ??

    #157854 quote
    Nicolas
    Keymaster
    Master

    Il est inutile d’initialiser les variables, elles valent toutes 0 tant qu’on affecte aucune autre valeur (sauf les variables type array qui valent -1, mais ça n’est pas ton cas ici).

    #157856 quote
    MarcCh
    Participant
    Average

    Top, j’avoue que je ne savais pas (je sais qu’avec MT4 on pouvait avoir des surprises…). Je vais essayer alors un truc plus simple. Merci Nicolas.

    Je te tiens au courant

    #157865 quote
    MarcCh
    Participant
    Average

    Alors en simplifiant le code de la manière suivante (la variable NumPos n’est pas initialisée avant), à nouveau aucune position n’est ouverte au démarrage !

    IF ((ImmediateOpening AND NumPos = 0) OR (NOT ImmediateOpening AND Date = DateOpening AND Time = TimeOpening)) THEN

    C’est à n’y rien comprendre…

Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.

Non-Execution ordres sur CFD Actions IG


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
MarcCh @marcch Participant
Summary

This topic contains 18 replies,
has 2 voices, and was last updated by MarcCh
5 years, 1 month ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 01/05/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...