- ago
I need to keep track of the highest high while in a position. Is there a link to some simple code that provides that?
0
123
Solved
4 Replies

Reply

Bookmark

Sort
- ago
#1
According to the API manual for the Position object, I think you're looking for MFEAsOf.
0
Cone8
 ( 3.70% )
- ago
#2
MFEAsOf might be useful for the same purpose, which was not revealed, but it's quite different from the "Highest High" value...

CODE:
   Position p = LastPosition;    double hh = Highest.Value(idx, p.Bars.High, idx - p.EntryBar + 1);
0
Best Answer
- ago
#3
To me, "highest high in a position" read more like profit but @Cone's right, the question now looks ambiguous!
0
- ago
#4
Thanks, gentlemen.
0

Reply

Bookmark

Sort