Re: Moving Average indicators for MT4
Posted: Wed Dec 18, 2024 8:52 am
Soo many thanks ..... its exactly same.....
Soo many thanks ..... its exactly same.....
MeNiazi wrote: Wed Dec 18, 2024 5:32 am Need the attached coral indicator in Mt4......found a lot but could not find the same....
Very nice standalone version of the Coral for MT4 with user-friendly options, thank you Mrtools!
30
(30.5
if the indicator allows fractional inputs for T3)0.4
Have this one. Think a version was already posted somewhere but couldn't find it.vinuthbn84 wrote: Fri Dec 20, 2024 8:38 pm Please someone help me to find smoothed/double smoothed rolling moving average indicator..
I am not able to find one..![]()
Hello Brotherkvak wrote: Thu Jul 11, 2024 8:40 am Regularized Moving Averages Channel with AHFT MTF + Additional RMA's
Hello, here is updated version with alerts, AHTF.
Also is updated list of regularized averages for testing.
PS: For the subwindow version, please see here: Regularized Moving Averages Channel (Subwindow).
Hello.
Got it Bro.... it meet my need....thank you for Ur Kindness....kvak wrote: Sat Dec 21, 2024 7:12 am Hello.
Added arrows and also button, as previous request.
If you want version without button, I will share it...
Code: Select all
//@version=5
indicator("Hull Moving Average", overlay=true, shorttitle="HMA")
// Input parameters
timeFrame = input.timeframe("", title="Time Frame")
HMAPeriod = input.int(28, minval=2, title="HMA Period")
HMASpeed = input.float(3.0, title="HMA Speed")
colorUp = input.color(color.blue, title="Uptrend Color")
colorDown = input.color(color.red, title="Downtrend Color")
linesVisible = input.bool(false, title="Show Trend Lines")
linesNumber = input.int(5, title="Number of Trend Lines", minval=1)
// Calculations
HalfPeriod = math.floor(HMAPeriod / HMASpeed)
HullPeriod = math.floor(math.sqrt(HMAPeriod))
// Weighted moving average calculation
wma(src, length) =>
ta.wma(src, length)
// HMA Calculation
hma_work = 2 * wma(close, HalfPeriod) - wma(close, HMAPeriod)
hma = wma(hma_work, HullPeriod)
// Trend detection
trend = ta.valuewhen(hma > hma[1], 1, 0) - ta.valuewhen(hma < hma[1], 1, 0)
// Plot HMA
plot(hma, color=(hma > hma[1] ? colorUp : colorDown), linewidth=2, title="HMA")
// Optional: Draw trend lines
if linesVisible
for i = 1 to linesNumber
if na(trend[i])
break
else if trend[i] != trend[i - 1]
line.new(x1=bar_index[i], y1=hma[i], x2=bar_index[i - 1], y2=hma[i - 1],
color=(trend[i] > 0 ? colorUp : colorDown), width=1)
// Alerts
alertcondition(trend > 0 and trend[1] <= 0, title="HMA Uptrend", message="HMA trend changed to up.")
alertcondition(trend < 0 and trend[1] >= 0, title="HMA Downtrend", message="HMA trend changed to down.")
I Like this indi, so I did try make it better with AI. Just wanted some bands around it, working with AI was just too difficult, so....but it is different now.ionone wrote: Mon Jun 28, 2021 4:50 pm Here is another indicator converted from ProRealTime
Low Frequency Filter Moving Average (LFFMA)
https://www.prorealcode.com/prorealtime ... age-lffma/
instead of putting it in a separate window, I put it on chart, because on chart displays allow more possibilities
Jeff