An indicator that's been running reliably on TradingView for months now needs to work in ATAS too - for order flow and footprint charts that TradingView simply doesn't offer. The obvious expectation: take the Pine Script code and translate it to C#. In practice, that's not quite as simple as it sounds, for a straightforward reason.
Why it isn't a line-by-line translation
Pine Script is an interpreted, series-based language that handles a lot automatically in the background: time-series management, access to previous bars (e.g. via close[1]), built-in ta. functions. C# in the ATAS API, by contrast, is compiled, object-oriented, and event-driven - none of that happens automatically. Every data access, every lookback into historical values, and every piece of stored state has to be managed explicitly. That's exactly why a real reimplementation of the logic is needed, not a syntax swap.
Three spots where it gets technically demanding
- Multi-timeframe requests (request.security()): convenient and built-in on Pine Script, but a known source of repainting if not handled carefully. In ATAS, that multi-timeframe logic has to be built explicitly, without that built-in convenience
- Order logic (strategy.entry() / strategy.close()): the order and position management behind Pine Script strategies differs from the ATAS API's execution model - the call syntax doesn't translate directly, the underlying behavior has to be rebuilt
- Historical values & state: Pine Script manages series and lookback into previous bars automatically. In C#, that state has to be stored explicitly and updated on every new bar
Why backtest numbers can shift slightly after the port
Even a careful port can produce slightly different backtest results - due to differing handling of multi-timeframe data, different execution timing, or differences in the underlying data feeds between TradingView and ATAS. That's normal and not a sign of a flawed port. What matters is comparing the behavior on identical historical data, not matching a number to the decimal point.
Have a TradingView indicator you need on ATAS?
Share the Pine Script code or a description of the logic - the feasibility check and quote are free and non-binding.
Request a projectWhat the porting process actually looks like
- Share the Pine Script source code - speeds things up considerably, but isn't required
- Without code, a precise description of the logic or a chart example with visible signals is often enough
- Analysis of the underlying logic rather than a pure line-by-line transfer
- Reimplementation as a native C# indicator or as a strategy via the ATAS API
- Side-by-side comparison against the original TradingView display on identical historical data
- Handover including an installation guide and free support for follow-up questions
Frequently Asked Questions
Is the Pine Script code alone enough to port the indicator?
The source code is the fastest starting point and speeds things up considerably. Without it, a precise description of the logic or a chart example with visible signals is often enough.
Will the results look exactly the same as in TradingView afterward?
The logic behaves the same, but small differences in backtest numbers are possible - for example due to differing handling of multi-timeframe data or execution timing between the platforms. That's normal and gets reconciled together during testing.
Does this work for strategies (bots) too, not just indicators?
Yes, Pine Script strategies using strategy.entry()/strategy.close() logic can also be ported into an automated ATAS strategy - the order execution model differs between the platforms and gets rebuilt accordingly.
Does SITA Capital also offer standalone Pine Script or TradingView development?
No. SITA Capital works exclusively with ATAS - Pine Script only comes into play as the starting point for a port to ATAS, not as a standalone offering.
In the end, what matters isn't how similar the code looks, but whether the ported indicator behaves exactly like the original on the chart - that's the standard every port has to be measured against.
Have an idea for ATAS?
Tell us about your project - you'll get a free, non-binding quote within 24-48 hours.
Request a Free Quote