Prise de position tant que > sma 200

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #241750 quote
    DonTonyDonTony
    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álezIván González
    Moderator
    Legend

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

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álezIván González
1 year, 10 months ago.

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