- ago
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?
3
772
Solved
10 Replies

Reply

Bookmark

Sort
- ago
#1
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.
0
- ago
#2
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. ;)
0
- ago
#3
Because I need the equity (not profit) of the position.

And LOL Eugene
0
- ago
#4
To fix the inconsistency, in Build 8 we'll add MAE/MFEAsOf and MAE/MFEPctAsOf.
0
Cone8
 ( 6.32% )
- ago
#5
Is that really required? Can we vote on it?

I don't really want two choices for the same thing popping up in intellisense.
1
- ago
#6
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.
0
- ago
#7
@Robert

You got it
0
- ago
#8
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?
0
- ago
#9
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.
0
Best Answer
- ago
#10
Thanks!
0

Reply

Bookmark

Sort