T-Step LSMA Development Thread -JOIN US !

1
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
These users thanked the author ionone for the post (total 4):
PG1, tejaspi, Sutatong, wojtek


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

2
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
These users thanked the author ionone for the post:
wojtek




Who is online

Users browsing this forum: Amazon [Bot], Jimmy, Majestic-12 [Bot], mrtools, rudiarius, sdsdzk, SijjiN, Xxcoincoin and 102 guests