Fermer une position dans l’esprit de la fibo

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #221553 quote
    David 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
    Nicolas
    Keymaster
    Master

    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 Daget
    Participant
    Junior

    Merci Nicolas !

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

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 Daget
2 years, 5 months ago.

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