Page 1 of 2

T-Step LSMA Development Thread -JOIN US !

Posted: Sat Apr 18, 2020 7:24 pm
by ionone
Hi

I'm creating t his thread to discuss about the dev of the indicator

the original indicator has been created in TradingView with Pine Script language.
Image
https://www.tradingview.com/script/aMag ... Step-LSMA/

i tried to convert the indi to MT4, but it's not good.

i have some doubts about some parts of the code

let's dicuss about this dev here and hopefully come with the perfect code !
Everybody is welcome to join the dev of this indicator. In the end the full code will be released ot the public !
hre is the link to PineScript documentation
https://www.tradingview.com/pine-script ... e/#fun_cum

Jeff

Re: T-Step LSMA Development Thread -JOIN US !

Posted: Sat Apr 18, 2020 7:31 pm
by ionone
ok so here are the parts i'm not so sure about.
let's figure this out.

Code: Select all

this part:
 //n = cum(1)-1
 int n = bars -2;
 cum(1) computes the number of bars since bar 1, but as I said in a previous message, this means the period used will be dependent on the number of bars in the chart, which is not quite good. so i'll replace this with a setting parameter. I think you agree ?

this part:
//a = cum(abs(src - nz(b[1],src)))/n*(1+er)
is it ..... / (n*(1+er)) or (.... / n)*(1+er) ? i'm not sure about Pine Script priorities

the rest should be good i think


here is updated version 02 and here is a screenshot
it looks good

but here, before that screenshot it doesn't
thanks guys

Re: T-Step LSMA Development Thread -JOIN US !

Posted: Sat Apr 18, 2020 8:48 pm
by pacois
Hi, can't you adapt this?Grazie.

Re: T-Step LSMA Development Thread -JOIN US !

Posted: Sat Apr 18, 2020 8:54 pm
by ionone
pacois wrote: Sat Apr 18, 2020 8:48 pm Hi, can't you adapt this?Grazie.
hi
what do you mean adapt this ?

Re: T-Step LSMA Development Thread -JOIN US !

Posted: Sat Apr 18, 2020 9:06 pm
by pacois
ionone wrote: Sat Apr 18, 2020 8:54 pm
hi
what do you mean adapt this ?
Adapt the code to make it similar T-Step LSMA .

Re: T-Step LSMA Development Thread -JOIN US !

Posted: Sat Apr 18, 2020 11:47 pm
by vvFish
pacois wrote: Sat Apr 18, 2020 9:06 pm

Adapt the code to make it similar T-Step LSMA .
;)

Re: T-Step LSMA Development Thread -JOIN US !

Posted: Sun Apr 19, 2020 2:42 am
by mario_lima
Great idea Pacois

Re: T-Step LSMA Development Thread -JOIN US !

Posted: Sun Apr 19, 2020 3:23 am
by Daim2574
pacois wrote: Sat Apr 18, 2020 8:48 pm Hi, can't you adapt this?Grazie.
Looks nice :)

Re: T-Step LSMA Development Thread -JOIN US !

Posted: Sun Apr 19, 2020 4:24 am
by hercules98
vvFish wrote: Sat Apr 18, 2020 11:47 pm
;)
send me this indicator pls

Re: T-Step LSMA Development Thread -JOIN US !

Posted: Sun Apr 19, 2020 5:35 am
by tejaspi
Heartly thanx for sharing..
Is this the final version?
It is non repainted?