What is PyneCore?
mainPyneCore is an open-source framework that implements the TradingView Pine Script bar-by-bar execution model natively in Python. It allows developers to write trading strategies and technical indicators using Python syntax while benefiting from Pine Script's intuitive semantics.
Key characteristics include:
- AST Transformation: Instead of using heavy object-oriented wrappers, PyneCore uses Python's Abstract Syntax Tree (AST) to transform regular Python code into Pine Script-like behavior.
- High Compatibility: Aims for 0.001% precision tolerance compared to TradingView's Pine Script.
- Zero Mandatory Dependencies: The core system is designed to operate without external libraries for maximum portability.
- Pythonic Integration: Maintains Python's type hints, ecosystem, and syntax while providing specialized trading primitives.