Stop Loss not set
Created at 02 Oct 2024, 07:07
Stop Loss not set
02 Oct 2024, 07:07
In a bot i set orders with the async method. Sometimes it seams that the stop loss is not set. Which event gives me this information? Or how can I check if the stop loss is set when the order is executed?
Thanks for your help!
Tom
firemyst
03 Oct 2024, 00:07
Get the position, and then check the stoploss value.
if (p.StopLoss.GetValueOrDefault() == 0)
{
//no stoploss on the position. DO what you want to do.
}
@firemyst