Laisser courir un gain

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #242896 quote
    paulPRT
    Participant
    Junior

    Bonjour à tous,

    Est il possible de mettre un TP partiel à un certain seuil ?

    Je souhaiterai vendre une partie après 25 points et une autre partie à 100 points.

    En vous souhaitant une très bonne journée

    Paul

    #242910 quote
    robertogozzi
    Moderator
    Legend

    Vous devez trader 2 contrats, puis en fermer un après avoir gagné 25 points et laisser l’autre atteindre le TP fixé.
    Si l’instrument que vous souhaitez trader autorise 0,5 contrat, vous pouvez même trader 1 seul contrat, puis en fermer un demi à chaque fois (je ne l’ai pas essayé):

    myLongConditions = close CROSSES OVER average[20,0](close) AND Not OnMarket
    IF myLongConditions THEN
       BUY 2 Contracts at Market
       SET TARGET pPROFIT 100
       SET STOP   pLOSS   50
    ENDIF
    IF OnMarket AND ((close - TradePrice) / PipSize) >= 25 THEN
       SELL 1 Contract at Market
    ENDIF
    Iván González thanked this post
    #243087 quote
    paulPRT
    Participant
    Junior

    Merci beaucoup

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

Laisser courir un gain


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
paulPRT @paulprt Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by paulPRT
1 year, 7 months ago.

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