MFEAsOfBar and MFEAsOfBarPercent for Futures
Author: kbellare
Creation Date: 12/18/2013 7:37 PM
profile picture

kbellare

#1
The MFEAsofBar for Futures doesn't seem to work - does it factor the point value in its calculation? It seems too small compared to the daily ATR. If it doesn't support, please suggest a formula to use that shows profit/loss of a futures position?

Also,what is the basis assumed when calculating MFEAsofBarPercent for Futures? Futures have a daily margin (2.5K-4K) but no cost basis - so, how should i interpret MFE_Percent metrics?

thanks
Kiran
profile picture

Eugene

#2
QUOTE:
The MFEAsofBar for Futures doesn't seem to work - does it factor the point value in its calculation?

MFE/MAEAsOfBar and MFE/MAEAsOfBarPercent do account for PointValue of a futures contract. AFAIR, last known bug here was fixed in 2011.
profile picture

Cone

#3
Re: MFE
Keep in mind that during script execution in Portfolio Simulation mode the size of a position is 1 share (or contract). Consequently, MFE will be based on holding only 1 share/contract. Exception: You can specify the sizing with WealthScript Override SetShareSize() so that it is reflected in all calculations during scription execution.

Re: MFEAsOfBarPercent
Stocks or futures, it's always calculated by the maximum excursion from the entry price.

Contrary to what is stated in the QuickRef, however, commissions are not applied to these calculations - at least not during script execution. Commissions may enter the equation during visualizer post-processing (we need to check that).



profile picture

kbellare

#4
Thanks Cone, Eugene,

So, MFEAsofBarPercent is 100X(max excursion from entry price)/entry price, correct? This is not a good metric to compare trade profits across different futures, because their profit depends on the absolute excursion from entry price X point value, not the % excursion from entry price.

thanks
Kiran
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).