Page 34 of 44

Re: Supertrend indicators for MT4

Posted: Sun Nov 13, 2022 8:36 pm
by vvFish
kvak wrote: Sun Nov 13, 2022 11:37 am Supertrend in mountains histogram....
;)

Re: Supertrend indicators for MT4

Posted: Sun Nov 13, 2022 9:05 pm
by josi
kvak wrote: Sun Nov 13, 2022 11:37 am Supertrend in mountains histogram....
Nice!

Re: Supertrend indicators for MT4

Posted: Sun Nov 13, 2022 9:16 pm
by ChuChu Rocket
kvak wrote: Sun Nov 13, 2022 11:37 am Supertrend in mountains histogram....
What a good indicator Kvak thank you man. Does a better job at forecasting ranging markets than a lot of other codes too! 🙌

I wish I had something like this when I first started trading.

Re: Supertrend indicators for MT4

Posted: Mon Nov 14, 2022 11:02 pm
by trader2000
could you suggest setting for one minute ft , thanks

Re: Supertrend indicators for MT4

Posted: Wed Nov 16, 2022 6:55 pm
by Coolcrow
kvak wrote: Sun Nov 13, 2022 11:37 am Supertrend in mountains histogram....
Hi KVAK.
Is it possible to share your template and other indicators used in this? I'm having a bit of a problem loading single ex4 files because of having too many indicators on my folder and sorting them out to delete the ones that I don't need would take like half a day.

Re: Supertrend indicators for MT4

Posted: Wed Nov 16, 2022 7:01 pm
by kvak
Coolcrow wrote: Wed Nov 16, 2022 6:55 pm Hi KVAK.
Is it possible to share your template and other indicators used in this? I'm having a bit of a problem loading single ex4 files because of having too many indicators on my folder and sorting them out to delete the ones that I don't need would take like half a day.
Hello, Iam not at home, but on this picture is on chart and subwindow (mountains) histo of supertrend default settings and symbol changer. but if you want it, I post it, when I will back....

Re: Supertrend indicators for MT4

Posted: Fri Nov 18, 2022 11:12 am
by kvak
Coolcrow wrote: Wed Nov 16, 2022 6:55 pm Hi KVAK.
Is it possible to share your template and other indicators used in this? I'm having a bit of a problem loading single ex4 files because of having too many indicators on my folder and sorting them out to delete the ones that I don't need would take like half a day.
Here is template.
All is default settings.

Re: Supertrend indicators for MT4

Posted: Mon Dec 12, 2022 11:44 pm
by etrebor
kvak wrote: Mon Nov 07, 2022 9:24 am Requested file...
Histo version supertrend
Image
Hi Kvak. Do you have NRP version of this indy, because it repaints.
Thank in advance!

Re: Supertrend indicators for MT4

Posted: Tue Dec 13, 2022 12:12 am
by kvak
etrebor wrote: Mon Dec 12, 2022 11:44 pm Hi Kvak. Do you have NRP version of this indy, because it repaints.
Thank in advance!
Hmm, where does it repaint? What is your settings?

Re: Supertrend indicators for MT4

Posted: Tue Dec 20, 2022 3:12 am
by yoake
Supertrend Filter by alexgrover (Alex Grover)
https://www.tradingview.com/script/2raJ ... nd-Filter/

I am in the process of converting the Supertrend Filter (Using recursion ver) pinescript to MQL4.
But there is a part I don't understand.

If anyone is familiar with PineScript, could you give me some advice?
What is this expression " Tsl[0] " translated into MQL4?
Or can you give me a simple way to find out the value of " Tsl[0] "?

(Does "Tsl[0]" means current Tsl value?? But it has not been calculated. )

Thank you in advance.

I may have made a fundamental mistake.
I will re-upload Attached file once the problem is resolved. (2022/12/21)

Code: Select all

//@version=2
study("Supertrend Filter",overlay=true)
//
Pd=input(200)
Factor=input(0.9)
//
P = pow(Pd,2)
a = 2/(P+1)
d = abs(close - nz(Tsl[0],hl2))
t = a*d+(1-a)*nz(t[1],d)
src = Factor*nz(Tsl[0],hl2) + (1-Factor)*close
Up=nz(Tsl[0],hl2)-t
Dn=nz(Tsl[0],hl2)+t
//
TrendUp=src[1]>TrendUp[1]? max(Up,TrendUp[1]) : Up
TrendDown=src[1]<TrendDown[1]? min(Dn,TrendDown[1]) : Dn
//
Trend = src > TrendDown[1] ? 1: src< TrendUp[1]? -1: nz(Trend[1],1)
Tsl = Trend==1? TrendDown : TrendUp
css = Tsl > Tsl[1] ? #0080FF : Tsl < Tsl[1] ? #FF0040 : na
plot(Tsl,color=fixnan(css),transp=0)