
Kenny.eth|Mar 04, 2025 03:04
市场被CEX无情砸下来
市场又被TRUMP发力顶上去
每次低点,就是滚仓的好时节
为了让滚仓连续跑下去,TV里写了个简单的alert,比如,价格每涨1,就触发webhook通过第三方平台调用API让CEX自动加仓。
//====
//@version=5
indicator("Price Increasing Alert", overlay=true)
steps = input.float(defval = 1, title = "Steps", minval = 0.0000001, maxval = 10000, step = 0.1)
var float alertPrice = na
if barstate.islast
if na(alertPrice)
alertPrice := close
increaseAlert = bar_index > 0 and close >= alertPrice + steps
if increaseAlert
alertPrice := close
alertcondition(increaseAlert, title="Price increased", message="Price increased by Steps")
plot(alertPrice, title="Alert Price")
plotshape(increaseAlert, style=shape.triangleup, location=location.belowbar, color=http://color.green, size=size.small)
//====
Share To
Timeline
HotFlash
APP
X
Telegram
CopyLink