joinfree

GreenRedSignal-EURUSD

/ GreenRedSignal-EURUSD

// Buy Long when you see a Green colour bar

// Sell Short when you see a Red colour bar

// BollingerBands added for reference
Remove from Favorite Scripts Add to Favorite Scripts
study(title="GreenRedSignal-EURUSD", shorttitle="BuySellSignal-EURUSD", overlay=true)
// Script created by JoinFree
// BollingerBands added for reference
// Buy Long when you see a Green colour bar 
// Sell Short when you see a Red colour bar
mysignal = ema(close, 12) - ema(close, 26)
barcolor(mysignal[0] > mysignal[1] ? green : red)
source = close
length = input(20, minval=1), mult = input(2.0, minval=0.001, maxval=50)
basis = sma(source, length)
dev = mult * stdev(source, length)
upper = basis + dev
lower = basis - dev
plot(basis, color=red)
p1 = plot(upper, color=blue)
p2 = plot(lower, color=blue)
fill(p1, p2)

Related Ideas

joinfree
2 years ago
RedSignal-EURUSD

// Buy Long when you see a Green colour bar

// Sell Short when you see a Red colour bar

// BollingerBands added for reference
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out