I'm probably missing this and apologize if I am. Position has Profit/ProfitPctAsOf and MAE/MFEAsOfBar but where is Position.Value and Position.ValueAsOf?
Right now it seems like I have to manually calculate this by getting the price at the close and multiply it by the quantity. Is this true or am I missing something? Should I be using the close of the previous (idx-1) to be consistent with the other AsOfs?
Thanks
p.s. The naming inconsistency bothers me lol. Why isn't it MAE/MFEAsOf instead of AsOfBar like the profits?
Right now it seems like I have to manually calculate this by getting the price at the close and multiply it by the quantity. Is this true or am I missing something? Should I be using the close of the previous (idx-1) to be consistent with the other AsOfs?
Thanks
p.s. The naming inconsistency bothers me lol. Why isn't it MAE/MFEAsOf instead of AsOfBar like the profits?
Rename
What's wrong with using Position.ProfitAsOf(int idx) instead?
Or if you simply want the "current price" of a stock at idx: bars[int idx].Close.
Or if you simply want the "current price" of a stock at idx: bars[int idx].Close.
QUOTE:
p.s. The naming inconsistency bothers me lol. Why isn't it MAE/MFEAsOf instead of AsOfBar like the profits?
Because they were added by different developers. ;)
Because I need the equity (not profit) of the position.
And LOL Eugene
And LOL Eugene
To fix the inconsistency, in Build 8 we'll add MAE/MFEAsOf and MAE/MFEPctAsOf.
Is that really required? Can we vote on it?
I don't really want two choices for the same thing popping up in intellisense.
I don't really want two choices for the same thing popping up in intellisense.
I'm for deprecating the old style names - in fact, I've removed them from QR for WL7 B8. The reason why I kept them is not to break the PowerPack as its users will have to reinstall its Build 4 after installing B8. If you don't see it as a problem, we can simply get rid of the old properties and update the PP extension.
@Robert
You got it
You got it
Consistency makes my OCD feel way better.
Any chance you might throw a p.Equity or p.Value and (AsOfBar) in there while you're at it please?
Any chance you might throw a p.Equity or p.Value and (AsOfBar) in there while you're at it please?
QUOTE:
Any chance you might throw a p.Equity or p.Value and (AsOfBar) in there while you're at it please?
Sure. Exposed Position.ValueAsOfBar for Build 8.
Thanks!
Your Response
Post
Edit Post
Login is required