Fermer une position dans l’esprit de la fibo

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #221553 quote
    David DagetDavid Daget
    Participant
    Junior

    Mon idée serait de fermer mes positions à 61.8% du plus haut ou plus bas journalier

    Quelqu’un aurait t’il la bonté de m’écrire 2 petits bouts de code viable ?

     

    Merci à vous tous

    #221597 quote
    NicolasNicolas
    Keymaster
    Legend

    En théorie, on devrait pouvoir te fournir un code viable 🙂 Je te laisse tester toutefois !

    irange = dhigh(0)-dlow(0)
    up618 = dlow(0)+irange*0.618
    dn618 = dhigh(0)-irange*0.618
    
    if longonmarket then 
     set stop price up618
    elsif shortonmarket then
     set stop price dn618
    endif
    David Daget thanked this post
    #221601 quote
    David DagetDavid Daget
    Participant
    Junior

    Merci Nicolas !

Viewing 3 posts - 1 through 3 (of 3 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

Fermer une position dans l’esprit de la fibo


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by David DagetDavid Daget
3 years, 2 months ago.

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