Type/to search

Stratégie Supertrend

supertrend
12
Follow
659
Followers

À la demande des utilisateurs de la plateforme, FMZ est en train de rendre compatible la bibliothèque de fonctions Pine Language de TradingView, et est désormais disponible en version stable.

  • Syntaxe entièrement compatible jusqu'à la version v5
  • Tous les indicateurs de la bibliothèque ta entièrement implémentés
  • Bibliothèque math entièrement implémentée
  • Bibliothèque string entièrement implémentée
  • Bibliothèque array entièrement implémentée
  • Paramètres d'entrée input automatiquement reconnus dans l'interface
  • Prise en charge de heikinashi dans request.security
  • Bibliothèque strategy implémentée (avec prise en charge complète des stop-loss, take-profit, trailing stop, ordres conditionnels, etc.)
  • Compatibilité avec plot/plotchar/plotshape/plotcandle/alert/alertcondition, etc.

Le support complet des fonctions du langage est un processus continu. Cette version publique est publiée à l'avance pour faciliter les tests des utilisateurs.

FMZ continuera par la suite à enrichir et améliorer le support de la bibliothèque de fonctions Pine Language de TradingView. Vous pouvez laisser un message dans cette stratégie pour toute demande.

Remarque : si une variable n'est pas définie, cela signifie que cette propriété n'est pas encore prise en charge. Vous pouvez supprimer l'appel concerné, ou soumettre un ticket pour contacter le service technique.

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)