OPEN-SOURCE SCRIPT
Atualizado

Closed Source Strategy Tester

395
Allows you to test an indicator that is closed source (you don't have access to the code). You will need to understand the exposed data elements of the indicator you are testing. This strategy is only looking for a buy, sell, exit long, or exit short to be signals that change from 0 to 1. The stop loss/take profit, if used, are expected to be price values.

I encourage you to copy this code and modify it to your needs for specific indicators.
Notas de Lançamento
Allows you to test an indicator that is closed source (you don't have access to the code). You will need to understand the exposed data elements of the indicator you are testing. This strategy is only looking for a buy, sell, exit long, or exit short to be signals that change from 0 to 1. The stop loss/take profit, if used, are expected to be price values.

I encourage you to copy this code and modify it to your needs for specific indicators.
Notas de Lançamento
Set useSession default to false.
Notas de Lançamento
Still trying to get the TP/SL to work right.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.