Thanks in advance.
// Mark the stoplosses on the chart
if (Position.MarketPosition == MarketPosition.Long)
{
Draw.Line(this, "Long Stop", false, 10, longStop, 10, longStop, Brushes.DodgerBlue, DashStyleHelper.Dash, 2);
}
else if (Position.MarketPosition == MarketPosition.Short)
{
Draw.Line(this, "Short Stop", false, 10, shortStop, 10, shortStop, Brushes.DodgerBlue, DashStyleHelper.Dash, 2);
}
Comment