coder un algo avec 2 itf

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #253337 quote
    geroniman
    Participant
    Average

    J’aimerai automatiser  un algo en m2/m5/m15. Ivan, est ce que tu pourrais  le programmer pour la communauté? L’idée est de l’ameliorer avec le test de tous ici. avec les 2 types des signaux: le Tiger et le James bond 007? avec Tp/Sl ouvert en fonction de l’UT.

    Buy >plus haut bougie blanche/bleu et sell < plus bas des bougies jaune/violet.

    JAMES-BOND-4MAI-1.itf TIGER-COULEUR-1.itf
    #253343 quote
    geroniman
    Participant
    Average

    cet algo devra fonctionner entre 8h et 22h max. filtre avec la ema9 : buy only si le cours >ema9 et sell only si cours <ema9

    #253345 quote
    geroniman
    Participant
    Average

    exemples . il faut eliminer la tranche horaire 12h/14h. filtrage EMA5 sur NQ

    GOLD-5NOV-M5-2.png GOLD-5NOV-M5-2.png GOLD-5NOV-M5-3.png GOLD-5NOV-M5-3.png NQ-5NOV-M5-SIGNAUX-BUY-BOUGIE-BLANCHE.png NQ-5NOV-M5-SIGNAUX-BUY-BOUGIE-BLANCHE.png
    #253362 quote
    Iván González
    Moderator
    Master

    Voici un code pour vous permettre de commencer à travailler. À partir de là, c’est à vous de jouer 🙂

    defparam flatbefore=080000
    defparam flatafter=220000
    // --- Inputs
    emaLen = 9
    tpPts  = 20  
    slPts  = 20
    LunchTime = opentime >= 120000 AND opentime < 140000
    // =======================
    // --- EMA
    // =======================
    ema = average[emaLen,1](close)
    // =======================
    // D calculation
    // =======================
    IF Close > ( MAX(MAX(high, high[1]), MAX(high[1], high[1]) ))[1] THEN
    D = MIN(MIN(low, low[1]), MIN(low[1], low[1]))
    ELSIF Close < ( MIN(MIN(low, low[1]), MIN(low[1], low[1])) )[1] THEN
    D = MAX(MAX(high, high[1]), MAX(high[1], high[1]))
    ELSE
    D = D[1]
    ENDIF
    // =======================
    // Setup Long
    // =======================
    IF NOT LongOnMarket AND not LunchTime AND close > ema AND close CROSSES OVER D THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    // =======================
    // Setup Short
    // =======================
    IF NOT ShortOnMarket AND not LunchTime AND close < ema AND close CROSSES UNDER D THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    // =======================
    // Set Target and Stop Loss
    // =======================
    SET TARGET pPROFIT tpPts
    SET STOP pLOSS slPts
    // =======================
    // Plot on Price
    // =======================
    GraphOnPrice D as "Signal" coloured("fuchsia")
    GraphOnPrice ema AS "EMA" coloured("blue")
    robertogozzi thanked this post
    #253378 quote
    geroniman
    Participant
    Average

    Merci bien Ivan, voici des signaux aujourdhui sur nq et Tesla.

    Iván González thanked this post
    TSLA-6NOV-H1.png TSLA-6NOV-H1.png mnq-6nov-H1-2.png mnq-6nov-H1-2.png mnq-6nov-m5-2.png mnq-6nov-m5-2.png
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

coder un algo avec 2 itf


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
geroniman @geroniman Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by geroniman
3 months, 3 weeks ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 11/05/2025
Status: Active
Attachments: 8 files
Logo Logo
Loading...