Instruction pour fermer une position en cloture de bougie si et seulement si…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #214334 quote
    Jabiru
    Participant
    Average

    Bonjour,

    Je souhaite connaitre l’instruction pour fermer une position uniquement si les deux conditions suivantes sont respectées: 1) CLOTURE DE BOUGIE, 2) POSITION BENEFICIAIRE.

    Merci de votre aide!

    #214442 quote
    Nicolas
    Keymaster
    Master

    Pour le 1), puisque le code est lu une seule fois à la clôture de bougie, il n’y a rien à faire de particulier.

    Pour le 2), on peut tester la performance en % du prix avec POSITIONPERF , soit le code:

    if onmarket and positionperf>0 then 
     sell at market //ferme position achat 
     exitshort at market //ferme position vente
    endif
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Instruction pour fermer une position en cloture de bougie si et seulement si…


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Jabiru @jabiru Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
2 years, 10 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 05/09/2023
Status: Active
Attachments: No files
Logo Logo
Loading...