Commissions based on trade outcome
Author: brucev
Creation Date: 11/4/2012 11:56 PM
profile picture

brucev

#1
Hi,

I would like to create a commission structure based on whether a trade was successful or not.

Something along the lines of:
BUY commission: 0.25%
SELL commission: 0.25% for losing trades, 0.5% for winning trades.

I can't see any way in the current commission structure to tell whether a trade was successful or not.
Any ideas?

Cheers,
Bruce
profile picture

Eugene

#2
Hi Bruce,

The Commission interface is profitability-agnostic.

I haven't tested it, just off the top of my head. As you can see, the Calculate method accepts a Bars parameter. How about assigning a value that depends on a Position's profitability to its .Bars.Tag property after it's exited, and then read it back in your Commission structure?
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).