Gestion indépendant des trade avec 3 SL WIN

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #243641 quote
    teshmi9z
    Participant
    New

    bonjour, voici un code qui fonction pour generer mon BE et mes 2 stop win
    le soucis cest que si je prend + de 1 trade mon fichier ne fonctionne pas correctement
    es possible de mémoriser le trade 1  puis Trade 2  etc…   pour que mon code saplique a chaque trade indépendement ?

    (point reglés sur le BTC 1$)

    DEFPARAM CUMULATEORDERS=false
    
    //// test de validation du BE avec un simple cross de MM
    mm20 = average[20](close)
    mm50 = average[50](close)
    
    
    signalU = mm20 CROSSES OVER mm50
    signalD= mm20 CROSSES UNDER mm50
    
    //BUY
    once trade1=0
    if not onmarket and signalU  then
    buy 1 contract at market
    SET TARGET pPROFIT 2500
    set stop loss 600
    trade1=1
    endif
    If trade1 then 
    BuyTP1=500  // Target pour monter le SL
    BuySL1=1  // Nouveau SL
    BuyBE1=1000   // Seuil BE 1
    BBE1=500      // Trade price + points
    BuyBE2=1500   // Seuil BE 2
    BBE2= 1000   // trade price + Point
    //LONG CONDITION
    if not onmarket then
    be=0
    endif
    if longonmarket and close-tradeprice>=BuyBE1 *pointsize then
    be=1
    endif
    if be=1 then
    sell at tradeprice+BBE1*pointsize stop
    endif
    if not onmarket then
    bee=0
    endif
    if longonmarket and close-tradeprice>=BuyBE2*pointsize then
    bee=1
    endif
    if bee=1 then
    sell at tradeprice+BBE2*pointsize stop
    endif
    
    SL1=high-tradeprice >= BuyTP1 *pointsize
    if longonmarket then
    if SL1 then
    set stop loss BuySL1
    endif
    endif
    endif
    
    #243644 quote
    fifi743
    Participant
    Master

    impossible d’attribuer a plusieurs trade des be ou sl different .
    c’est possible avec metatrader

    #243645 quote
    LucasBest
    Participant
    Average

    Pas simple comme ça devrait l’être, mais faisable je pense… (amha)

    #243648 quote
    teshmi9z
    Participant
    New

    le problème c’est que je narrive pas a convertir mon code d’indicateur sur MT5 ou 4  j’ai reussi sur TW.
    Si quelqu’un pourrais maider, jai besoin de supertrend KNN et MACDZ pour mon indicateur et le mettre en ticks sur meta trader.

    https://www.youtube.com/watch?v=QxjLljlxDAY&t=9584s

    voici 11h de live avec mon bot, survoler la video et donnez moi votre avis svp

    #243669 quote
    Iván González
    Moderator
    Master
    #243741 quote
    teshmi9z
    Participant
    New

    merci pour les lien , mais es ce possible de contourner le problème avec un code ?
    car le mien fonctionne tres bien pour 1 position ?
    je vais contacter le support technique

    #243742 quote
    fifi743
    Participant
    Master

    pour moi c’est pas possible ,que metatrader le fait tres bien

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

Gestion indépendant des trade avec 3 SL WIN


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
teshmi9z @teshmi9z Participant
Summary

This topic contains 6 replies,
has 4 voices, and was last updated by fifi743
1 year ago.

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