MultiAlphas by Valynox | No-code futures and forex strategy generator
TradingView script maker: export a generated strategy as Pine Script v6, step by step
Open the strategy's source code in the Performance report, export it for TradingView, import it, set the items the code's header lists, then compare trade lists on the same data before going live.
Built-in export of readable source code for MultiCharts, TradingView (Pine v6, no plug-in), TradeStation, NinjaTrader 8, MT4 and MT5
Free 7-day trial (no card)- Built-in fees & slippage
- 100% unlocked source code
- 100% local & private
- One-time perpetual license
By Soren Huang · Published · updated · Editorial policy
Contents
To run a strategy from MultiAlphas (Valynox) in TradingView, export its Pine Script v6 source code from the Performance report, import it into TradingView, set the chart and strategy the way the code's header describes, and compare both trade lists on the same data before you trade it live.
What should you have ready first?
You need a strategy in the MultiAlphas strategy databank, TradingView installed, and the same market and history you tested on. You can follow every step before buying, since the trial version can also view and export source code. MultiAlphas's strategy databank keeps results searchable and sortable, which helps you pick out the strategy tested on this market and history before exporting it to TradingView. Traders who want the strategy on a desktop platform as well can follow the MultiCharts or NinjaTrader guide.
How do you get the strategy out of MultiAlphas?
You export from the strategy's source code tab in the Performance report. The file is saved as
- Double-click the strategy in the strategy databank, and it opens in the Performance report.
- Go to the Strategy source code tab. Conditions and parameters are in the left column, and the source code is in the right column.
- Choose TradingView, then click Export file to save it, or Copy code.
- TradingView strategies don't need the MultiAlphas library, so there is no extra step.
How do you import it into TradingView?
Bring the strategy in, confirm it compiles, and put it on a chart.
- Open the Pine Editor in TradingView.
- Paste the code into the Pine Editor.
- Add the strategy to the chart.
Which settings have to be the same as the backtest?
What the backtest used is listed in the header of the exported code. Set the same in TradingView:
- Commission and slippage are already written into strategy(): don't change them again in the properties
- Instrument, bar period, big point value, tick size and number of contracts
- The number of warm-up bars
- Turn on Deep Backtesting and match the start and end dates
- The chart session must match the data used in MultiAlphas
Every bar moves if the time zone or session differs, and leaving out costs flatters the platform's results against the backtest.
How do you check TradingView against MultiAlphas before going live?
Run the strategy in TradingView on the same data and period, then compare its trade list with MultiAlphas's trade list, trade by trade.
- Keep the instrument, bar size and date range identical to the backtest.
- Start with entry and exit times: when they are one bar apart, the time zone or session is usually the cause.
- Prices and costs come next: this is where different fills or missing commission appear.
- If they still differ, look at the data source: two data feeds can build slightly different bars.
Why costs matter is explained in trading costs in backtests: commission, slippage and the average trade, and how a strategy is checked on data it didn't see is covered in walk-forward analysis.
If you use MultiAlphas (Valynox), the exported code is plain text you can read and edit, and the platform export page lists every supported platform.
Frequently asked questions
Must I export the library each time?
No. TradingView strategies don't use the MultiAlphas library at all.
Is it possible to edit the exported code?
Yes. It is plain-text Pine Script v6 you can read and change. Compare the trade list again after any edit, since MultiAlphas tested the strategy as it was before.
Does the trial version export strategies?
Yes. Yes: viewing and exporting source code both work in the trial, so the whole process can be tried before buying.

