Exitshort 1 contract

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #227426 quote
    killerplatuze
    Participant
    New

    The strategy sells 2 contracts at market, one of them should be go out with Target Profit, the second one goes out with another parameters.

    How can i sell the first one? Set Target profit xx dont works in this case, it will close both contracts.

    #227427 quote
    PeterSt
    Participant
    Master

    The answer is in your Title of the topic. It is actually like that. 🙂
    Of course you must do it in code and track yourself when to exit that 1 (or any number) of contracts.

    ashehzi thanked this post
    #227430 quote
    killerplatuze
    Participant
    New

    How can i set Target Profit for one contract if i have two contracts? Thats the question.

    #227432 quote
    robertogozzi
    Moderator
    Master

    Firstly set the TP to the max TP you want to gain.

    Secondly, check when the intermediate TP is reached, at the closing of each bar (pending orders cannot partially close positions) and close the desired size AT MARKET.

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

Exitshort 1 contract


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/05/2024
Status: Active
Attachments: No files
Logo Logo
Loading...