The EnterLongStop order is placed when the condition is met, but the EnterShortStop is not, when it's condition is met.
Why?
if (ToTime(Time[0]) > ToTime(8, 00, 00) && ToTime(Time[0]) <= ToTime(10, 00, 00)&&
GetCurrentAsk() <= High[1])
{
EnterLongStop(DefaultQuantity,High[1] + 1 * TickSize, "lg");
}
if (ToTime(Time[0]) > ToTime(8, 00, 00) && ToTime(Time[0]) <= ToTime(10, 00, 00)&&
GetCurrentBid() >= Low[1])
{
EnterShortStop(DefaultQuantity,Low[1] + -1 * TickSize, "sht");
}
Comment