Type/to search

SuperTrend-Strategie

supertrend
12
Follow
656
Followers

Auf Wunsch der Plattformnutzer arbeitet FMZ daran, mit der Pine-Sprachbibliothek von TradingView kompatibel zu werden. Nun ist eine stabile Version verfügbar.

  • Die Syntax ist vollständig kompatibel bis Version v5.
  • Alle Indikatoren der ta-Bibliothek sind vollständig implementiert.
  • Die math-Bibliothek ist vollständig implementiert.
  • Die string-Bibliothek ist vollständig implementiert.
  • Die array-Bibliothek ist vollständig implementiert.
  • Eingabeparameter von input werden automatisch in der Benutzeroberfläche erkannt.
  • request.security unterstützt Heikin-Ashi.
  • Die strategy-Bibliothek ist implementiert (mit vollständiger Unterstützung für Stop-Loss, Take-Profit, Trailing-Stop, Conditional-Orders usw.).
  • plot/plotchar/plotshape/plotcandle/alert/alertcondition sind kompatibel.

Die vollständige Unterstützung der Sprachfunktionen ist ein kontinuierlicher Prozess. Diese öffentliche Version wird vorab veröffentlicht, um den Nutzern das Testen zu erleichtern.

In Zukunft wird FMZ die Unterstützung für die Pine-Sprachbibliothek von TradingView kontinuierlich erweitern und verbessern. Bei Bedarf können Sie in dieser Strategie einen Kommentar hinterlassen.

Hinweis: Sollte eine Variable nicht definiert sein und daher noch nicht unterstützt werden, können Sie den entsprechenden Aufruf entfernen oder ein Ticket erstellen, um technischen Support zu kontaktieren.

img

Source
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"))
Strategy parameters
Strategy parameters
factor (Optional)
atrPeriod (Optional)
Comment
All comments (14)

    支持同币种,不同交易所比对同步吗?例如exchange[0].Sell ? exchaneg[1].Sell : na

    4 years ago

    https://www.fmz.com/doc/9315#request.security 可以比对K线,深度没法比对

    4 years ago

    pine脚本能实现微信通知功能吗

    4 years ago

    当然可以 runtime.log 后面加 @ 不过现在只能通知到app了, 微信通知已经下了

    4 years ago

    python 在发明者学的 PINE 暂时没太看懂 他们都说PINE比PYTHON简单 , 呜呜 多币种的超级趋势 好写吗 我想以多币种的超级趋势为基础 ,添加自己脑袋里的东西 不知道怎么做

    4 years ago

    Pine不支持多币种,一个策略只支持一个币种

    4 years ago

    请问 这个策略如何转换成多币种的

    4 years ago

    能出个Pine语言的教程么

    4 years ago

    正在录制,目前可以先看文档 https://www.fmz.com/doc/9315

    4 years ago

    牛牛牛

    4 years ago

    这个下单数量也是通过strategy.entry的qty参数调整吗?

    4 years ago

    是的,默认不指定的话就是界面选项里的参数

    4 years ago

    发明者越来越强大了

    4 years ago

    牛逼v5,这策略可以直接上实盘了

    4 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)