strategie gap automatique

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #203097 quote
    proreal1717
    Participant
    New

    Bonjour,

    je souhaite créer un programme automatique de prise de positions sur du 1 min

    avec un TP = +1 points  et un SL = 60 points

    de 16h a 21h30

    et l’ouverture de l’ordre doit se faire  a la cloture de la bougie qui ouvre en gap

    ci dessous le programme que j’ai fait mais ça fonctionne pas comme je veux

    est il possible d’avoir un peu d’aide

    merci

    ////////////////////////////////////////////////////////////////////////////////////

    //TAILLE DES POSITIONS
    n = 1

    // HORAIRES
    startTime = 160000
    endTime = 213000

    // STOP LOSS & TAKE PROFIT (%)
    SL = 60
    TP = 1

    // StartTime
    if time = startTime THEN

    endif

    // LONGS & SHORTS :

    if time >= startTime and time <= endTime then

    //long
    IF NOT LongOnMarket THEN

    IF not (close>open) and (close>open)[1] and open-close[1]>1*pointsize then

    BUY n CONTRACTS AT MARKET
    ENDIF

    //short

    IF not ShortOnMarket THEN
    if not (close<open) and (close<open)[1] and open-close[1]<-1*pointsize then

     

    SELLSHORT n CONTRACTS AT MARKET

    ENDIF

    endif

    // Stop Loss & Take Profit
    set stop %loss SL
    set target %profit TP

    endif
    endif

     

    /////////////////////////////////////////////////////////////////////////

    #203168 quote
    proreal1717
    Participant
    New

    du coup j’ai  reussi a faire   ce code mais

     

    c’est pas valable

     

    merci et bonne journée

    #203305 quote
    Nicolas
    Keymaster
    Master

    En effet, pour combler un trade perdant, il faut 60 trades gagnants (sans le spread). Bon courage.

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

strategie gap automatique


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 10/26/2022
Status: Active
Attachments: No files
Logo Logo
Loading...