Problème Backtest, 0 retour

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #231061 quote
    GodecLouis
    Participant
    New

    Bonjour à tous,

    Je fais face à un problème et j’espère que quelqu’un ici pourrait m’aider à le résoudre. J’ai développé une stratégie qui semble fonctionner correctement, sans aucune erreur signalée par ProBacktest. Cependant, quand je l’exécute, je ne reçois aucune donnée en retour. J’ai beau cherché dans la documentation, je ne vois pas ce qu’il pourrait manquer.

    Je vous joins une partie de mon code pour vous aider à comprendre :

    // Ferme une position acheteuse si le stop de protection est atteint
    IF ONMARKET THEN
    IF Low <= StopProtection THEN
    CapitalFinal = CapitalFinal - CapitalEngageParTrade
    Position = 0
    SELL 1 SHARES AT MARKET NextBarOpen
    IF High > PlusHautHistorique + MargePrixAchat THEN
    CapitalFinal = CapitalFinal + (CapitalEngageParTrade * PartProfitVendu)
    Position = 0
    SELL 1 SHARES AT MARKET NextBarOpen
    ENDIF
    ENDIF

    Merci d’avance pour l’aide que vous pourrez m’apporter.

    #231062 quote
    GraHal
    Participant
    Master

    Essayez… au lieu de 1 partage, passez à 1 contrat.

    #231066 quote
    fifi743
    Participant
    Master

    pour ouvrir une position on utilise

    BUY pour achat

    SELLSHORT pour la vente

    et apres pour fermé

    sell 1 contract at market

    exitshort 1 contract at market

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

Problème Backtest, 0 retour


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
GodecLouis @godeclouis Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by fifi743
1 year, 11 months ago.

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