I am trying to write simple indicator, that will display simple whole number next to EMA in a chart. This number should be difference between last price and current value of EMA.
I am using EMA 34 and EMA 204. If price is (TF) i.e. 610.1 and EMA 34 is 612.2, there should be written 21 next to the line. EMA 204 is 608.7 and next to the line will be written 14.
How to make it? I am trying to use Print() function as well as DrawText(), but without any success... Can you help me please?
Thanks in advance,
Tom

We differ only in using vars:
Comment