Profile Picture

Getting error when trying to run MultipleSystems test strategy

Posted By BrianMurphy1980 6 Years Ago

Getting error when trying to run MultipleSystems test strategy

Message
Posted Wednesday December 07 2011
Hi,

I am new to RightEdge platform, I have downloaded MultipleStrategies test strategy but im getting an error:

RightEdge.Common.PositionManager does not contain a definition for "PercentPerPosition" and no extension method "PercentPerPosition" accepting a first arguement

Any ideas?

Thanks

Posted Wednesday December 07 2011
The APIs changed a bit. Use the Allocation and AllocationType properties of PositionManager, like this:

PositionManager.Allocation = 100 / (SystemData.Symbols.Count * Strategies.Count);
PositionManager.AllocationType = AllocationType.Percentage;

Thanks,
Daniel
Posted Thursday December 08 2011
Thanks Daniel,

Will try that
Posted Friday December 26 2014
The line PositionManager.AllocationType = AllocationType.Percentage; does not work
It should be replaced by:

PositionManager.AllocationType = RightEdge.Common.PositionAllocationType.Percentage;


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems