I developing an automated strategy which works as expected in backtesting on account Sim101 but when I run it on a Live account it does not place stop losses. FWIW the account is linked to rithmic trader. This is how I am entering and placing the orders:
private int STOP = 7;
protected override void OnBarUpdate()
{
if( myConditionsToEnter )
{
enterLongC();
}
}
private void enterLongC()
{
EnterLong(Convert.ToInt32(DefaultQuantity), "C");
SetStopLoss(CalculationMode.Ticks, STOP );
}
I call the method enterLongC whenever I want to enter a trade, is that a valid way to do it? It is very weird because as I said before it works fine on demo but don`t know what happens on live.
Attached an image showing a short trade taken without stop loss set.
Comment