I want modify ema crosss over signal

hello sir i want the cross over signal only when the difference between cross over point and same time price of the stock lessthan 0.5%
how i creat the script plz some one explain


you want 0.5% up on the crossover price point? or 0.5% on the next candle close?

.yes less than .05 % next candle close price

Hello sir plz reply