stratégie avec résultat différent pour les ventes uniquement

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #150735 quote
    chomowskychomowsky
    Participant
    New
    // Définition des paramètres du code
    DEFPARAM CumulateOrders = False // Cumul des positions désactivé
    
    // Conditions pour ouvrir une position acheteuse en 1 heure
    timeframe(1 hour)
    indicator1 = ExponentialAverage[100](close)
    c1 = (close[2] < indicator1)
    
    //Conditions pour ouvrir une position acheteuse en 15 minutes
    timeframe(15 minutes)
    indicator2 = ExponentialAverage[100](close)
    c2 = (close[2] < indicator2)
    
    //Conditions pour acheter une position en 1 minute
    timeframe(1 minute)
    indicator3 = ExponentialAverage[100](close)
    indicator4 = average [2]
    c3 = (indicator4 CROSSES under indicator3)
    
    IF c1 AND c2 AND c3 THEN
    sell AT MARKET
    endif
    
    // Conditions pour fermer une position vendeuse
    
    c4 = (indicator4 CROSSES over indicator3)
    
    IF c4 THEN
    buy AT MARKET
    ENDIF

    Bonjour

    J’ai mis en code une strategie à l’achat qui a l’air de fonctionner. J’ai donc fait l’inverse pour faire des ventes. Je ne comprends pas le résultat, les prises de position. Des prises de positions qui durent 3 jours sur un graphique en 1 min…

    #150740 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour,

    on ne construit pas une position sens vendeur avec sell et buy…voir manuel page 9 avec sellshort, exitshort: https://www.prorealtime.com/fr/pdf/probacktest.pdf

    #150750 quote
    NicolasNicolas
    Keymaster
    Legend

    Instructions SELLSHORT et EXITSHORT

    sont celles à utiliser pour entrer et sortir d’une position de vente à découvert.

    #150786 quote
    chomowskychomowsky
    Participant
    New

    merci pour vos réponses. Je suis vraiment une buse…

    Est il possible d’avoir une condition de revente qd on achète qui stipule : je vends si mon prix d’achat=mon prix actuel ? cela fera une perte a 0…

Viewing 4 posts - 1 through 4 (of 4 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

stratégie avec résultat différent pour les ventes uniquement


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
chomowsky @chomowsky Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by chomowskychomowsky
6 years ago.

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