stop suiveur sur parabolique SAR

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #237896 quote
    Diamant
    Participant
    Junior

    Bonjour,

    l’un d’entre vous peut t’il m’aider à créer un système de trading automatisé . Ce système pourrait ouvrir l’ordre automatiquement en fonction d’une condition prédéfinie (ou directement dés son lancement), par exemple lorsque le SAR émet son signal d’achat ou de vente, et gérer ensuite le stop suiveur de manière automatique en suivant les valeurs du SAR. afin de ne pas avoir à intervenir manuellement toutes les 15 minutes pour ajuster votre stop, vu que je Trade 95% du temps en UT15. Merci

    #237930 quote
    Iván González
    Moderator
    Master

    Vous pouvez utiliser ce code pour commencer. À partir de là, essayez de vous adapter à vos besoins.

    Psar=SAR[0.02,0.02,0.2]
    
    if not onmarket and close crosses over Psar then
    buy 1 contract at market
    set stop price Psar
    endif
    
    if longonmarket then
    set stop price Psar
    endif
    Diamant thanked this post
    #237936 quote
    Diamant
    Participant
    Junior

    Bonjour Ivan,

    Merci,

    Je vais essayer et revient vers vous pour les résultats.

    Est t’il possible d’avoir le même code pour les shorts.

    #237983 quote
    Iván González
    Moderator
    Master
    Psar=SAR[0.02,0.02,0.2]
    
    if not onmarket and close crosses under Psar then
    sellshort 1 contract at market
    set stop price Psar
    endif
    
    if shortonmarket then
    set stop price Psar
    endif
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

stop suiveur sur parabolique SAR


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Diamant @b-castanier Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Iván González
1 year, 5 months ago.

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