+1 888 340 6572 GET STARTED
MultiCharts Project Management
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
feature_request_small.png
Open Feature request MC-2914

Portfolio <- Trades <- Orders

action_vote_minus_faded.png
1
Votes
action_vote_plus_faded.png
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
Description

There is a class missing: "Trade" or "Position". We have Orders, Strategy, Bars, etc. but not a Trade. A Trade would be attached to a symbol, and would be a full cycle of order executions, from flat, to "in-position", to "scale-in", to "scale-out", cycle through scale-in / scale-out multiple times, then back to flat.

A Trade would keep track of all these order executions, and their implications on the open PNL, Nr. Lots, drawdown / max-open-profit, etc.

Because there is no "Trade" class, working with Orders, various order types, defining scale-in / scale-out strategies - is a mess.
For example,

1) you send a long order for 10 lots at bar 1.
2) you are allowed to send a sell order at bar 2 to sell 5 - so you CAN scale-out, but you are not allowed to scale-in (send another buy order) with default settings.

To fix this, you need to specify a "Position limits" setting of "allow up to N" orders in the same direction:
a) when the order is generated by a different entry order.
b) regardless of the entry that generated the order.

There is an option missing in there: "when the order is generated by the same entry order" ...

Nonetheless, a more intuitive way, is to have a "Trade" or "Position" object that would own EVERY aspect of its position and order generation/management.

Comments (0)
There are no comments
History
Issue basics
  • Type of issue
    Feature request
  • Category
    Not determined
  • Targeted for
    Not determined
  • Status
    Under Review
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Resolution
    Not determined
Attachments (0)
There is nothing attached to this issue
Commits (0)
There are no code checkins for this issue
Duplicate issues (0)
This issue does not have any duplicates