How to rectify the below error in code

Dear sir,

After buying in Nifty Future(1lot) @ some points ex:8400 and i want to exit or sell the position @ 8425,but it is selling 2lots.and in statergy it is not considering sell but it is taking as short.

below is the code:

Buy = Cross(EMA(C,per1),EMA(C,per2)) ;
Short=Buy+25 ;//buy exit;
Sell = Cross(EMA(C,per2),EMA(C,per1)) ;
Cover=Sell-25;//sell exit;
//Buy= Ref (Close, 1) > Ref (High, 2) AND Close > Ref (High, 1);
//Sell= Ref (Close, 1) < Ref (Low, 2) AND Close < Ref (Low, 1);

please help to solve the problem

Buy Script:

CROSSOVER(REF(EMA(CLOSE, 10),1), REF(EMA(CLOSE, 20),2)))

we can not add the +25 selling point as by exit

Sell Script:

CROSSOVER(REF(EMA(CLOSE, 10),2), REF(EMA(CLOSE, 20),1)))

we can not add the -25 buying point as by exit

BUY:

REF(CLOSE,1)>REF(HIGH,2) AND CLOSE>REF(HIGH,1)

SELL:

REF(CLOSE,1)<REF(LOW,2) AND CLOSE<REF(LOW,1)