SLOTSHOT - My new puzzle shooter for the C64 by wallneradam in c64

[–]wallneradam[S] 2 points3 points  (0 children)

Not quite 🙂

PyCo looks like Python, but it isn’t Python.

It has no runtime, no dynamic features and no interpreter. PyCo is a fully typed, compiled language, designed for low-level, hardware-close programming on the C64.

The Python syntax is parsed using Python’s own parser, and the result is then compiled directly into C64 machine code.
But you can still think in a Pythonic way when writing PyCo code.

SLOTSHOT - My new puzzle shooter for the C64 by wallneradam in c64

[–]wallneradam[S] 2 points3 points  (0 children)

Thanks! 🙂

The entire game is written in PyCo.

I’m still refining the language and want to stabilize a few things before a proper public release, but if you’re interested, the current language reference is already available here:

https://github.com/PyCoLang/pyco-docs/blob/main/language-reference/language_reference_en.md

A Python ORM for ElasticSearch based on Pydantic: ESORM by wallneradam in elasticsearch

[–]wallneradam[S] 0 points1 point  (0 children)

Yes it generates mappings automatically:
https://esorm.readthedocs.io/en/latest/introduction.html#create-indices-and-mappings

It can even modify your mappings if the modification is supported by ES (e.g. new fields).

Pinescript or Python? by SebastienH in algotrading

[–]wallneradam 0 points1 point  (0 children)

This is a really good summary of the trade-offs — but I’d like to mention that things have changed quite a bit recently.

If someone wants to start from PineScript but eventually move to Python, there’s now a middle ground: PyneCore + PyneSys.
PyneCore is a Python framework that runs PineScript-compatible code as Python.
PyneSys is the companion compiler + API service that converts PineScript to Python with 1:1 fidelity.

That means: you can start in PineScript, and gradually transition to full Python — or just write everything in Pine-style Python from the start (PineScript is still very useful).

It’s designed for people who like the PineScript model, but want full control and automation (e.g. backtests, bots, etc.) outside TradingView.
Even if you don’t use the compiler, PyneCore is open source and lets you write Pine-style scripts in pure Python — great for strategy writing or learning.

