Hi, what is the name of that colored line indicator?
Thanks.
Hi, what is the name of that colored line indicator?
HMA hull moving average MTFfxmoney wrote: Tue Mar 14, 2023 1:31 pm Hi, what is the name of that colored line indicator?
Thanks.
Thanks a lot!
Got you fam, idk how to edit settings code
g8, bro!!! Is there a possibility for our master coders to include a field to include the ATR number? or even the MTF? because in this case, we could create some statistical barriers to assess the price movement.
I post version here channel.... How are you using it? Can you tell us more about it?Greg82 wrote: Sat Mar 11, 2023 11:23 pm Hi
Can You help me and :
_ convert to MT4
_ add SMMA
_ add MTF
_ add button ON / OFF
These are simple averages and the code is open source.Code: Select all
indicator(title='Kanały średnich', overlay=true, timeframe="") short = input(33, "Wartość short") long = input(144, "Wartość long") srednia(src, length, type) => switch type "RMA" => ta.rma(src, length) "EMA" => ta.ema(src, length) "SMA" => ta.sma(src, length) "WMA" => ta.wma(src, length) "VWMA" => ta.vwma(src, length) metoda = input.string(title = "Metoda liczenia średniej", defval = "RMA", options=["RMA", "EMA", "SMA", "WMA", "VWMA"]) shortl = srednia(low, short, metoda) shorth = srednia(high, short, metoda) longl = srednia(low, long, metoda) longh = srednia(high, long, metoda) plot(shortl, color=color.new(color.aqua, 0), linewidth=1, title="Short low") // Low 33 plot(shorth, color=color.new(color.aqua, 0), linewidth=1, title="Short high") // High 33 plot(longl, color=color.new(color.red, 0), linewidth=1, title="Long low") // Low 144 plot(longh, color=color.new(color.red, 0), linewidth=1, title="Long high") // High 144
Thx and regards
Greg
new version with selectable price optionionone wrote: Mon Mar 13, 2023 7:47 pm SLSMA
Pretty neat zero lag moving average (Smoothed LSMA)
with default settings, it's pretty neat already :
but set one period to "2" and have pretty cool results :
Code: Select all
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © fikira
// ≠ ≈ ◊ ~ ∞ ‡ ∂ ƒ ¬ π º † • ∏ ª Ω ∑ ∆ · | \ ı ∫ √
//@version=4
study(title="[fikira] RDSI", shorttitle="RDSI", overlay=false)
// Relative Double Strength Index
lnW = input(3 , title="RDSI Length W" )
lnD = input(8 , title="RDSI Length D" )
ln12 = input(17 , title="RDSI Length 12h" )
ln4 = input(36 , title="RDSI Length 4h" )
ln1 = input(313 , title="RDSI Length 1h" )
choice = input("WMA", title="XMA", options=["SMA", "EMA", "WMA", "VWMA", "RMA", "HullMA"])
xma(source, len) =>
choice == "SMA" ? sma(source,len) :
choice == "EMA" ? ema(source,len) :
choice == "WMA" ? wma(source,len) :
choice == "VWMA" ? vwma(source,len) :
choice == "RMA" ? rma(source,len) :
wma(2 * wma(source, floor(len / 2)) - wma(source, len), round(sqrt(len)))
rs =
timeframe.period == "60" ? rsi(close, ln1 ) :
timeframe.period == "240" ? rsi(close, ln4 ) :
timeframe.period == "720" ? rsi(close, ln12) :
timeframe.period == "D" ? rsi(close, lnD ) :
timeframe.period == "W" ? rsi(close, lnW ) :
rsi(close, ln12)
Rup = 0.0
Rdn = 0.0
rsiDiff = rs - rs[1]
Rup := rsiDiff < 0 ? 0 : rsiDiff
Rdn := rsiDiff > 0 ? 0 : rsiDiff
//plot(Rup, color=color.lime, title="Rup")
//plot(Rdn, color=color.red , title="Rdn")
sUp =
timeframe.period == "240" ? xma(Rup, ln4 ) :
timeframe.period == "720" ? xma(Rup, ln12) : xma(Rup, lnD)
sDn =
timeframe.period == "240" ? -xma(Rdn, ln4 ) :
timeframe.period == "720" ? -xma(Rdn, ln12) : -xma(Rdn, lnD)
up = plot(sUp, color=sUp > sDn ? #00fff9 : color.new(#00fff9, 50), title="RDSI up" ) // #00fff9 #004d40
dn = plot(sDn, color=sUp > sDn ? color.new(#e40505, 50) : #e40505, title="RDSI down") // #880e4f #e40505
fill(up, dn, color=sUp > sDn ? #00fff9 : #e40505)
// up = change(rs)
// down = -change(rs)
Splits the RSI in 2 components, the rising and the falling part
- Rising: when RSI is higher than its previous value, this value is stored, otherwise 0.
- Falling: when RSI is lower than its previous value, this value is stored, otherwise 0.
A mean average (multiple settings possible) is calculated for both values, giving this indicator
Things to look for:
Rising > falling line = bullish
Rising < falling line = bearish
Spikes could possibly be a turning point.
Sign for strength, for example, when the falling line is falling and the rising is rising -> bullish
@mrtools Thank you very, very much for sparing your valuable time. Please add MTF !!!!
Mtf added.qwepoi123 wrote: Fri Mar 17, 2023 5:21 pm @mrtools Thank you very, very much for sparing your valuable time. Please add MTF !!!!