Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOVA-678: scanner_data: fix epsilon calculation in the pine #821

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ndikanskiy
Copy link

No description provided.

@ndikanskiy ndikanskiy force-pushed the nova-678-fix-epsilon-calculation-in-the-pine branch from ff03088 to 9aa8771 Compare December 12, 2024 14:13
@@ -76,7 +76,8 @@ plot(close24hChangeAbs, title = "24h_close_change_abs", style = plot.style_colum

// 24h close change
float close24hChange = na
if na(close24hChangeAbs) or close24hPrev == 0 or (close24hPrev < 0 and close > 0)
float close24hPrevToCompare = close24hPrev * 1e+36 // for comparing very small numbers since pine has limited precision (1e-10)
if na(close24hChangeAbs) or close24hPrevToCompare != 0 or (close24hPrevToCompare < 0 and close > 0)
Copy link
Contributor

@stimofeev-tv stimofeev-tv Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

было ==, стало !=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants