Skip to content

Tending #15

Description

@jainpulkit357-source

//@Version=6
indicator("WT7 Style Trend Dashboard", overlay=true)

// Trend Function
getTrend(tf) =>
request.security(syminfo.tickerid, tf, ta.ema(close, 8) > ta.ema(close, 33))

// Timeframes
t1m = getTrend("1")
t5m = getTrend("5")
t15m = getTrend("15")
t30m = getTrend("30")
t1h = getTrend("60")
t4h = getTrend("240")
t12h = getTrend("720")
t1d = getTrend("D")

// Table
var table panel = table.new(position.top_right, 2, 9)

if barstate.islast
table.cell(panel, 0, 0, "Timeframe")
table.cell(panel, 1, 0, "Trend")

table.cell(panel, 0, 1, "1M")
table.cell(panel, 1, 1, t1m ? "Bullish" : "Bearish")

table.cell(panel, 0, 2, "5M")
table.cell(panel, 1, 2, t5m ? "Bullish" : "Bearish")

table.cell(panel, 0, 3, "15M")
table.cell(panel, 1, 3, t15m ? "Bullish" : "Bearish")

table.cell(panel, 0, 4, "30M")
table.cell(panel, 1, 4, t30m ? "Bullish" : "Bearish")

table.cell(panel, 0, 5, "1H")
table.cell(panel, 1, 5, t1h ? "Bullish" : "Bearish")

table.cell(panel, 0, 6, "4H")
table.cell(panel, 1, 6, t4h ? "Bullish" : "Bearish")

table.cell(panel, 0, 7, "12H")
table.cell(panel, 1, 7, t12h ? "Bullish" : "Bearish")

table.cell(panel, 0, 8, "1D")
table.cell(panel, 1, 8, t1d ? "Bullish" : "Bearish")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions