Re: MT4 Indicator requests and ideas

9214
ionone wrote: Fri Apr 17, 2020 11:11 pm

ok i attacked the code, but I don't got the perfect results.
Please MrTools can you take a look at my code ?
the problem is I don't know Pine Script that well so I made some mistakes certainly but where ?

I need your expertise MrTools

thanks a lot the indi looks awesome !

JeffT-Step LSMA 01.mq4
Looking at it sometimes I can figure out what they are doing in Pine Script easily other times not so easy, so no guarantees.
These users thanked the author mrtools for the post:
ionone


Re: MT4 Indicator requests and ideas

9216
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


Who is online

Users browsing this forum: eka2, felixo, friend4you, kvak, Proximic [Bot], ssscary and 82 guests