Trailing Stop —

  • This topic has 2 replies, 1 voice, and was last updated 3 years ago by avatargfx.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #152034
    gfx

    Bonjour,

    Je tourne en rond sur la problématique suivante sans trouver l’erreur.

    J’ai un stop à 1 ATR déclenché à 3 ATR.  Voici le code :

    Et je suis surpris par le résultat…

    tradeprice(1) = 13293.50 ce qui est ok.

    cpBEPrice = 1316.50 ce qui est ko

    cpBETrigger = 13282.50 ce qui est ko

    J’ai bien 34 de difference entre cpBETrigger  et cpBEPrice , soit  2 * cpTrailingTrigger

    Je devrais avoir :

    tradeprice(1) = 13293.50

    cpBEPrice = 13310.50 ce qui est ko

    cpBETrigger = 13344.50

    Suis je devenus si mauvais en math 🙂 ?

    Par avance merci.

     

     

     

     

     

     

     

    #152037
    gfx

    Assez intéressant …

    ajouter 6 reviens à retrancher 10.3

    #152039
    gfx

    versio

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login