I need to keep track of the highest high while in a position. Is there a link to some simple code that provides that?
Rename
According to the API manual for the Position object, I think you're looking for MFEAsOf.
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);
To me, "highest high in a position" read more like profit but @Cone's right, the question now looks ambiguous!
Thanks, gentlemen.
Your Response
Post
Edit Post
Login is required