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
Size:
Color:
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?
Size:
Color: