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
    JabiruJabiru
    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
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
3 years, 5 months ago.

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