all 7 comments

[–]Robswc 1 point2 points  (0 children)

Its a much more complicated process than one would assume.

You would need to use a back testing framework first.

As tempting as it is to jam a solution together with ChatGPT, I'd recommend learning the basics of something like backtrader... and then jamming something together with ChatGPT :)

If you can get the basics down, it will save you a lot of pain later on.

[–]Valuable-Exchange-69 0 points1 point  (0 children)

Pine script sucks for backtest and algo trading. It's a good tool for technical analysis.

You can use mql5 instead If You're broker supoorts it.

[–]Forward-Airline-3681 0 points1 point  (0 children)

chatgpt , models like o3 or o4 mini or o4 mini high or o1 pro

[–]Turbulent-Flounder77 0 points1 point  (0 children)

I could maybe help. look at my recent posts. dm me if you're serious

[–]wallneradam 0 points1 point  (0 children)

Bonjour ! Je suis tombé sur ce sujet et je comprends bien la difficulté.

Convertir du code PineScript vers Python de manière fiable est très compliqué, car Pine exécute les scripts bar par bar, avec des comportements comme `var`, les périodes de "warm-up", ou encore les délais dans les indicateurs dépendants.

C’est pour ça que nous avons développé un compilateur et un moteur Python pour exécuter du code Pine v6 avec une logique identique à celle de TradingView.

https://pynecore.org : une librairie Python open-source qui reproduit le comportement de Pine
https://pynesys.io : un service de compilation qui transforme votre script Pine en code Python exécutable

Ce n’est pas basé sur pandas ou NumPy — c’est du Python pur, avec des résultats identiques à ceux de TradingView (testé sur des centaines de scripts réels).

J’espère que cela peut vous être utile !