Strategy Builder for MetaTrader 5 and TradingView
Build a trading strategy without code. Get code you can read.
Set your rules in 7 steps, or let Tactix Studio fill the form from your own words. Fixed, tested generators then write MQL5 for MetaTrader 5 or Pine Script v6 for TradingView. A built-in backtest runs your saved strategies on past bars.
One set of rules, built for MetaTrader 5 or TradingView
AlfaTactix builds strategies for MetaTrader 5 and for TradingView in one tool, one platform per strategy. You choose the platform in Step 1: MetaTrader 5 gives a readable MQL5 Expert Advisor, TradingView a Pine Script v6 strategy. To move a strategy, switch the platform in Step 1; the form first lists the settings that change. The code comes from fixed generators with no AI model inside, and the backtest runs the same strategy document.
- 7steps, from idea to review
- 47indicator types
- 3timeframes per strategy, at most
- 8filters per strategy, at most
Plans, prices, the backtest and what the product does not do: AlfaTactix product facts


Why a form
Two usual ways to automate a strategy, and what goes wrong
Most traders either learn a platform language or ask an AI chat to write the code. Both leave you with code you have to trust.
Writing the code yourself
You learn MQL5 or Pine Script first, then find and fix your own mistakes. Each platform has its own language and its own rules.
Asking an AI to write the code
The most common complaint about AI tools that write trading code: code that does not compile, or that calls functions that do not exist.
- AlfaTactix
Building it in a form
You set the rules in a form, or Tactix Studio fills it for you to check. Fixed programs with no AI model inside write the code, and every change to them is tested.
The builder
7 steps, from the idea to a strategy you can review
Each step asks one thing and checks it as you go. You pick MetaTrader 5 or TradingView in Step 1, and the builder offers only what that platform supports.
Information and platform
Name, description and the platform: MetaTrader 5 or TradingView.
Timeframes
One trading timeframe and up to two higher ones: up to 3 per strategy.
Entry rules
47 indicator types, separate buy and sell rules, combined with AND / OR.
Filters
Up to 8 filters: sessions, time ranges, spread, correlation and your own conditions.
Exits
Stop loss, take profit, trailing stop, breakeven, partial closes and time exits.
Risk and money management
Position size and account protection: daily loss, drawdown and losing streaks.
Review and save
The whole strategy in plain sentences, a check list and what Studio assumed. Then you save it.


Step 7 reviews and saves. The code comes after, in Code Generator, for the platform the strategy was built for.
Walk the 7 steps in the demoTactix Studio
Describe your strategy. Studio fills the form. You check it.
Tactix Studio is the AI inside the builder. It never writes code: it fills the same form you use, you see every change, and you save it yourself.


