question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

d = pd.DataFrame(np.array([1,2,3,4,5,6,7,8,9,10]))
d.ta.zlma(close=d[0], length= 5, append=True)
print(d)

output:

    0  ZL_EMA_5
0   1       NaN
1   2       NaN
2   3       NaN
3   4       NaN
4   5      **_6.00_**
5   6      6.67
6   7      7.44
7   8      8.30
8   9      9.20
9  10     10.13
  • the input series has the first 5 values clearly below 6.0
  • ZLMA somehow calculates that the first visible value (for the input of 5.0) is 6.0
  • the calculation of the corrected input (using an offset) is not returning correct values for early data.
  • ZLMA uses EMA by default, making this bug (nearly) invisible after 20+ bars are calculated.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mihakraljcommented, Apr 15, 2022

doing manual calculation on paper. this is actually correct calculation - ZLEMA overshoots on purpose in the early part of the calc…

0reactions
twopirllccommented, Apr 23, 2022

No worries.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "Failed to create work order to Acquisition Department ...
When clicking "Add Physical Item" under Resources and saving - an error is seen: "Failed to create work order to Acquisition Department." This ......
Read more >
Upgrading Firefox fails. lzma error: compressed data is corrupt
I have run into the same issue (lzma error: compressed data is corrupt) but with the wget command. Is there a fix for...
Read more >
Alma - PCGamingWiki PCGW - bugs, fixes, crashes, mods ...
Alma. From PCGamingWiki, the wiki about fixing PC games. This page is a stub: it lacks content and/or basic article components.
Read more >
20 Best Bed Bug Treatments in Alma MI| Angi
Treating Bed Bugs in Alma - See ratings and read real reviews about companies in Alma that Treat Bed Bugs.
Read more >
full of bugs and no customer... - Alma Tulum Hotel Boutique ...
Alma Tulum Hotel Boutique and Beach Club: Horrible - full of bugs and no customer service - See 220 traveler reviews, 379 candid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found