Can anyone code this in MQL5?

 

study(title="Steven Primo's PET-D", shorttitle="Pet-D", overlay=true)

petd = ema(close, 15)
up = close > petd ? green : red

barcolor(up)

Hope you understand what I mean!
 
You have only four choices:
  1. Search for it,
  2. learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
  3. Beg at Coding help - MQL4 and MetaTrader 4 - MQL4 programming forum or Need help with coding - General - MQL5 programming forum or Free MQL4 To MQL5 Converter - General - MQL5 programming forum or Requests & Ideas (MQL5 only!),
  4. or pay (Freelance) someone to code it.
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help
          urgent help.
Reason: