Closing specific orders if scaling in

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #194509 quote
    CapnCrunch77CapnCrunch77
    Participant
    Junior

    Hello All,

    Does anyone know how you can close out individual orders based on entry and gain?  for example; I’ve scaled into a position on DAX index at different prices; in some instances it’s just to generate cashflow whilst maintaining a longer term position – but how can I close a specific order rather than oldest first order?

    Thanks

    #194510 quote
    PeterStPeterSt
    Participant
    Master

    You can’t.
    But you can close positions. Thus if your code keeps track of subsequent positions (for order #1, 2 and 3) then you can close that number of positions. This will come down to the same.

    How much $ you will reobtain by that is your challenge … But in theory your code can keep track of that too.

    #194511 quote
    CapnCrunch77CapnCrunch77
    Participant
    Junior

    You can’t.

    But you can close positions. Thus if your code keeps track of subsequent positions (for order #1, 2 and 3) then you can close that number of positions. This will come down to the same.

    How much $ you will reobtain by that is your challenge … But in theory your code can keep track of that too.

    Thanks.

    #196296 quote
    NicolasNicolas
    Keymaster
    Legend

    So you were talking about automatic trading orders right? Because in manual trading, if you do not have aggregate orders visually on your chart, you can identify each market entry and close whatever order your want.

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

From idea to ProBuilder code in seconds.

Your coding copilot for ProRealTime™. Ask in plain English — get clean, ready-to-paste indicators, screeners and systems.

Available in 7 languages
Try ProRealAI

Closing specific orders if scaling in


Platform Support: Charts, Data & Broker Setup

New Reply
Author
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by NicolasNicolas
4 years, 3 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 06/02/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...