Need help for coding following strategy tradescript (pi)

buy = when rsi below 20 and low is below 1.1% of ema,6

sell = when rsi is above 70 and high is above 1.1% ema,6

As per above requirement it is not possible to code based on percentage ema with tradescript

is it possible in afl coding?

it is possible in AFL, little complex you can contact some afl expert