Using Forex commissions and stocks commissions at the same time?
Author: schranzi9
Creation Date: 9/23/2012 7:10 AM
profile picture

schranzi9

#1
In WL is it possible to define in Prefenrences\Commisions\PerTrade a special commission for my Forex Broker like IB.
But when I want backtesting in WL NYSE stocks and Forex at the same time how can I preparing the preferences\commissions for both forex and stocks?
For Stock I use Prefenrences\Commisions\IB Bundel but for Forex I need the settings Pertrade. So at the moment I changed the prefenrences manually every time when I switch from stocks to forex. Is any solution for this problem there available? Maybe that I must use the different commissions in the C# coding?

Thanks Christian
profile picture

Eugene

#2
You have to build a custom commission library to define your own commission plan that takes both Forex and stocks into consideration. The Community.Commissions library is open source and thus can serve as a working example. To download its zipped source code from the Wiki you need to login:

Home - Community.Commissions
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).