Best way to handle Requotes? - page 2

 

If anyone else is having this issue I came up with a quick fix for it.

I use a simple Boolean to enable/disable ordering after a buy or sell signal is received. I added this code before the bool is set to false.

if(open_buy==true)
{
//--- Open order code goes here
}
if(trade.ResultRetcode() == TRADE_RETCODE_REQUOTE)
        {
         Print("REQUOTE. Reattempting trade...");
        }
      else
        {
         open_buy=false;
         Print("COMPLETE");
        }

Hope that helps!