Prise de position tant que > sma 200

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

    Bonjour messieurs,

     

    Je vous sollicite aujourd’hui car j’aimerai coder comme suit:

    Achat only tous les lundis lorsque close > sma[50](close).

    Une sortie de toutes les positions se fera sur close < sma[50](close).

    Je vous remercie pour votre aide et vous souhaites de bonnes fêtes de fin d’année.

    Tony

    Tony

    M

    #241825 quote
    Iván González
    Moderator
    Master

    Bonjour. Cela pourrait commencer comme ça. Vous pouvez jouer avec opendayofweek pour voir le jour d'entrée :

    if opendayofweek=1 and close>average[50,1](close) then
    buy 1 contract at market
    endif
    
    if close<average[50,1](close) then
    sell at market
    endif
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Prise de position tant que > sma 200


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
DonTony @dontony Participant
Summary

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

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