Balanced signals, accounting for commission

Posted By: MegaTanker

Balanced signals, accounting for commission - 10/06/21 12:29

The advise functions have this optional flag to generate balanced signals and so far it has worked well for me, but it doesn't seem to account for commission. Probably only the actual trade PnL without the fees. I imported the Signals csv in R to check the balance. Without commission, it is balanced roughly 50% positive 50% negative, but with commission, the ratio of positive trades is much lower as you would expect due to commission and this doesn't seem to get compensated. TrainMode is set to TRADES.

Is there a way to account for this?
Posted By: jcl

Re: Balanced signals, accounting for commission - 10/07/21 07:32

When you train on trade returns, commissions are included. When you train on price changes, they are not included. BALANCED enforces 50% positive and negative training targets regardless of commissions.
Posted By: MegaTanker

Re: Balanced signals, accounting for commission - 10/07/21 14:13

This is what I assumed, but it didn't work when I tried it. I was using negative commission for a percentage fee when it didn't work so I tried a fixed commission. It works with Commission = 1 but it produces unbalanced signals with commission = -1.
I think it doesn't account for percentage commissions
Posted By: jcl

Re: Balanced signals, accounting for commission - 10/07/21 14:52

It does. Whatever the problem is, it's likely neither commission nor balance.
© 2024 lite-C Forums