Bougie heinkin ashi +

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #215911 quote
    FXtonio
    Participant
    New

    Bonjour,

    ci dessous un code heikin ashi, j’aimerais en faire un algo de la façon suivante,

    si 3 bougies HA verte cloture, prendre un achat a la prochaine (sortir à la 1ere HA rouge)

    si 3 bougies HA rouge cloture, prendre une vente a la prochaine (sortir à la 1ere Ha verte)

    je rajouterais ensuite les filtres de tendances et volatilité et posterais le tout une fois fini.

    Merci pour votre aide 🙂 🙂

    /Bougies Heikin Ashi
    // Ozmizrak 19/11/2020

    HeikinAshiClose = (Open+High+Low+Close)/4

    IF BarIndex > 1 * 2 Then //* 2 Par Sécurité

    HeikinAshiOpen = (HeikinAshiOpen[1] + HeikinAshiClose[1])/2

    //HeikinAshiHigh = valeur la plus haute des trois : H, OHA, CHA
    If High > HeikinAshiOpen Then
    HeikinAshiHigh = High
    Else
    HeikinAshiHigh = HeikinAshiOpen
    EndIf
    if HeikinAshiClose > HeikinAshiHigh Then
    HeikinAshiHigh = HeikinAshiClose
    EndIf

    //HeikinAshiLow = valeur la plus basse des trois : B, OHA, CHA
    If Low < HeikinAshiOpen Then
    HeikinAshiLow = Low
    Else
    HeikinAshiLow = HeikinAshiOpen
    EndIf
    if HeikinAshiClose < HeikinAshiLow Then
    HeikinAshiLow = HeikinAshiClose
    EndIf
    Else
    HeikinAshiOpen = Open
    HeikinAshiHigh = High
    HeikinAshiLow = Low
    EndIf

    If HeikinAshiClose > HeikinAshiOpen Then
    DrawCandle (HeikinAshiOpen[0], HeikinAshiHigh[0], HeikinAshiLow[0], HeikinAshiClose[0]) COLOURED (0,255,255)
    ElsIf HeikinAshiClose < HeikinAshiOpen Then
    DrawCandle (HeikinAshiOpen[0], HeikinAshiHigh[0], HeikinAshiLow[0], HeikinAshiClose[0]) COLOURED (255,85,85)
    Else
    DrawCandle (HeikinAshiOpen[0], HeikinAshiHigh[0], HeikinAshiLow[0], HeikinAshiClose[0]) COLOURED (0, 0, 0)
    EndIf

    //Bougies Heikin Ashi
    // Ozmizrak 19/11/2020

    HeikinAshiClose = (Open+High+Low+Close)/4

    IF BarIndex > 1 * 2 Then //* 2 Par Sécurité

    HeikinAshiOpen = (HeikinAshiOpen[1] + HeikinAshiClose[1])/2

    //HeikinAshiHigh = valeur la plus haute des trois : H, OHA, CHA
    If High > HeikinAshiOpen Then
    HeikinAshiHigh = High
    Else
    HeikinAshiHigh = HeikinAshiOpen
    EndIf
    if HeikinAshiClose > HeikinAshiHigh Then
    HeikinAshiHigh = HeikinAshiClose
    EndIf

    //HeikinAshiLow = valeur la plus basse des trois : B, OHA, CHA
    If Low < HeikinAshiOpen Then
    HeikinAshiLow = Low
    Else
    HeikinAshiLow = HeikinAshiOpen
    EndIf
    if HeikinAshiClose < HeikinAshiLow Then
    HeikinAshiLow = HeikinAshiClose
    EndIf
    Else
    HeikinAshiOpen = Open
    HeikinAshiHigh = High
    HeikinAshiLow = Low
    EndIf

    If HeikinAshiClose > HeikinAshiOpen Then
    DrawCandle (HeikinAshiOpen[0], HeikinAshiHigh[0], HeikinAshiLow[0], HeikinAshiClose[0]) COLOURED (0,255,255)
    ElsIf HeikinAshiClose < HeikinAshiOpen Then
    DrawCandle (HeikinAshiOpen[0], HeikinAshiHigh[0], HeikinAshiLow[0], HeikinAshiClose[0]) COLOURED (255,85,85)
    Else
    DrawCandle (HeikinAshiOpen[0], HeikinAshiHigh[0], HeikinAshiLow[0], HeikinAshiClose[0]) COLOURED (0, 0, 0)
    EndIf

    Return

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Bougie heinkin ashi +


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
FXtonio @fxtonio Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 06/09/2023
Status: Active
Attachments: No files
Logo Logo
Loading...