EntryCommission == 0 always
Author: Gemini19
Creation Date: 9/2/2018 5:50 PM
profile picture


I want to use pos.EntryCommission & ExitCommission in my Script ( for test, not real trading). Try it in Max Percent Risk & SetShareSize modes. I use PrintDebug( string.Format( "ExitCommission: {0}", pos.ExitCommission) ); and saw that it always zero.
profile picture


Sorry, I found the answer myself in the QuickRef.
profile picture


That's right. It's by design:

Commissions are zero

Glad you found it yourself.
profile picture


Commissions are zero during strategy execution unless you set them in strategy code and uncheck commissions in Preferences>>Commissions. Then:
Please log in to see this code.
in the strategy sets the final commission value.
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).