How to manually calculate SystemPerformance performance object
Author: abegy
Creation Date: 4/25/2012 1:07 PM
profile picture

abegy

#1
Hello,

I created a new custom ScoreCard. When i run the new Scorecard for a selected Dataset, i want to calculate SystemPerformance for each symbol separatly.
I always get a different result from executing only one symbol.

Here is the default code :
public override void PopulateScorecard(ListViewItem listView, SystemPerformance performance)
{

}

And this is my custom code :
CODE:
Please log in to see this code.
I take same parameters from the default SystemPerformance calculated by WealthLab.
Did i made a mystake somewhere?

Thanks for help.
profile picture

Eugene

#2
profile picture

abegy

#3
I'm using Raw mode. This is not the reason
profile picture

Eugene

#4
Still, please try "Use Worst Trades..." and see if it makes difference or not.
profile picture

abegy

#5
I found my problem. It was because I didn't give any instruction regarding the position size.
Now, I have a second problem. With the following code, I can give the size of my order but I have seen that no commission is applyed by default. How can I give an instruction to RunDonor to say which commission DLL has to be used ?

CODE:
Please log in to see this code.
profile picture

Eugene

#6
Take a close look into the runDonorNew method, and see for yourself what it's doing with regard to determining the commission plan.
profile picture

abegy

#7
Thank you very much. I will try. Just for my information, why in the Wiki, there is no information about it ?
profile picture

Eugene

#8
Because it's an internal, unsupported routine.
profile picture

abegy

#9
Can we have a list in the Wiki of "internal unsupported routine" ?
profile picture

Eugene

#10
Of course no, this is why it's unsupported and internal. The code is gratis, open source, and is not a part of Wealth-Lab. As it requires some programming background, motivated developers are on their own with it.
profile picture

Eugene

#11
Important note to the users of the PerformanceEngine class (internal, unsupported part of the MS123 Visualizers library):

The information regarding PerformanceEngine calling conventions provided across the forum before is actual as of the library version 2012.05.1 and earlier. In future versions, the syntax will most likely undergo a breaking change due to a complete rewrite of the PerformanceEngine class.
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).