clôture partielle position

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #207528 quote
    GRR43
    Participant
    New

    Bonjour,  je souhaite inclure dans le code ci dessous une clôture partielle de la position de 25% entre le prix d’entrée et le target à l’achat comme à la vente, mais je n’y arrive pas.
    Ce code est utilisé pour le Ger40 1 euros.

    Est ce quelqu’un peu m’aider dans cette démarche

    Nb = Capital*Risque/0.4/Close
    If Reinvestissement > 0 Then
    Nb = (Capital+Strategyprofit)*Risque/0.4/Close
    Endif
    If Nb < 0.5 Then
    Nb = 0.5
    Endif
    
    If L1 and Time >= 081500 then
    Buy Nb Lots at Market
    Set Target %Profit 1.6
    Set Stop %Loss 0.4
    Endif
    
    If Time >= 220000 then
    Sell at Market
    Endif
    If S1 and Time >= 080000 then
    Sellshort Nb Lots at Market
    Set Target %Profit 1.6
    Set Stop %Loss 0.45
    Endif

     

    Edit par modération: voir réponse au double post (mais merci d’éviter les doubles posts cf cadre jaune en bas de page)

    salida parcial de posiciòn

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

clôture partielle position


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
GRR43 @grr43 Participant
Summary

This topic contains 1 voice and has 0 replies.

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