TradingView
HPotter
10. Jun. 2020 09:56
Simple SMA Indicator
CME_MINI:ES1!
60
E-mini S&P 500 Futures
CME
Beschreibung
⋅
10. Jun. 2020 09:56
I the this part we are creating first script with indicator logic.
Simple Moving Average (SMA)
sma
Kommentare
ICEKI
⋅
10. Jun. 2020 23:37
The indicator name "Simple" I just love it. Sometime the easy and simple approach is always the best. Thank You so much HPotter for always create the indicators for us; appreciated <3
HPotter
⋅
12. Jun. 2020 08:46
@ICEKI
, You are welcome.
stockplan
⋅
10. Jun. 2020 12:51
THANKS
HPotter
⋅
10. Jun. 2020 16:04
@stockplan
, You are welcome.
czexodus
⋅
10. Jun. 2020 11:34
thx.
...... update Color
// This source code is subject to the terms of the Mozilla Public License 2.0 at
mozilla.org/MPL/2.0/
// © HPotter
// Simple SMA strategy
//
// WARNING:
// - For purpose educate only
//
@version
=4
study(title="Simple SMA Indicator", shorttitle="S SMA I", precision=6, overlay=true)
Resolution = input(title="Resolution", type=input.resolution, defval="D")
Source = input(title="Source", type=input.source, defval=close)
xSeries = security(syminfo.tickerid, Resolution, Source)
Length = input(title="Length", type=input.integer, defval=14, minval=2)
xSMA = sma(xSeries, Length)
plot(xSMA, title='SMA',color=close >= xSMA ? #4CAF50 : #FF5252 , linewidth=2, style=plot.style_line)
//plot(xSMA, title='SMA', color=#00ffaa, linewidth=2, style=plot.style_line)
HPotter
⋅
10. Jun. 2020 10:00
This script from stream
tradingview.com/streams/FYGStZButruT1_WkgMzyN/
Mehr