Created
January 31, 2023 00:09
-
-
Save tiagosiebler/d25b297cd68b7560a631e7f66bc40905 to your computer and use it in GitHub Desktop.
a = SUM(CLOSE>REF(CLOSE,1),n)/n*100;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function psychologicalLine(candles, n) { | |
let sum = 0; | |
for (let i = 0; i < n; i++) { | |
if (candles[i].close > candles[i - 1].close) { | |
sum++; | |
} | |
} | |
return sum / n * 100; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment