différentes unités de temps dans une même stratégie de trading automatique

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #150280 quote
    chomowsky
    Participant
    New

    Bonjour,

    Est il possible de créer une stratégie de trading automatique en utilisant une condition sur H1 par exemple, une autre sur M15 et une dernière pour la prise de décision sur M1?

    #150281 quote
    Nicolas
    Keymaster
    Master
    #150478 quote
    chomowsky
    Participant
    New
    // Définition des paramètres du code
    DEFPARAM CumulateOrders = False // Cumul des positions désactivé
    
    // Conditions pour ouvrir une position acheteuse en 1 heure
    timeframe(1 hour)
    indicator1 = ExponentialAverage[100](close)
    indicator2 = (DHigh(1) + DLow(1) + DClose(1))/3
    c1 = (close > indicator1)
    c2 = (close > indicator2)
    
    //Conditions pour ouvrir une position acheteuse en 15 minutes
    timeframe(15 minutes)
    indicator3 = ExponentialAverage[100](close)
    c3 = (close > indicator3)
    
    //Conditions pour acheter une position en 1 minute
    timeframe(5 minutes)
    indicator4 = ExponentialAverage[100](close)
    indicator5 = average[2]
    c4 = (indicator5 cROSSES OVER indicator4)
    
    IF c1 AND c2 AND c3 and c4 THEN
    sell 1 CONTRACT AT MARKET
    endif
    
    // Conditions pour fermer une position acheteuse
    
    c6 = (close CROSSES UNDER indicator4)
    
    IF c6 THEN
    buy AT MARKET
    ENDIF
    

    Bonjour

    Mon idée prendre position si prix > MME100 en 1h + prix > MME100 en 15min et prise de position en 5 min si prix >MME100.

    Résultat pas trop mal cf fichier sauf qu’il y a des prises de position que je ne comprends pas. Cf fichier.

    Ou est l’erreur? je ne trouve pas…

    Merci a ceux qui sauront déchiffrer…

    resultat-MME100.png resultat-MME100.png
    #150482 quote
    chomowsky
    Participant
    New

    voici la capture de la position que je ne comprends pas. Désolé

    capture-position-MME100.png capture-position-MME100.png
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

différentes unités de temps dans une même stratégie de trading automatique


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
chomowsky @chomowsky Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by chomowsky
5 years, 3 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 11/12/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...