I am moving my stop up to 5 pips below the Low of the last 3 bars.
This seems to all be fine but I only want my stop to be moved when the new stop position will be better than the last Stop position.
Below is my code: (Current.StopLoss in Red is what I need help with - I need this part of the script to get the current StopLoss so it can check to see if the new Stop is going to reduce the loss and not increase it):
// Followup Stop 1 - Moves Stop to 3 Bar Stop
if (Position.MarketPosition == MarketPosition.Long
&& LowestBar(Low, 2) + -5 * TickSize > Current.StopLoss)
{
SetStopLoss(CalculationMode.Price, LowestBar(Low, 2) + -5 * TickSize);
}
Thanks for your help,
Michael
Comment