Help for buy sell rule

#1
My English is not very good, I wish therefore apology.

I am planning disparate strategy for intraday.


Suppose that

Example buy sell rules


Buy = X > 50 ;
Sell = X < 50 ;


İf trade rule different day then apply the above formula.

if trade rule same day then apply the following formula,

Buy = X > 75 ;
Sell = X < 25 ;


How do I write a rule this way...


Thank you