Meta Idea

Meta Idea

pinescript
//@version=5
indicator("Sinyal Buy/Sell Forex", overlay=true)

// Parameter
length = input(14, title="Panjang MA")
src = close
ma = ta.sma(src, length)

// Kondisi Buy
buyCondition = ta.crossover(src, ma)

// Kondisi Sell
sellCondition = ta.crossunder(src, ma)

// Plot Sinyal
plotshape(series=buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="Buy")
plotshape(series=sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="Sell")

// Alert
alertcondition(buyCondition, title="Buy Signal", message="Buy Signal")
alertcondition(sellCondition, title="Sell Signal", message="Sell Signal")
```

Read More

Share:

Latest News