Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit 7685b8e

Browse files
committed
add more inputs
1 parent 9341f75 commit 7685b8e

1 file changed

Lines changed: 43 additions & 4 deletions

File tree

links/common.pine.link

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ SMA40 = ta.sma(close, 40)
3232
plot(SMA40, title='SMA40')
3333
SMA50 = ta.sma(close, 50)
3434
plot(SMA50, title='SMA50')
35+
SMA60 = ta.sma(close, 60)
36+
plot(SMA60, title='SMA60')
3537
SMA75 = ta.sma(close, 75)
3638
plot(SMA75, title='SMA75')
3739
SMA100 = ta.sma(close, 100)
@@ -66,18 +68,26 @@ EMA12 = ta.ema(close, 12)
6668
plot(EMA12, title='EMA12')
6769
EMA13 = ta.ema(close, 13)
6870
plot(EMA13, title='EMA13')
71+
EMA15 = ta.ema(close, 15)
72+
plot(EMA15, title='EMA15')
6973
EMA20 = ta.ema(close, 20)
7074
plot(EMA20, title='EMA20')
7175
EMA21 = ta.ema(close, 21)
7276
plot(EMA21, title='EMA21')
7377
EMA25 = ta.ema(close, 25)
7478
plot(EMA25, title='EMA25')
79+
EMA26 = ta.ema(close, 26)
80+
plot(EMA26, title='EMA26')
7581
EMA30 = ta.ema(close, 30)
7682
plot(EMA30, title='EMA30')
83+
EMA34 = ta.ema(close, 34)
84+
plot(EMA34, title='EMA34')
7785
EMA40 = ta.ema(close, 40)
7886
plot(EMA40, title='EMA40')
7987
EMA50 = ta.ema(close, 50)
8088
plot(EMA50, title='EMA50')
89+
EMA55 = ta.ema(close, 55)
90+
plot(EMA55, title='EMA55')
8191
EMA75 = ta.ema(close, 75)
8292
plot(EMA75, title='EMA75')
8393
EMA100 = ta.ema(close, 100)
@@ -112,9 +122,15 @@ plot(RSI7[1], title='RSI7[1]')
112122
RSI9 = ta.rsi(close, 9)
113123
plot(RSI9, title='RSI9')
114124
plot(RSI9[1], title='RSI9[1]')
125+
RSI10 = ta.rsi(close, 10)
126+
plot(RSI10, title='RSI10')
127+
plot(RSI10[1], title='RSI10[1]')
115128
RSI21 = ta.rsi(close, 21)
116129
plot(RSI21, title='RSI21')
117130
plot(RSI21[1], title='RSI21[1]')
131+
RSI30 = ta.rsi(close, 30)
132+
plot(RSI30, title='RSI30')
133+
plot(RSI30[1], title='RSI30[1]')
118134

119135
// study(title="Average True Range", shorttitle="ATR", overlay=false)
120136
ATR = ta.rma(ta.tr(true), 14)
@@ -216,6 +232,22 @@ plot(dStoch_14_1_3, title='Stoch.D_14_1_3')
216232
plot(kStoch_14_1_3[1], title='Stoch.K[1]_14_1_3')
217233
plot(dStoch_14_1_3[1], title='Stoch.D[1]_14_1_3')
218234

235+
lengthStoch := 8
236+
smoothKStoch := 3
237+
smoothDStoch := 3
238+
kStoch_8_3_3 = ta.stoch(close, high, low, lengthStoch)
239+
kStoch := ta.sma(kStoch_8_3_3, smoothKStoch)
240+
dStoch := ta.sma(kStoch, smoothDStoch)
241+
plot(kStoch, title='Stoch8.K')
242+
plot(dStoch, title='Stoch8.D')
243+
plot(kStoch[1], title='Stoch8.K[1]')
244+
plot(dStoch[1], title='Stoch8.D[1]')
245+
dStoch_8_3_3 = ta.sma(kStoch_8_3_3, smoothDStoch)
246+
plot(kStoch_8_3_3, title='Stoch8.K_8_3_3')
247+
plot(dStoch_8_3_3, title='Stoch8.D_8_3_3')
248+
plot(kStoch_8_3_3[1], title='Stoch8.K[1]_8_3_3')
249+
plot(dStoch_8_3_3[1], title='Stoch8.D[1]_8_3_3')
250+
219251
// average volume
220252
AvgVol = ta.sma(volume, 10)
221253
plot(AvgVol, title='average_volume_10d_calc')
@@ -238,11 +270,18 @@ plot(donchUpper, title='DonchCh20.Upper')
238270
plot(math.avg(donchUpper, donchLower), title='DonchCh20.Middle')
239271

240272
// Hull Moving Average
241-
hullMALength = 9
242-
hullMA_n2ma = 2 * ta.wma(close, hullMALength / 2)
243-
hullMA_nma = ta.wma(close, hullMALength)
244-
HullMA9 = ta.wma(hullMA_n2ma - hullMA_nma, math.floor(math.sqrt(hullMALength)))
273+
hullMovingAverage(lenght) =>
274+
hullMA_n2ma = 2 * ta.wma(close, lenght / 2)
275+
hullMA_nma = ta.wma(close, lenght)
276+
HullMA = ta.wma(hullMA_n2ma - hullMA_nma, math.floor(math.sqrt(lenght)))
277+
HullMA
278+
279+
HullMA9 = hullMovingAverage(9)
245280
plot(HullMA9, title='HullMA9')
281+
HullMA20 = hullMovingAverage(20)
282+
plot(HullMA20, title='HullMA20')
283+
HullMA200 = hullMovingAverage(200)
284+
plot(HullMA200, title='HullMA200')
246285

247286
// Awesome Oscillator
248287
AO = ta.sma(hl2, 5) - ta.sma(hl2, 34)

0 commit comments

Comments
 (0)