When do position split and try to receive MFEAsOfBarPercent one position return ok but another allways return NaN
Example
CODE:
Please log in to see this code.
Size:
Color:
Congratulations, you've discovered a new bug in WealthScript! Not only MFEAsOfBarPercent but other similar properties too - such as MFEAsOfBar, MAEAsOfBarPercent, MAEAsOfBar, NetProfitAsOfBarPercent, NetProfitAsOfBar.
Nonetheless, the values are assigned correctly if you switch to a Raw Profit position sizing mode. At the moment I see no other workaround. Added to our
Open Issues list.
Size:
Color:
Pay your attention, please, that Combination strategies which include strategies with SplitPosition have a problem with calculating Allocation .
Size:
Color:
Since this appears to be a different topic please start a new thread, providing a detailed problem description.
Size:
Color: