Thanks, kvak, for your tireless efforts but my request wasn't about the colours but the calculation.
if the slope goes up, the calculation is: EMA+price low
if the slope goes down the calculation is: EMA+price high
you can see the difference by looking at the screenshot (example: compare your line to the EMA36-line of XU ma HL simple)