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

11
ionone wrote: Sat Apr 18, 2020 7:24 pm 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 !

T-Step LSMA 01.mq4

hre is the link to PineScript documentation
https://www.tradingview.com/pine-script ... e/#fun_cum

Jeff
Still working on it in my spare time trying to figure out exactly what was done.
These users thanked the author mrtools for the post (total 5):
Sutatong, ionone, wojtek, Jimmy, Thangarasu




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

17
wojtek wrote: Mon Apr 20, 2020 9:23 pm Ionone, could you please also make it two-colour as on the original picture?
yeah i'll make it two colours but I have to make it working first.

What is strange is I set the indicator in TradingView and the curve isn't at all like the original screenshot ! I tried changing the settings but no luck.

strange

EDIT : ok I switched to EURUSD and it looks more like a normal step. I think the code isn't good
These users thanked the author ionone for the post:
wojtek

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

18
ok here is the fixed version

the indi seems to behave differently according to the price so I don't guarantee it willl work perfectly, but I did my best

you can set a distance between bottoms/peaks for the color to change.

Apart from that it's the same as in TV
Jeff
These users thanked the author ionone for the post (total 8):
rudiarius, jaayazan, wojtek, Jimmy, Sutatong, Thangarasu, Chickenspicy, RodrigoRT7


Who is online

Users browsing this forum: Antonov, Efegocmen, Energybias, jjventural, Nanyuki, ssscary and 105 guests