HELP Trop d’ordre en simultané

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #198772 quote
    valtanosvaltanos
    Participant
    New
    Bonjour,
    Etant un novice dans la programmation de stratégie automatique je rencontre quelques interrogations et difficultés par la même occasion..
    Je pense avoir limitée le nombre de passages d’ordres avec le code:
    DEFPARAM CumulateOrders = False
    If CountOfPosition < 1 THEN
    Buy 1 shares at market
    Mais il me semble qui a toujours autant d’odre en simultané ..
    SI quelqu’un peut m’éclairer sur la viabilité de mon backtest ce serait super merci beaucoup

    // Définition des paramètres du code
    DEFPARAM CumulateOrders = false // Cumul des positions désactivé
    
    
    // Empêche le système de placer de nouveaux ordres sur les jours de la semaine spécifiés
    daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
    
    // Conditions pour ouvrir une position acheteuse
    indicator1 = ExponentialAverage[50](close)
    c1 = (close > indicator1)
    indicator2 = ExponentialAverage[200](close)
    c2 = (close > indicator2)
    indicator3 = DonchianChannelCenter[20]
    c3 = (close > indicator3)
    indicator4 = DonchianChannelCenter[150]
    c4 = (close > indicator4)
    indicator5 = DonchianChannelCenter[300]
    c5 = (close > indicator5)
    
    IF (c1 AND c2 AND c3 AND c4 AND c5) AND not daysForbiddenEntry THEN
    BUY 1 SHARES AT MARKET
    ENDIF
    
    // Stops et objectifs
    SET STOP %TRAILING 0.15

     

    #198773 quote
    valtanosvaltanos
    Participant
    New

    jai oublié de préciser que cest uniquement sur le BTC USD

    #198793 quote
    NicolasNicolas
    Keymaster
    Legend

    Avec “CumulateOrders = false”, il ne peut y avoir qu’un seul ordre au marché au même moment.

    #198855 quote
    valtanosvaltanos
    Participant
    New

    Merci beaucoup pour ta réponse pourrais tu tester le script et me donner ton avis sur la viabilité en UT  15MIN / 1H  / 4H ?

    #198966 quote
    NicolasNicolas
    Keymaster
    Legend

    La viabilité ? 🙂

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

HELP Trop d’ordre en simultané


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
valtanos @valtanos Participant
Summary

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

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