プラットフォームユーザーの要望に応えて、FMZ は TradingView の Pine 言語ライブラリとの互換性に取り組んでおり、現在は安定バージョンになっています。
言語機能の完全なサポートは継続的な取り組みです。このパブリック バージョンは、ユーザー テストを容易にするために事前にリリースされています。
今後、FMZ は TradingView の Pine 言語の関数ライブラリ サポートを継続的に増やし、改善していきます。ご要望があれば、この戦略にメッセージを残してください。
注: 未定義の変数が発生した場合、このプロパティはまだサポートされていないことを意味します。関連する通話を削除するか、作業指示書を送信して技術スタッフに連絡して解決してください。

/*backtest
start: 2017-08-17 08:00:00
end: 2025-07-16 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"BTC_USDT"}]
*/
strategy("supertrend", overlay=true, default_qty_type = strategy.percent_of_equity, default_qty_value = 50)
[supertrend, direction] = ta.supertrend(input(5, "factor"), input.int(10, "atrPeriod"))
plot(direction < 0 ? supertrend : na, "Up direction", color = color.green, style=plot.style_linebr)
plot(direction > 0 ? supertrend : na, "Down direction", color = color.red, style=plot.style_linebr)
if direction < 0
if supertrend > supertrend[2]
strategy.entry("entry long", strategy.long)
else if strategy.position_size < 0
strategy.close_all()
else if direction > 0
if supertrend < supertrend[3]
strategy.entry("entry short", strategy.short)
else if strategy.position_size > 0
strategy.close_all()