Position annulé à minuit , code plateforme ou broker ?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #219740 quote
    NathanC
    Participant
    New

    Bonjour, petit soucis: mes ordres limites sont annulés.

    Je ne sais pas si ca vient du code du broker ou de la plateforme prt.

    Mes ordres apparaissent bien dans l’historiques mais sont annulés (PRT)
    Mes ordres Apparaissent aussi dans mon broket avec “validités illimités”, puis sont indiqués comme supprimés par proOrder
    En back-test ils ne sont pas annulés.

     

    // Graphes H1
    // Paire recommandée : EUR/CHF
    Defparam cumulateorders = false
    
    // Levier (max conseillé : 1.5)
    LEVIER = 1
    
    // Choix du réinvestissement des gains ou non
    REINV = 1
    IF REINV = 0 THEN
    n = 1*levier
    ENDIF
    
    IF REINV = 1 THEN
    Capital = 3000 + strategyprofit
    n = (capital / 3000)*levier
    IF n <1 THEN
    n = 1  // Taille minimum : 1
    ENDIF
    ENDIF
    
    // Bougie référence 18 à 22H
    If time = 220000 THEN
    amplitude = highest[4](high) - lowest[4](low)
    amplitude = amplitude*0.4
    ouverture = close
    ENDIF
    
    // ACHAT & VENTE entre 22H et 23H
    IF time >= 220000 and time <= 230000 THEN
    Buy n shares at ouverture - amplitude limit
    Sellshort n shares at ouverture + amplitude limit
    ENDIF
    
    // STOP & OBJECTIF
    SET STOP %LOSS 0.6
    SET TARGET %PROFIT 1.2
    
    // SORTIE
    IF time = 100000 THEN
    SELL AT MARKET
    EXITSHORT AT MARKET
    ENDIF
    
    

    Merci d’avance 🙂

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Position annulé à minuit , code plateforme ou broker ?


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
NathanC @nathanc Participant
Summary

This topic contains 1 voice and has 0 replies.

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