OPEN-SOURCE SCRIPT
Atualizado Backtest Adapter

This is a proof-of-concept Backtest Adapter that can be used with my recent publication "Machine Learning: Lorentzian Classification" located here:

This adapter is helpful because it enables interactive backtesting with TradingView's built-in "Strategy Tester" framework without the need to translate the logic from an "indicator" script to a "strategy" script.
To use this, one must have the "Machine Learning: Lorentzian Classification" script and this Backtest Adapter open simultaneously on the same chart. From there, simply change the "Source" setting of the Backtest Adapter to "Lorentzian Classification: Backtest Stream" to transfer the entry/exit signals stream to the Backtest Adapter.
For an example of how to implement your own backtest stream in your indicators, please refer to the "Backtesting" section in the source code of the "Machine Learning: Lorentzian Classification" script, which is shown below for convenience:


This adapter is helpful because it enables interactive backtesting with TradingView's built-in "Strategy Tester" framework without the need to translate the logic from an "indicator" script to a "strategy" script.
To use this, one must have the "Machine Learning: Lorentzian Classification" script and this Backtest Adapter open simultaneously on the same chart. From there, simply change the "Source" setting of the Backtest Adapter to "Lorentzian Classification: Backtest Stream" to transfer the entry/exit signals stream to the Backtest Adapter.
For an example of how to implement your own backtest stream in your indicators, please refer to the "Backtesting" section in the source code of the "Machine Learning: Lorentzian Classification" script, which is shown below for convenience:
Notas de Lançamento
Updated the Source of the Backtest Adapter to be set to "Lorentzian Classification: Backtest Stream"Notas de Lançamento
Removed hardcoded `transactionQty` to use default strategy quantity, simplifying order execution code.Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
🚀 User Guides: ai-edge.io/
❤️ Premium Indicators: patreon.com/jdehorty
🎥 Tutorials: youtu.be/AdINVvnJfX4
🤖 Discord: discord.com/invite/djXT5sAPfQ
⏩ LinkedIn: linkedin.com/in/justin-dehorty
❤️ Premium Indicators: patreon.com/jdehorty
🎥 Tutorials: youtu.be/AdINVvnJfX4
🤖 Discord: discord.com/invite/djXT5sAPfQ
⏩ LinkedIn: linkedin.com/in/justin-dehorty
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
🚀 User Guides: ai-edge.io/
❤️ Premium Indicators: patreon.com/jdehorty
🎥 Tutorials: youtu.be/AdINVvnJfX4
🤖 Discord: discord.com/invite/djXT5sAPfQ
⏩ LinkedIn: linkedin.com/in/justin-dehorty
❤️ Premium Indicators: patreon.com/jdehorty
🎥 Tutorials: youtu.be/AdINVvnJfX4
🤖 Discord: discord.com/invite/djXT5sAPfQ
⏩ LinkedIn: linkedin.com/in/justin-dehorty
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.