Type/to search

Estrategia de Súper Tendencia

supertrend
12
Follow
659
Followers

Por solicitud de los usuarios de la plataforma, FMZ está compatibilizando la biblioteca de funciones del lenguaje Pine de TradingView, y ya se encuentra en una versión estable.

  • La sintaxis es completamente compatible hasta la versión v5.
  • Todos los indicadores de la biblioteca ta están completamente implementados.
  • La biblioteca math está completamente implementada.
  • La biblioteca string está completamente implementada.
  • La biblioteca array está completamente implementada.
  • Los parámetros de entrada input se reconocen automáticamente en la interfaz.
  • Soporte de request.security para heikinashi.
  • Implementación de la biblioteca strategy (soporte completo para stop loss, take profit, trailing stop, órdenes condicionales, etc.).
  • Compatibilidad con plot/plotchar/plotshape/plotcandle/alert/alertcondition, etc.

El soporte completo de las funciones del lenguaje es un proceso de esfuerzo continuo. Esta versión pública se adelanta para facilitar las pruebas de los usuarios.

Más adelante, FMZ seguirá mejorando y ampliando el soporte de la biblioteca de funciones del lenguaje Pine de TradingView. Si hay necesidades, pueden dejar un mensaje en esta estrategia.

Nota: Si se encuentra una variable no definida, significa que esta propiedad aún no es compatible. Puede eliminar la llamada correspondiente o enviar un ticket para contactar al técnico.

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)