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.
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 !
2ok so here are the parts i'm not so sure about.
let's figure this out.
here is updated version 02
and here is a screenshot
it looks good
but here, before that screenshot it doesn't
thanks guys
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
it looks good
but here, before that screenshot it doesn't
thanks guys
Re: T-Step LSMA Development Thread -JOIN US !
10Heartly thanx for sharing..
Is this the final version?
It is non repainted?
Is this the final version?
It is non repainted?
Who is online
Users browsing this forum: Amazon [Bot], Jimmy, Majestic-12 [Bot], mrtools, rudiarius, sdsdzk, SijjiN, Xxcoincoin and 102 guests