void fBuy()
{
RefreshRates();
int result = OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"myPickyBreakout",Magic,0);
if (result == -1)
{
int e = GetLastError();
Print(e);
}
Duration = 0;
}
//+------------------------------------------------------------------+
//| Sell |
//+------------------------------------------------------------------+
void fSell()
{
RefreshRates();
int result = OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,0,0,"myPickyBreakout",Magic,0);
if (result == -1)
{
int e = GetLastError();
Print(e);
}
Duration = 0;
}