I want send only 1 buy and 1 sell pending order per sesion

 
Hi!! I've developed my first EA. The EA send pending orders at a determinated level, my problem is that the EA send a order every time that the price hit the level. I want to send only 1 buy and one sell order per sesion. Trading hours is including in the EA.
Thanks for your help!!

This is the sendOrder code:

void sendOrder(){

if(Ask==entrylevel){
OrderSend(Symbol(),OP_BUYSTOP,getLotSize(), buystart, 2,buystart-sl, buystart+tp, NULL,0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELLSTOP, getLotSize(), sellstart, 2,sellstart+sl, sellstart-tp, NULL,0,0,CLR_NONE);
}
if(Bid==entrylevel){
OrderSend(Symbol(),OP_BUYSTOP,getLotSize(), buystart, 2,buystart-sl, buystart+tp, NULL,0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELLSTOP, getLotSize(), sellstart, 2,sellstart+sl, sellstart-tp, NULL,0,0,CLR_NONE);
}
else{}

}
Reason: