MichaelWithersOne

Mikes 5 min HHLL Spotter

Attempts to find higher highs and lower lows in the 5 minute window. When the light blue graph line peaks , you should investigate selling , when the light blue graph line dips you should investigate buying.

This is good for identifying oversold and over bought positions
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
//@version=2
study("Mikes HHLL Spotter")
fastMA = ema(close, 3)
slowMA = sma(close, 5)


fastMA2 = ema(close, 2)
slowMA2 = sma(close, 4)

//diff = (fastMA - slowMA)  * 80000
diff = (fastMA2 - slowMA2)  * 80000

smoother = ema(diff,12)
plot(smoother, color=red)

//double EMA shit
xEMA1 = sma(diff, 12)
xEMA2 = sma(xEMA1, 12)
xEMA3 = sma(xEMA2, 12)
nRes = 3 * xEMA1 - 3 * xEMA2 + xEMA3

//plot(nRes, color=yellow)


//buysell =  (smoother < -7 ? -10 : smoother > 9 ? 10 : (smoother < 1 and smoother > -1) ? 10 :   0)

buy = -30
sell = 30
marketFlat = 0

buysell =  (diff < -30 ? buy : diff > 30 ? sell : marketFlat)

smoothbuysell =  (smoother < -15 ? buy : smoother > 15 ? sell : marketFlat)
smootherbuysell =  (nRes < -17 ? buy : nRes > 17 ? sell : marketFlat)

//plot(buysell, color=green)
plot(smoothbuysell, color=aqua)
barcolor(smoother < -7 ? red : smoother > 9 ? green : (smoother < 1 and smoother > -1) ? yellow :   blue)