Every change on one sheet
Studio shows your strategy as a sheet. Each line opens its field in the form, and values Studio assumed are marked "Assumed". If you set a value yourself, Studio asks before changing it.
Limits it cannot cross
Studio never builds grid or martingale strategies and never sets risk above 10% per trade. Above 2% it adds a warning; above 5% it asks you to confirm.
Switched on only after live tests
A group of Studio features goes live only after three live runs out of three with no blocked strategy, at least 90% of the facts right, every safety case right and no silent substitution. All 8 groups are on.
Clear about what it cannot do
Studio does not run backtests, place trades or save for you. You check every change it makes, and you save the strategy yourself.
The public demo plays a recorded example of Studio building a strategy from one sentence; no AI model is called there.
What you can build
Entries, filters, exits and risk, set the way you trade
Steps 3 to 6 hold the rules. Buy and sell rules are separate, so a strategy can trade one side or both.
- Step 3
47 indicator types
RSI, MACD, Stochastic, ADX, Bollinger Bands, ATR, Ichimoku, Supertrend, moving averages and more. Combine conditions with AND / OR, on up to 3 timeframes.
- Step 4
Up to 8 filters
Sessions, time ranges and days, spread, correlation and your own conditions decide when the strategy may trade. News filters are not available yet.
- Step 5
Exits
Stop loss, take profit, trailing stop, breakeven, partial closes, exit rules and time exits, set separately for buy and sell.
- Step 6
Risk and account protection
Size each position by risk or by a fixed amount, and protect the account with daily loss, drawdown and losing-streak limits.
The code you get
Plain source code, written the same way every time
Code Generator turns a saved strategy into one file: an MQL5 Expert Advisor for MetaTrader 5 or a Pine Script v6 strategy for TradingView, for the platform the strategy was built for.
Every indicator written out
The code uses no platform indicator built-ins. Every indicator is in the file you download, so you can read it, compile it and change it.
No AI model inside
The generators are fixed programs. The same strategy document and the same generator release always give the same file, byte for byte.
Compiles cleanly
All 29 golden Expert Advisors compile in MetaEditor with 0 errors and 0 warnings. Each Pine script we checked compiled in TradingView's Pine Editor with 0 problems.
Recovers after a restart
The Expert Advisor recovers its state after a restart, a crash or being removed from the chart, with the same trades as a run without the restart (tested in the MetaTrader 5 tester).
Generator version 1.0.0; every generated file names the version in its header. MetaTrader 4 is not supported.
//| AlfaTactix Strategy Builder v2 - MQL5 Expert Advisor//| Strategy: EURUSD RSI 15minput int i_rsi_1_length = 14; // rsi_1 lengthinput double i_rsi_1_overbought = 70.0; // rsi_1 overboughtinput double i_rsi_1_oversold = 30.0; // rsi_1 oversoldconst ENUM_TIMEFRAMES ATV2_ENTRY_TF = PERIOD_M15; // tf_1 15m // /rules/long: cross g_r_n0 = g_r_ov0 != ATV2_NONE && g_r_ov1 != ATV2_NONE && g_r_n0_a1 != ATV2_NONE && g_r_n0_b1 != ATV2_NONE && g_r_ov0 > g_r_ov1 && g_r_n0_a1 <= g_r_n0_b1; // /rules/short: cross g_r_n1 = g_r_ov0 != ATV2_NONE && g_r_ov2 != ATV2_NONE && g_r_n1_a1 != ATV2_NONE && g_r_n1_b1 != ATV2_NONE && g_r_ov0 < g_r_ov2 && g_r_n1_a1 >= g_r_n1_b1; p.p_stop = entry * 1.0 / 100.0; p.p_target = entry * 2.0 / 100.0; double risk_cash = equity * 1.0 / 100.0; // base = equity raw = risk_cash / ((stop_distance / g_sym.tick_size) * g_sym.tick_value);Built-in backtest
Backtest a saved strategy before you take it to a platform
Once you are signed in, every strategy you save can run on past bars in the built-in backtest engine. The same engine is the reference we check the generated MetaTrader 5 and TradingView code against.
Trades and a full report
Each run lists its trades and reports the usual metrics, such as drawdown and the Sharpe ratio. Four metric rules rest on our own assumptions, such as the Sharpe ratio’s annualisation and the Sortino target of 0; our article names all four.
A bar model in plain words
A gap fills at the open. When the stop loss and the take profit are both inside one bar, the stop fills first: the cautious guess. The rules have their own test library, and 25 of 25 tests pass.
Costs you set
Spread, commission, swap and slippage are set in the test profile of a run, where you can see them.
Three reading modes
A run reads the bars only, 1-minute OHLC inside each bar, or real ticks. Every result names the mode it used.
Checked against the MetaTrader 5 tester
We run the same strategies in our engine and in the MetaTrader 5 tester, then compare every signal and every trade. Each difference must have a named, listed cause, or it counts as a bug.
29 / 31
golden test strategies give the same signals in the engine and the MetaTrader 5 tester; MetaTrader cannot run the other 2
29 / 31
golden test strategies have the same trades, or trades that differ only for a named, listed cause; 0 bugs
6 / 6
common EURUSD H1 strategies, about ten months in the MetaTrader 5 tester: the same signals on every bar and the same number of trades
A backtest tests your rules on past bars. A backtest result is not a performance result or a promise.
Proof, with dates
We test the product, and we publish the numbers
Every number below has a date and a full explanation in our test article.
1,159 / 1,159
indicator test values equal our reference library bit for bit on MetaTrader 5; on TradingView, 461 of 461 with zero tolerance
29 / 29
golden Expert Advisors compile in MetaEditor with 0 errors and 0 warnings
29 / 31
golden test strategies give the same signals in our backtest engine and the MetaTrader 5 tester; the other 2 are strategies MetaTrader cannot run, and we refuse to generate them
100 / 112
platform facts verified against MetaQuotes' and TradingView's own sources; the other 12 are marked as assumptions
8,770
backend tests and 2,165 frontend tests passed in the last run of both test suites, one of 516 recorded test results
Bit for bit applies to indicator values. Trades are equal, or differ for a named and listed cause. These are our own engineering tests, not an outside certificate.
Honest limits
What AlfaTactix does not do
- It makes no promise about results. No test on this page measures how a strategy performs in the market.
- It does not place trades. You run the file in MetaTrader 5 or TradingView yourself.
- It does not support MetaTrader 4.
- It does not build grids of orders or martingale sizing.
- It has no news filters yet.
- Its AI is not perfect: the bar is at least 90% of the facts right, and the last feature group passed only with the AI models Studio calls first.
- It was not tested with real money: only the MetaTrader 5 tester and TradingView backtests were run.
Trade Manager for MT5
Manages the trades you place by hand
The Trade Manager is an Expert Advisor (a robot) for MetaTrader 5 that manages the trades you open yourself; it is a separate product from the strategies you build here. It never opens a trade: it changes a stop or a target, or closes a trade or part of it. Its steps include a safety stop and target, closing part of the trade, protecting the entry (breakeven), following the price (trailing stop) and closing at a set time.
It works only while MetaTrader 5 is running on your computer or a VPS, connected, with Algo Trading on.
See what the Trade Manager does, and its limitsFrequently asked questions
Do I need to know MQL5 or Pine Script?
No. You set the rules in a 7-step form, or Tactix Studio fills it from your description. Code Generator then writes the MQL5 or Pine Script v6 file for you.
Does the AI write my code?
No. Tactix Studio only fills the form; you see every change and save it yourself. The code always comes from the same fixed generators as a strategy you build by hand, with no AI model inside.
Which platforms are supported?
MetaTrader 5 (MQL5 Expert Advisors) and TradingView (Pine Script v6 strategies). You choose the platform in Step 1, and a strategy generates code for that platform only. MetaTrader 4 is not supported.
Can I try it without an account?
Yes. The public demo runs the same 7 steps in your browser: you fill in the form yourself and can watch a recorded example of Tactix Studio. Saving, Tactix Studio, the backtest and Code Generator need an account; the pricing page shows which plan includes what.
Can I read and edit the generated code?
Yes. The file is plain source code with every indicator written out, and its header names the generator version. You can compile it in MetaEditor or add it in TradingView's Pine Editor, run it in the platform's Strategy Tester and change it if you want.
How do you know the generated code is right?
We test it on every change. Our generated indicators match our reference library bit for bit on 1,159 of 1,159 test values on MetaTrader 5 and 461 of 461 on TradingView, and all 29 golden Expert Advisors compiled with 0 errors and 0 warnings. Our article How we test explains each number.
Can I backtest a strategy?
Yes, once you are signed in. A saved strategy runs on past bars in the built-in backtest engine, with the costs you set in the test profile, and you get its trades and a full report. A backtest result is not a performance result or a promise. You can also run the generated file in the platform’s own Strategy Tester.
See the builder for yourself
The demo runs the same 7 steps in your browser, with no signup. When you want to save, use Tactix Studio, backtest or generate code, compare the plans.

