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

Gemini19

#1
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

Gemini19

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

Eugene

#3
That's right. It's by design:

Commissions are zero

Glad you found it yourself.
profile picture

KGo

#4
Commissions are zero during strategy execution unless you set them in strategy code and uncheck commissions in Preferences>>Commissions. Then:
CODE:
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).