首页 > 解决方案 > 如何在 TradingView PineScript 中为特定日期时间添加箭头

问题描述

我是 TradingView PineScript 的新手。我正在 TradingView 中的 PineScript 中尝试以下脚本来绘制特定日期时间的箭头。但它会在 TradingView 中的所有蜡烛上绘制箭头。如何仅获取特定日期/时间的箭头,而不是所有蜡烛。

study("plotarrow example", overlay=true)

plotarrow(timestamp(2021, 08, 05, 09, 30, 00), colorup=color.fuchsia, colordown=color.yellow, maxheight=30, transp=0)

标签: plottradingview-api

解决方案


推荐阅读