BACKTEST HEIKEN ASHI

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

    Bonjour à tous , j’aurais besoin de votre aide pour une stratégie simple mais efficace :

    Il me faut :

    -C1:  3 corps Heiken Ashi rouge puis un heiken ashi vert

    -C2 : Achat à l’ouverture du prochain cours (barchart)

    -C3 : Vente dès que la cloture du jour (barchart) est plus basse que le corps de l’Heiken ashi

    Je joints une image pour que cela soit plus parlant.

    Merci

    Oraclus

    HA.jpg HA.jpg
    #139330 quote
    Sanglier
    Participant
    Junior

    désolé je peut pas t’aider niveau programmation ^^’

    j’espère que tu trouveras ça a l’air interessant de backtester ça

    #167800 quote
    Jeremy8
    Participant
    Junior

    Bonjour Oraclus

     

    Tu as trouvé quelqu’un pour te backtester ta stratégie?

    #173450 quote
    fred631
    Participant
    Junior

    Salut, as- tu réussi à faire ton backtest ?

    #173462 quote
    JC_Bywan
    Moderator
    Master

    Vite fait, quelque chose comme ça, à vérifier et tester:

    HAclose=totalprice
    if barindex > 0 then
     HAopen=(HAopen[1]+HAclose[1])/2
    else
     HAopen=totalprice
    endif
    //HAlow= min(low,min(HAclose,HAopen))
    //HAhigh= max(high,max(HAclose,HAopen))
    
    troisrouge=summation[3](HAclose<HAopen)=3
    setupachat=troisrouge[1] and HAclose>HAopen
    setupsortieachat=close<min(HAopen,HAclose)
    
    // Conditions pour ouvrir une position acheteuse
    IF NOT LongOnMarket AND setupachat THEN
     BUY 1 CONTRACTS AT MARKET
    ENDIF
    
    // Conditions pour fermer une position acheteuse
    If LongOnMarket AND setupsortieachat THEN
     SELL AT MARKET
    ENDIF
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

BACKTEST HEIKEN ASHI


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
oraclus @oraclus Participant
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by JC_Bywan
4 years, 8 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 08/11/2017
Status: Active
Attachments: 1 files
Logo Logo
Loading...