Additional condition to Equity
Author: akuzn
Creation Date: 11/24/2013 6:51 AM
profile picture

akuzn

#1
Good day.

Is there any possibility to add to equity trading size rule with for example maximum 5% of volume on past bar or computed period?

Certainly it could be done through methods replacing all trading WealthLab methods and compute it there but still hope it is possible via WealthLab.

profile picture

Eugene

#2
There's an option to reduce quantity based on Volume in Wealth-Lab's Preferences, it's called "Limit a Position's Quantity to a Percentage of the Bar's Volume".
profile picture

akuzn

#3
Great, thank You.
It was easy)

Is it possible to get access this setting via code?
profile picture

Eugene

#4
Yes, it's possible using the undocumented and unsupported SettingsManager class from Fidelity.Components assembly.

On how to properly initialize it (or it won't work) and use it, check out the latest source code of Community Components. It can be found under ..\ExtensionMethods\PortfolioEquityEx.cs > ExecuteDonorStrategy.
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).