How to place Orders with TP1..TP2.. and take Profits in Stages

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #154961 quote
    SeppTSeppT
    Participant
    New

    How to place orders with various TP- Levels in v11?

    How to take Profits at various Levels of the Trade in v11? i.e. The Trade has reached a Level and I want to take out 50% Profit with the remaining 50% caring on.

    #154965 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go (sell half position after 30 pips gained):

    IF MyLongConditions AND Not OnMarket THEN
       BUY 2 contracts at Market
       SET STOP ...
       SET TARGET .....
    ENDIF
    IF LongOnMarket AND ((close - PositionPrice) > 30 * PipSize) THEN
       SELL 1 contract at Market
    ENDIF
    SeppT thanked this post
    #154969 quote
    VonasiVonasi
    Moderator
    Master

    SeppT  – Your topic has been moved. It is an auto strategy question and not a platform issue.

    Please post your future topics in the correct forum:
    _ ProRealTime Platform Support: only platform related issues.
    _ ProOrder: only strategy topics.
    _ ProBuilder: only indicator topics.
    _ ProScreener: only screener topics
    _ General Discussion: any other topics.
    _ Welcome New Members: for new forum members to introduce themselves.

    #155127 quote
    SeppTSeppT
    Participant
    New

    Hi Roberto,

    Tank you for your response and the code. I however won’t to do this on manual trades not as an auto strategy.

    #155130 quote
    GraHalGraHal
    Participant
    Master

    Manual trade is even easier surely … Buy 2 then sell 1 ?? 🙂

    #155134 quote
    SeppTSeppT
    Participant
    New

    Thanks for your responce. I Figured that much, What Im trying to figure is how to take out 50% at TP1 a further 25% (of the remaining 50%) at TP2… and the rest can run till exit criteria is met.

    #155145 quote
    GraHalGraHal
    Participant
    Master

    So in manual trade … Buy 2, sell 1, then sell 0.25 then 0.75 runs until it meets your exit criteria?

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

How to place Orders with TP1..TP2.. and take Profits in Stages


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
SeppT @seppt Participant
Summary

This topic contains 6 replies,
has 4 voices, and was last updated by GraHalGraHal
5 years, 9 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/23/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...