Type/to search

Estratégia de super tendência

supertrend
11
Follow
649
Followers

Em resposta às solicitações dos usuários da plataforma, a FMZ está trabalhando na compatibilidade com a biblioteca de linguagem Pine do TradingView e agora entrou em uma versão estável.

  • A sintaxe é totalmente compatível com a versão v5
  • Todos os indicadores da biblioteca ta são totalmente realizados
  • A biblioteca matemática está totalmente implementada
  • A biblioteca de strings está totalmente implementada
  • A biblioteca de array está totalmente implementada
  • Os parâmetros de entrada são reconhecidos automaticamente na interface
  • solicitação.suporte de segurança para heikinashi
  • Implementação da biblioteca de estratégias (suporta suporte total para stop loss/take profit/trailing take profit/ordens condicionais, etc.)
  • Compatível com plot/plotchar/plotshape/plotcandle/alert/alertcondition, etc.

Suporte completo para funções de linguagem é um esforço contínuo. Esta versão pública é lançada com antecedência para facilitar o teste do usuário.

No futuro, a FMZ continuará a aumentar e melhorar o suporte da biblioteca de funções para a linguagem Pine do TradingView. Se você tiver alguma necessidade, pode deixar uma mensagem para esta estratégia.

Nota: Se você encontrar uma variável indefinida, significa que essa propriedade ainda não é suportada. Você pode excluir a chamada relevante ou enviar uma ordem de serviço para entrar em contato com a equipe técnica para resolução.

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
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)