Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Quad, TipmyPip, degenerate_762, AndrewAMD, Nymphodora), 997 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
zorro's EMA function is a little different from TradingView's #480414
06/05/20 14:05
06/05/20 14:05
Joined: Oct 2018
Posts: 27
M
Mio Offline OP
Newbie
Mio  Offline OP
Newbie
M

Joined: Oct 2018
Posts: 27
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 Files
unnamed (1).png (5 downloads)
unnamed.png (18 downloads)
Last edited by Mio; 06/05/20 14:06.
Re: zorro's EMA function is a little different from TradingView's [Re: Mio] #480415
06/05/20 14:09
06/05/20 14:09
Joined: Oct 2018
Posts: 27
M
Mio Offline OP
Newbie
Mio  Offline OP
Newbie
M

Joined: Oct 2018
Posts: 27
I don't see any EMA source code in indicator.c
Anyone know that?

Re: zorro's EMA function is a little different from TradingView's [Re: Mio] #480416
06/05/20 14:32
06/05/20 14:32
Joined: Oct 2018
Posts: 27
M
Mio Offline OP
Newbie
Mio  Offline OP
Newbie
M

Joined: Oct 2018
Posts: 27
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 Files
unnamed (2).png (14 downloads)
Last edited by Mio; 06/05/20 14:46.
Re: zorro's EMA function is a little different from TradingView's [Re: Mio] #480417
06/05/20 14:53
06/05/20 14:53
Joined: Oct 2018
Posts: 27
M
Mio Offline OP
Newbie
Mio  Offline OP
Newbie
M

Joined: Oct 2018
Posts: 27
Oh

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

Re: zorro's EMA function is a little different from TradingView's [Re: Mio] #480418
06/05/20 15:04
06/05/20 15:04
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline
Senior Member
Grat  Offline
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
check the TA-LIB

Re: zorro's EMA function is a little different from TradingView's [Re: Grat] #480419
06/05/20 15:35
06/05/20 15:35
Joined: Oct 2018
Posts: 27
M
Mio Offline OP
Newbie
Mio  Offline OP
Newbie
M

Joined: Oct 2018
Posts: 27
The EMA function should be the same.
It's because Zorro didn't show the weekend bar, the EMA function cannot calculate weekend bars.

Re: zorro's EMA function is a little different from TradingView's [Re: Mio] #480420
06/05/20 15:46
06/05/20 15:46
Joined: Oct 2018
Posts: 27
M
Mio Offline OP
Newbie
Mio  Offline OP
Newbie
M

Joined: Oct 2018
Posts: 27

Add this and than we can trade on the weekend.

Code
	 BarMode = BR_FLAT;
         


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1