Tracha

Heiken Ashi Ichimoku

WELCOME!
I want to share with you with my Heiken Ashi Ichimoku system
.
Remember to fallow me to get more startegy, or signals. Click like if u enjoy it :)

IMPORTANT:
System works with Heiken Ashi bars!!

The signals.
SELL SIGNAL:
1. When price is below:
a) cloud
b) blue line
2. When last bar was green, and now turn to red
3. When heiken ashi bar is close to SMA55, but its below SMA55

BUY SIGNAL:
1. When price is above:
a) cloud
b) blue line
2. When last bar was red, and now turn to green
3. When heiken ashi bar is close to SMA55, but its above SMA55
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 đồ?
study(title="Ichimoku Cloud", shorttitle="Ichimoku", overlay=true)

conversionPeriods = input(9, minval=1),
basePeriods = input(26, minval=1)
laggingSpan2Periods = input(52, minval=1),
displacement = basePeriods

donchian(len) => avg(lowest(len), highest(len))

conversionLine = donchian(conversionPeriods)
baseLine = donchian(basePeriods)
leadLine1 = avg(conversionLine, baseLine)
leadLine2 = donchian(laggingSpan2Periods)

plot(conversionLine, color=blue, title="Conversion Line")
plot(baseLine, color=red, title="Base Line")


p1 = plot(leadLine1, offset = displacement, color=green,
    title="Lead 1")
p2 = plot(leadLine2, offset = displacement, color=red, 
    title="Lead 2")
fill(p1, p2)

plot(sma(close,55), color=yellow, title='Simple Moving Average')
distance = abs(open - sma(close,55))

signal1 = close < conversionLine
signal2 = conversionLine > baseLine
signal3 = close < leadLine1 and close < leadLine2
signal4 = close < sma(close,55)
signal5 = distance < abs(highest(20) - lowest(20))/3
signal6 = open[1]<close[1]

SELLSIGNAL = signal1 and signal2 and signal3 and signal4 and signal5 and signal6
barcolor(SELLSIGNAL ? yellow:na)

signal1b = close > conversionLine
signal2b = conversionLine < baseLine
signal3b = close > leadLine1 and close > leadLine2
signal4b = close > sma(close,55)
signal5b = distance < abs(highest(20) - lowest(20))/3
signal6b = open[1]>close[1]

BUYSIGNAL = signal1b and signal2b and signal3b and signal4b and signal5b and signal6b
barcolor(BUYSIGNAL ? blue:na)