End of Day” forex trading strategy for USD/JPY

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #213079 quote
    ZeroCafeine
    Participant
    Senior

    Hi

    I opened this new topic o discuss about this strategy here

    there is the code :

     

    // Graphes H1
    // Paire recommandée : USD/JPY
    Defparam cumulateorders = false
     
    // Levier (max conseillé : 1.5)
    LEVIER = 1
     
    // Choix du réinvestissement des gains ou non
    REINV = 0
    IF REINV = 0 THEN
    n = 1*levier
    ENDIF
     
    IF REINV = 1 THEN
    Capital = 100000 + strategyprofit
    n = (capital / 100000)*levier
    IF n <1 THEN
    n = 1  // Taille minimum : 1
    ENDIF
    ENDIF
     
    // Bougie référence 18 à 22H
    If time = 220000 THEN
    amplitude = highest[4](high) - lowest[4](low)
    amplitude = amplitude*0.4
    ouverture = close
    ENDIF
     
    // ACHAT & VENTE entre 22H et 23H
    IF time >= 220000 and time <= 230000 THEN
    Buy n shares at ouverture - amplitude limit
    Sellshort n shares at ouverture + amplitude limit
    ENDIF
     
    // STOP & OBJECTIF
    SET STOP %LOSS 0.6
    SET TARGET %PROFIT 1.2
     
    // SORTIE
    IF time = 100000 THEN
    SELL AT MARKET
    EXITSHORT AT MARKET
    ENDIF
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

End of Day” forex trading strategy for USD/JPY


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/11/2023
Status: Active
Attachments: No files
Logo Logo
Loading...