Hello all,

I would like to expand the existing EMA indicator so that it works according to these rules:

go long: when 5 EMA crosses above 9 EMA + 9EMA is not pointing downward (so just up or level)

exit long: when 9 EMA is pointing downward

go short: when 5 EMA crosses below 9 EMA + 9 EMA is not point upward (so just down or level)

exit short: when 9 EMA is pointing upward

Any ideas how I can modify the existing script? I'm by no means a coder, so I'm very much stumped, really.

Many thanks

Thomas