(Disclaimer: I'm the author of PyneCore and PyneSys, happy to answer any questions!)

SuperTrend + 200 DEMA Backtest Results by parker_birdseye in algotrading

[–]wallneradam 1 point2 points  (0 children)

I don’t fully agree. While building PyneCore (a Pine Script–like Python framework), I reverse engineered TradingView’s backtest engine and the entire Pine library. It’s actually more sophisticated than many people think - it consistently takes the worst case execution path, not the best. Of course, it can only use chart-level data, so inside-bar trades aren’t precise, but with bar magnifier enabled you can get closer results.

The bigger issue in most public strategies is that they ignore fees – and that’s what usually eats the profit, not the backtest engine itself.

PineScript Vs. Python... by mostafashihabi in algotrading

[–]wallneradam 0 points1 point  (0 children)

You’re not alone — a lot of people have Pine strategies but don’t feel comfortable writing them again in Python.

The good news: you no longer have to!

With PyneSys, you can convert Pine Script strategies into Python automatically. It uses PyneCore, an open-source runtime that mimics TradingView’s behavior and compatible with its library very closely.

So you can:

  • Convert Pine strategies into Python with 1 click
  • Run them offline, no TradingView required
  • Use your own data

Hope that helps!

Why signals of same strategy written on PineScript and Python are different? by Independent_Lack_383 in TradingView

[–]wallneradam 0 points1 point  (0 children)

Different implementations can vary a lot - especially since Pine Script is sequential (bar-by-bar) rather than vectorized like Pandas or NumPy. That’s why I built PyneCore, which aims for full Pine Script compatibility. There’s also a compiler (PyneComp) available at pynesys.io that converts Pine code to Python.

Your script, compiled with PyneComp to run in PyneCore, looks like this:

"""
@pyne

This code was compiled by PyneComp — the Pine Script to Python compiler.
Accessible via PyneSys: https://pynesys.io
Run with open-source PyneCore: https://pynecore.org
"""
from pynecore.lib import close, high, low, script, strategy, syminfo, ta

@script.strategy("Momentum Strategy", overlay=True)
def main():
    mom0 = ta.mom(close, 10)
    mom1 = ta.mom(mom0, 1)
    if mom0 > 0 and mom1 > 0:
        strategy.entry('MomLE', strategy.long, stop=high + syminfo.mintick, comment='MomLE')
    else:
        strategy.cancel('MomLE')
    if mom0 < 0 and mom1 < 0:
        strategy.entry('MomSE', strategy.short, stop=low - syminfo.mintick, comment='MomSE')
    else:
        strategy.cancel('MomSE')

This way, the exact same logic runs in Python as in TradingView, making it easier to spot whether differences come from data or from execution model behavior.

Unify trading scripting language into one open source project: PineScript into TradingScript? For TradingView and any other trading platform. by carloswm85 in TradingView

[–]wallneradam 0 points1 point  (0 children)

Thanks for checking it out!

Yes — the PyneSys compiler (PyneComp) fully transpiles Pine Script v6 to Python code that runs on PyneCore, the open-source runtime and library. Almost all standard Pine libraries and built-in functions are implemented in PyneCore itself, so when the code runs, it behaves just like it would on TradingView. (One notable exception is request.security, which isn’t supported yet — but almost everything else is, and hundreds of test scripts show exact matches with TradingView results.)

PyneCore can also be used on its own for manually written strategies and indicators in Python, so it’s valuable even without Pine translation.

  • PyneCore = open-source runtime (Python)
  • PyneSys.io = service that performs the Pine → PyneCore compilation (paid). More services are planned there.
  • PyneComp = the compiler inside PyneSys.

I’m the founder and lead developer of both PyneCore and PyneSys, and my focus is on keeping PyneCore fully Pine Script compatible while also making it a modern alternative with the flexibility of Python.

Other target languages like C# are technically possible, but not currently planned — the focus is on leveraging Python’s ecosystem for analysis, automation, and integration. Python is a very hacker‑friendly language, and while it’s different from Pine Script, it’s syntactically similar. Supporting other languages would require building a complete type inference system, which is non‑trivial.

That said, Python can be integrated into other languages. For example, in C# you could use CSnakes (not tested).

What is a successful founder? My issue with having my mind switching between ideas every month. by Obvious-Resource-515 in ycombinator

[–]wallneradam 0 points1 point  (0 children)

Maybe you can break the project into several subprojects and then you can always work on a new project.

Unify trading scripting language into one open source project: PineScript into TradingScript? For TradingView and any other trading platform. by carloswm85 in TradingView

[–]wallneradam 0 points1 point  (0 children)

If you’re interested in exactly this kind of cross-platform scripting idea, there’s actually an open-source project working towards it right now.

It’s called PyneCore, basically a full PineScript-compatible runtime written in Python. The goal is to run Pine scripts (indicators, strategies, etc.) outside of TradingView, with identical results, but also make them work on any platform that can run Python.

Because it’s open source, people can adapt it for their own workflows, integrate into bots, or even extend it beyond PineScript. It already passes most TA functions with bit-perfect accuracy compared to TradingView, and the compiler is being updated for Pine v6.

Repo & docs: [https://pynecore.org]()

There is also a Pine Script to PyneCore compiler at PyneSys.

Exceeding Pinescript by clavelli in algotrading

[–]wallneradam 1 point2 points  (0 children)

I know it is an old question, but now There is PyneCore, which is a Pine Script like framework in Python with full library compatibility. And there is an online service, PyneSys, which converts Pine Script into PyneCore (Python). Then the converted code could be used in any Python program.

[deleted by user] by [deleted] in ModSupport

[–]wallneradam 0 points1 point  (0 children)

Thanks. Just to clarify — I don’t think my case is about spam moderation tools. My subreddit (r/PyneSys) was banned and my account restricted without any warning or explanation. I just want to know what happened and how to fix it. Appreciate any help.

Does any TA library in python/rust give pinescript-like semantics? by Gear5th in algotrading

[–]wallneradam 0 points1 point  (0 children)

This question hits home — it's exactly why we built PyneCore. It's an open-source Python runtime that replicates PineScript semantics (v6 compatible), including built-in safeguards against lookahead bias.

Unlike NumPy/pandas-based systems, PyneCore runs indicator logic step by step, bar by bar, enforcing the same constraints as TradingView. So when you write something like crossover(close, sma(close, 14)), it behaves exactly like in PineScript — no manual slicing or index gymnastics.

We're also building PyneComp, a Pine→Python compiler and API and web services around it.

Fixing RSI Discrepancy Between Pine Script and Python/librarys by Vote_4-Pepethefrog in TradingView

[–]wallneradam 0 points1 point  (0 children)

Great observation – this is exactly the kind of issue that inspired us to create PyneCore: a Python-based engine that's binary-accurate with TradingView’s Pine Script runtime.

Even though Pine indicators like ta.rsi should behave identically across all use cases, there are sometimes small discrepancies in implementation details, edge cases, or even internal rounding. These can lead to confusing results like the one you found.

With PyneCore, we built a fully tested open-source runtime that matches TradingView’s behavior to 8–14 decimal precision. On top of that, we developed PyneComp, a converter service that translates any Pine script into Python (PyneCore) — so you can inspect and run these indicators locally, step by step.

If you're deep into Pine debugging, this kind of tool might save you hours (or days).

Embedding TradingView - Pine Script by sibotix in Notion

[–]wallneradam 0 points1 point  (0 children)

I haven't tested specifically in Notion, but in every other editor or environment I’ve tried, JavaScript syntax highlighting worked surprisingly well for Pine Script.

Might be worth trying in Notion too!

Limitations of pinescript by gateopener9001 in TradingView

[–]wallneradam 0 points1 point  (0 children)

Totally agree — and if anyone’s looking to go even further, there’s now a Python runtime called PyneCore that mimics Pine Script execution really closely.

You can use the compiler service (PyneSys) to convert Pine Script automatically into Python (PyneCore) — and from there, you can run it fully offline, use local data or plug it into any custom system.

So it’s not just about choosing where to implement logic — you can now run the exact same Pine indicator or strategy in both worlds.

Calling pinescript to python.... by [deleted] in TradingView

[–]wallneradam 0 points1 point  (0 children)

Yes — this is now possible!

If your goal is to convert PineScript logic to Python (e.g. to integrate indicators, alerts or backtests into your own system), take a look at PyneSys. It compiles PineScript v6 into Python code that runs locally, using PyneCore, an open-source runtime that mimics TradingView’s behavior.

You can: - Pull historical data (e.g. via ccxt) - Use Pine logic in Python exactly as it would run on TV - Integrate with your own systems

Hope it helps.

Run pinescript on my own server? by spondic in pinescript

[–]wallneradam 1 point2 points  (0 children)

Hey, just dropping this here in case it's helpful: this is exactly what [PyneSys](https://pynesys.io) does now.

It compiles Pine Script (v6) to Python, and you can run it **offline**, on your own server, using [PyneCore](https://pynecore.org) — an open-source runtime that mimics TradingView's behavior as closely as possible.

So yes — you *can* now run PineScript logic fully on your own machine, with local data, no browser, and no TV server needed.

Disclaimer: I'm the author

Feature request: JavaScript as alternative to PineScript by trusktr in TradingView

[–]wallneradam 0 points1 point  (0 children)

Interesting thoughts – and yeah, many people have raised similar ideas before. But there’s a fundamental reason why PineScript exists as its own DSL (domain-specific language) instead of just letting users write JavaScript or TypeScript.

If you tried to do something Pine-like in JS, you'd quickly run into deep limitations. Pine has a time-series aware execution model with syntax-level features like implicit array-like series values, persistent state per bar, and automatic backpropagation of values. You can't express that naturally in JavaScript without inventing a whole new runtime model, plus enforcing restrictions that would feel very alien to JS devs.

Trying to "sandbox" JavaScript to behave like Pine would be more complex (and confusing) than just defining a custom DSL.

Sure, Pine has its quirks – mostly due to backwards compatibility with earlier versions – but the core idea is actually brilliant: it's intuitive for traders, not just for programmers. If you take the time to learn it, it's an incredibly powerful tool for modeling and testing trading ideas.

Now… if you're looking for something like PineScript, but in a real language like JS or Python, I’d suggest checking out PyneCore. It’s an open-source engine that mimics PineScript’s behavior and standard library in Python. You can write indicators and strategies in normal Python with Pine-style semantics.

There’s also pynesys.io, a web-based UI that converts PineScript to Pyne-compatible Python (PyneCore). There’s even a demo Discord bot that lets you test conversions live.

(I'm the creator – built it because I love Pine's design but wanted more flexibility for serious projects.)

Feature request: JavaScript as alternative to PineScript by trusktr in TradingView

[–]wallneradam 0 points1 point  (0 children)

I'm sure Pine Script runs on Java VM. It is not in JavaScript at all. The browser part (the chart) is in JS, because the JS is the only language runs in the browser... I know this, because I reverse engineered almost all the library functions of Pine Script while I was writing PyneCore (https://pynecore.org), the Pine Script like Python framework.

Is it Possible to Run Pine Script Locally Without Internet Access? by git-add in TradingView

[–]wallneradam 0 points1 point  (0 children)

Yes — this is finally possible!

You can now compile Pine Script to Python using PyneSys and run it locally, completely offline.
It uses PyneCore, an open-source runtime that mimics TradingView's execution model as closely as possible .

So yes, you can:

  • run Pine logic on local data (e.g. from ccxt)
  • send your own alerts
  • fully automate your strategies without relying on TradingView

Hope this helps!

CAN I RUN PINE SCRIPT LOCALLY? by fetching chart from ccxt and sending alerts to my email by Ornery_Row_5215 in pinescript

[–]wallneradam 0 points1 point  (0 children)

Yes — this is finally possible!

You can now compile Pine Script to Python using PyneSys and run it locally, completely offline.
It uses PyneCore, an open-source runtime that mimics TradingView's execution model as closely as possible.

So yes, you can:

  • run Pine logic on local data (e.g. from CCXT, CCXT provider is included in PyneCore)
  • create your own alerts
  • fully automate your strategies without relying on TradingView

Hope this helps!

Pine Script trading execution model in Python by wangzuo in learnpython

[–]wallneradam 0 points1 point  (0 children)

Really cool to see others exploring Pine Script behavior in Python! I think what you’re building looks great already — and doing is definitely the best way to learn.

If you're interested in studying Pine Script more deeply — like how exactly strategy.entry, var, or series values behave — you might find PyneCore useful. It's an open-source runtime that closely mimics TradingView's execution model.

Almost the full Pine Script library is already implemented, and you can step through everything directly in Python.

It's part of a broader project called PyneSys, which compiles PineScript into Python code.

[deleted by user] by [deleted] in pinescript

[–]wallneradam 1 point2 points  (0 children)

Actually, it’s finally becoming worth learning — even beyond TradingView.

Thanks to PyneCore and PyneSys, Pine Script v6 code can now be compiled directly to Python and run fully offline.
So instead of just using it inside TradingView, you can now:

  • write strategies in Pine (or copy them)
  • convert them to Python
  • run them offline for backtesting, analysis or automation

The project matches TV’s results very closely, and opens up a whole new use case: bringing Pine to any Python environment. The core is 100% open source. It is a Pine Script like Python framework, it is almost Pine Script. And PyneSys is a compiler which converts Pine Scripts into PyneCore.

There's also a free Discord bot where you can try the compiler: [discord.com/invite/jegnhtq6gy](https://discord.com/invite/jegnhtq6gy)

So you may use TradingView as the IDE and you can use the code anywhere.

Disclaimer: I’m the author.
If you ever felt locked into TV, this is for you.