mrtools wrote: Sat Apr 18, 2020 3:41 am
Looking at it sometimes I can figure out what they are doing in Pine Script easily other times not so easy, so no guarantees.
ok please do your best.
I think my code is 95% correct but one little mistake and the whole indi is wrong.
the pine script language reference manual can help though
https://www.tradingview.com/pine-script-reference/
also let's work together on this?
I know the correlation and the standart dev function work, because i've tested them, even if not optimized (for clarity)
the rest i'm not sure.
I have a doubt also at line 196
n = cum(1)-1
cum(1) should be the number of bars from the bar 1 (older bars), but this will make the MA dependent on the number of bars, so I think we need to replace it with an extern variable
Jeff