Develop strategies
Define entries, exits, position sizing, stops and targets. Specify bar-close confirmation and other execution assumptions so the script reflects your intended rules.
AI coding agent for TradingView
Turn a written trading idea into Pine Script v6. Xen helps you develop strategies, indicators and chart tools, with complete source you can copy into TradingView, test and refine.
Build with Xen
Define entries, exits, position sizing, stops and targets. Specify bar-close confirmation and other execution assumptions so the script reflects your intended rules.
Build overlays, separate-pane indicators, plots, markers and alerts. Explain the formula and how the output should appear on your chart.
Use Prompt Builder when important decisions are missing. Larger projects can follow a Build Plan that introduces features in testable stages.
Provide the complete current script and request a focused change. Keep the latest source and saved revisions together as the project develops.
Return the exact TradingView diagnostic with the current source. Xen can help revise the script; compile the updated version in Pine Editor to check it.
Bring complete source from another platform into a Pine Script conversion workflow. Check calculations, bar timing and repainting implications against the original.
Your workflow
Start a strategy or indicator, modify existing Pine source or convert another platform’s code.
Inspect the complete Pine Script v6 file and use requirements verification to compare it with your request.
Copy or download the source, paste it into TradingView and save it to compile.
Inspect signals on charts and run strategies in Strategy Tester. Refine one tested feature at a time.
Learn from testing
Use Xen’s independent analysis task with a Strategy Tester List of Trades CSV. Explore the outcomes before deciding what to investigate next. Run the strategy and any follow-up tests in TradingView; a review of past trades does not establish future performance.
Read the backtest analysis guideQuestions
You can start with a plain-English description. Explain the calculations and trading behaviour precisely, then inspect and test the result in TradingView.
Use TradingView’s Pine Editor for compilation and Strategy Tester for backtesting. Xen helps generate and repair source; TradingView determines how the script runs.
The Xen workspace does not connect to your broker or place trades. Its role is to help you develop Pine Script and review results.
Bring a clear idea or your existing source and work towards a tested first version.