I'm set Stop Loss in percentage to OnBar Update (), if the position is flat. For example:
protected override void OnBarUpdate ()
{
if (Position.MarketPosition == MarketPosition.Flat)
{
SetStopLoss ("", CalculationMode.Price (Close [0] - (Close [0] * (1 +2))), false) ; // Stop 2%
}
is correct to do as above ?
Or should I do this:
SetStopLoss("", CalculationMode.Percent, 2, false);// Stop 2%
or how?
Ciao.
Roberto
Comment