Hello ,
I am requesting a code translation from Pine script of Tradingview to Prorealtime langage .
Here is the code
//@version=4
// Copyright (c) 2019-present, Alex Orekhov (everget)
// Alpha-Decreasing Exponential Moving Average script may be freely distributed under the terms of the GPL-3.0 license.
study(“Alpha-Decreasing Exponential Moving Average”, shorttitle=”ADEMA”, overlay=true)
alpha = 2 / (int(bar_index) + 1)
ema = close
ema := alpha * ema + (1 – alpha) * nz(ema[1], ema)
plot(ema, title=”ADEMA”, linewidth=2, color=color.orange)
Thanks in advance