zorro's EMA function is a little different from TradingView's

Posted By: Mio

zorro's EMA function is a little different from TradingView's - 06/05/20 14:05

The source code is here

Code
 vars close = series(priceClose());
 vars fastEMA = series(EMA(close, 144));
 plot("fastEMA", fastEMA, MAIN, BLUE);


Please see my attachment for Tradingview and Zorro charts

EMA 144 on Bitmex 15m BTCUSD



Attached File
unnamed (1).png  (5 downloads)
Attached picture unnamed.png
Posted By: Mio

Re: zorro's EMA function is a little different from TradingView's - 06/05/20 14:09

I don't see any EMA source code in indicator.c
Anyone know that?
Posted By: Mio

Re: zorro's EMA function is a little different from TradingView's - 06/05/20 14:32

It seems that data lost in zorro chart
But I just check my data is not lost, but zorro charts still lose 5/11 and 5/9


Attached picture unnamed (2).png
Posted By: Mio

Re: zorro's EMA function is a little different from TradingView's - 06/05/20 14:53

Oh

Zorro charts automatically skip the weekend data.
Could you tell me how to change it?
Posted By: Grat

Re: zorro's EMA function is a little different from TradingView's - 06/05/20 15:04

check the TA-LIB
Posted By: Mio

Re: zorro's EMA function is a little different from TradingView's - 06/05/20 15:35

The EMA function should be the same.
It's because Zorro didn't show the weekend bar, the EMA function cannot calculate weekend bars.
Posted By: Mio

Re: zorro's EMA function is a little different from TradingView's - 06/05/20 15:46


Add this and than we can trade on the weekend.

Code
	 BarMode = BR_FLAT;
         
© 2024 lite-C Forums