kieran-mackle / AutoTrader

A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
https://kieran-mackle.github.io/AutoTrader/
GNU General Public License v3.0
937 stars 216 forks source link

Taking profits and leaving runners concept #73

Open jjphung opened 1 year ago

jjphung commented 1 year ago

In manual trading, a common technique used to increase profit is the concept of “taking profits and leaving runners.” This can be executed in 2 ways:

  1. Sell x% of your position at a take profit point and then continuously exit more as the trade goes in your favor with stop losses at certain levels or when it falls down to breakeven from your initial take profit point.
  2. Trailing stop losses. Disadvantages: You might get “chopped” out even if the general trend of the trade will eventually succeed and continue on.

So my question is: is there a way to implement the first way with the signal_dict construction, Order construction logic, and/or Isolated Position? Thanks!