I have a small issue that I cannot find how to deal with it... when my strategy gets backtested it happens that after setting a EntryStopShort() at lets say the low of a bar then if the next day`s bar opened in a big gap it unrealistically creates a FILL at the low of the bar .... I would like to be able to indicate the strategy NOT to fill any entry if the next days open with a gap out of the price... is that possible??
Another issue I have is by doing a SetStopLoss() ... I am doing the following piece of code after detecting my signal... awkwardly the setstoploss for the SHORT works but not the one for the LONG
if (condition)
{
EnterLongStop(DefaultQuantity, High[0] + 1 * TickSize, "Outlong");
EnterShortStop(DefaultQuantity, Low[0] - 1 * TickSize, "Outshort");
SetStopLoss("Outlong",CalculationMode.Price,Low[0]-1*TickSize,true); // this one does not work :S
SetStopLoss("Outshort",CalculationMode.Price,High[0]+1*TickSize,true); // This one works
}
can you give some pointers?
thanks

GS


Comment