stratégie MTF bougie 15 minutes et prise de positions

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #177230 quote
    martinsmartins
    Participant
    Junior

    bonsoir à vous ,

    malgré mes recherche sur le forum je n’arrive pas à élaborer ma stratégie simple de mtf, à savoir un timeframe de 30 mn et un timeframe d’1 mn.

    Prise de position à l’achat lorsque une bougie d’1 mn dépasse de 2pips la bougie des 15 mn précédentes,  sortie du trade   à la bougie 15mn en clôture.

     

    pour le moment je lutte avec ce bout de programme qui est incomplet

    //-------------------------------------------------------------------------
    // Code principal : MonSystème(38)
    //-------------------------------------------------------------------------
    // Définition des paramètres du code
    DEFPARAM CumulateOrders = False // Cumul des positions désactivé
    // Annule tous les ordres en attente et ferme toutes les positions à 0:00, puis empêche toute création d'ordre avant l'heure "FLATBEFORE".
    DEFPARAM FLATBEFORE = 090000
    // Annule tous les ordres en attente et ferme toutes les positions à l'heure "FLATAFTER"
    DEFPARAM FLATAFTER = 190000
    
    // Conditions pour ouvrir une position acheteuse
    // Time frame 15mn
    Timeframe (10 minutes )
    C1 = high[1]
    C2 = low[1]
    indicator1 = Average[20](close)
    C3 = (close > indicator1)
    indicator2 = RSI[14](close)
    C4 = (indicator2 > 50)
    C10 = (close < indicator1)
    C11 = (indicator2 < 50)
    //Time frame 1mn
    Timeframe (1 minutes )
    // Conditions pour ouvrir une position acheteuse
    
    C5 = high
    C6 = low
    
    IF C3 AND C4 AND C5 > C1 AND C6 > C2 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    // Conditions pour fermer une position acheteuse
    ?????????
     SELL AT MARKET
    ENDIF
    
    // Conditions pour ouvrir une position en vente à découvert
    IF C10 AND C11 AND C5 < C1 AND C6 < C2 THEN
    
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    
    // Conditions pour fermer une position en vente à découvert
    ????????
    EXITSHORT AT MARKET
    ENDIF
    

     

    merci pour vos retours  et bonne soirée

Viewing 1 post (of 1 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

stratégie MTF bougie 15 minutes et prise de positions


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
martins @martins Participant
Summary

This topic contains 0 voices and has 0 replies.

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