stratégie henkin ashi

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

    Bonjour à tous,

    j’ai tenter de coder cette stratégie de scalping m1-m5 mais je n’arrive pas a la corriger, est ce que quelqu’un peut me dire quelles sont mes erreurs ?

    Merci d’avance pour vos réponses.

    // Définition de la moyenne mobile exponentielle 50
    EMA50 = Average[Exponential](Close, 50)

    // Détection d’une bougie Heikin-Ashi verte
    GreenHA = HA(Close, Open, High, Low) > HA(Close[1], Open[1], High[1], Low[1])

    // Détection d’une bougie Heikin-Ashi rouge
    RedHA = HA(Close, Open, High, Low) < HA(Close[1], Open[1], High[1], Low[1])

    // Pour une position acheteuse
    if (Close > EMA50 and GreenHA) then
    // Ouvrir une position acheteuse
    Buy 1 lot at market

    // Définition du stop loss au dernier plus bas
    StopLoss = LowestLow(1)

    // Initialisation du breakeven à 5 pips de gain
    Breakeven = EntryPrice + 5 * Point

    // Suivre le breakeven tous les 10 pips de gain
    BreakevenTrailing(10)

    // Pour une position vendeuse
    else if (Close < EMA50 and RedHA) then
    // Ouvrir une position vendeuse
    Sell 1 lot at market

    // Définition du stop loss au dernier plus haut
    StopLoss = HighestHigh(1)

    // Initialisation du breakeven à 5 pips de gain
    Breakeven = EntryPrice – 5 * Point

    // Suivre le breakeven tous les 10 pips de gain
    BreakevenTrailing(10)
    endif

    #211300 quote
    Nicolas
    Keymaster
    Master

    Ce code n’est pas du code compatible avec ProRealTime, j’ai du mal à reconnaître le langage, peux-tu nous en dire un peu plus ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

stratégie henkin ashi


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
FXtonio @fxtonio Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
2 years, 12 months ago.

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