Modified Dietz method: Difference between revisions

Content deleted Content added
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 380:
==Visual Basic==
 
<sourcesyntaxhighlight lang="vb">
Function georet_MD(myDates, myReturns, FlowMap, scaler)
' This function calculates the modified Dietz return of a time series
Line 441:
 
End Function
</syntaxhighlight>
</source>
 
==Java method for modified Dietz return==
<sourcesyntaxhighlight lang="java">
private static double modifiedDietz (double emv, double bmv, double cashFlow[], int numCD, int numD[]) {
 
Line 494:
return md;
}
</syntaxhighlight>
</source>
 
== Excel VBA function for modified Dietz return ==