Công cụ hiển thị
- Visualises one measurable chart condition.
- Inputs can be changed for your own test.
- The full Pine Script code is visible.
Compares EMA bias across three timeframes without issuing entries.
//@version=6
indicator("Chartara — Multi-Timeframe Bias", overlay=true)
length=input.int(50,"EMA length",minval=1)
tf1=input.timeframe("15","Timeframe 1")
tf2=input.timeframe("60","Timeframe 2")
tf3=input.timeframe("240","Timeframe 3")
e1=request.security(syminfo.tickerid,tf1,ta.ema(close,length))
e2=request.security(syminfo.tickerid,tf2,ta.ema(close,length))
e3=request.security(syminfo.tickerid,tf3,ta.ema(close,length))
bull=close>e1 and close>e2 and close>e3
bear=close<e1 and close<e2 and close<e3
plot(e1,"EMA TF1",color=color.new(color.aqua,0))
plot(e2,"EMA TF2",color=color.new(color.blue,15))
plot(e3,"EMA TF3",color=color.new(color.purple,20),linewidth=2)
bgcolor(bull?color.new(color.green,90):bear?color.new(color.red,90):na)
Compare the environment this tool depends on before opening an account.
Nội dung chỉ nhằm mục đích giáo dục và cung cấp thông tin chung, không phải tư vấn đầu tư, tài chính, pháp lý hoặc thuế. Forex và CFD có rủi ro cao và có thể làm mất toàn bộ số tiền. Hãy tự kiểm tra pháp luật, giấy phép, điều khoản và mức độ phù hợp trước khi quyết định. Chartara không bảo đảm tính chính xác, đầy đủ hoặc kết quả.