strategie gap automatique

Forums ProRealTime forum Français Support ProOrder strategie gap automatique

Viewing 3 posts - 1 through 3 (of 3 total)
  • #203097

    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

    du coup j’ai  reussi a faire   ce code mais

     

    c’est pas valable

     

    merci et bonne journée

     

    #203305

    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)

Create your free account now and post your request to benefit from the help of the community
Register or Login