Stratégie de scalping SCALPER DAX 40 M1

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #215514 quote
    FXtonio
    Participant
    New

    Bonjour,

    Ci-dessous un algo pour le DAX 40 en 1 minutes

     

    //-------------------------------------------------------------------------
    // Code principal : DAX 40 M1 
    //-------------------------------------------------------------------------
    // Définition des paramètres du code
    DEFPARAM CumulateOrders = False // Cumul des positions désactivé
    
    ONCE c = 14.0
    ONCE l = 3.0
    timeEnterBefore = time >= 083000
    timeEnterAfter = time <= 170000
    // Conditions pour ouvrir une position acheteuse
    indicator1 = ExponentialAverage[c](close)
    indicator2 = Average[l](close)
    c1 = (indicator1 CROSSES OVER indicator2)
    indicator3 = RSI[7](close)
    c2 = (indicator3 > 50)
    indicator4 = MACD[5,8,9](close)
    c3 = (indicator4 > 0)
    
    IF c1 AND c2 AND c3 THEN
    BUY 2 SHARES AT MARKET
    ENDIF
    
    // Conditions pour fermer une position acheteuse
    indicator5 = Average[l](close)-3*std[l](close)
    c4 = (close CROSSES UNDER indicator5)
    
    IF c4 THEN
    SELL AT MARKET
    ENDIF
    
    // Conditions pour ouvrir une position en vente à découvert
    indicator6 = ExponentialAverage[c](close)
    indicator7 = Average[l](close)
    c5 = (indicator6 CROSSES UNDER indicator7)
    indicator8 = RSI[7](close)
    c6 = (indicator8 < 50)
    indicator9 = MACD[5,8,9](close)
    c7 = (indicator9 < 0)
    
    IF c5 AND c6 AND c7 THEN
    SELLSHORT 2 SHARES AT MARKET
    ENDIF
    
    // Conditions pour fermer une position en vente à découvert
    indicator10 = Average[l](close)+3*std[l](close)
    c8 = (close CROSSES OVER indicator10)
    
    IF c8 THEN
    EXITSHORT AT MARKET
    ENDIF
    #215540 quote
    Nicolas
    Keymaster
    Master

    Merci pour le partage, quelle est la taille du spread utilisé pour les tests stp ?

    #215568 quote
    FXtonio
    Participant
    New

    <p style=”text-align: right;”>J’ai mis un spread a 2</p>

    #215572 quote
    FXtonio
    Participant
    New

    Bonjour, j’ai mis un spread à 2

    #215774 quote
    FXtonio
    Participant
    New

    Bonjours,

    cette strat affiche des très bon resultats sur les dax en m1, je l’ai lancé en réel mais elle ne prend aucun trade, est ce que j’ai fait une erreur dans le code?

    Rapport-detaille-ProBacktest-dax40-m1-Allemagne-40-Cash-5E.png Rapport-detaille-ProBacktest-dax40-m1-Allemagne-40-Cash-5E.png
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Stratégie de scalping SCALPER DAX 40 M1


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
FXtonio @fxtonio Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by FXtonio
2 years, 9 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 05/31/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...