I'm trying to do the following:
Track/store the Bid values since my buy order got filled. Then get the max value from the Bid values stored/tracked.
I found about the Max.Math function and got this far:
double maxValue = Math.Max( );
How do I state the range from Entry Price Bid to the Real Time Bid?
I mean some pseudo code like that Range:
PositionAccount.AveragePrice.Bid TO getCurrentBid()
Example to illustrate:
PositionAccount.AveragePrice.Bid = 1.01 (Entry price, entered at 12 :00 pm)
1.02, 1.03, 0.99 (Bids fluctuations, from 12:00 pm to 12:09 pm)
1.07 (current real time Bid, at 12:10 pm)
1.07 = double maxValue = Math.Max(PositionAccount.AveragePrice.Bid TO getCurrentBid() );
Comment