patrickestarian

Patrick's Buy/Sell Histogram

Simply look for a 12 point long bar and that's a perfect time to buy the security
從常用腳本中移除 新增至常用腳本
study(title="My Index", shorttitle="Patrick's Buy/Sell Histogram", overlay=false)
len1 = input(title="EMA Len 1", type=integer, defval=16, minval=1)
len2 = input(title="EMA Len 2", type=integer, defval=4, minval=1)
len3 = input(title="Lowest Trailer Len", type=integer, defval=3, minval=1)

typical = (low + high + open + close + close) / 5
hline(0, color=gray, linewidth=1, linestyle=line, title="Zero Line")
ema1 = ema(typical, len1)
ema2 = ema(typical, len2)
diff = 100*(ema2-ema1)/ema2
plot(diff, color=blue, title="Diff Curve")
lwst = lowest(diff[1], len3)
lwstma = sma(lwst, 3)
plot(lwstma, color=red, title="Lowest Trailer")

trnd1 = iff(ema1>ema1[1]*1.001, 2, 0)
trnd2 = iff(ema2>ema2[1]*1.001, 1, 0)
trnd3 = iff(diff>=lwstma, 2, 0)
trnd4 = iff(lowest(diff[1], len2)<highest(lwstma[1], len2), 2, 0)
trnd5 = iff(diff>diff[1], 2, 0)
trnd6 = iff(low[1]>ema1[1] and low<ema1, 0, 1)
trnd7 = iff(diff<0, 1, 0)
uplo=trnd1+trnd2+trnd3+trnd4+trnd5+trnd6+trnd7
col0=iff(uplo<12, #009900, #007A00)
col1=iff(uplo<10, #4DB84D, col0)
col2=iff(uplo<8, #ADD633, col1)
col3=iff(uplo<7, #99B280, col2)
col4=iff(uplo<5, #E0A366, col3)
col5=iff(uplo<3, #FF3333, col4)
plot(uplo, color=col5, style=histogram, linewidth=4, title="Histogram")

評論

首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出