What AIMS Algo does
Unlike a visual indicator that only plots lines or arrows, AIMS Algo is a true TradingView Strategy (strategy() declaration in Pine Script v6). It simulates realistic order entries, stop-losses, and profit targets within the TradingView Strategy Tester panel, providing full historical backtest reports with equity curves, profit factors, and maximum drawdowns.
Market Structure Mapping
Continuously maps structural pivot highs and lows to anchor continuation legs and order brackets automatically.
Strategy Tester Telemetry
Generates instant quantitative backtest performance metrics, equity curves, drawdown statistics, and trade lists.
Automated Alert Webhooks
Outputs pre-formatted JSON webhook alerts to trigger automated live order routing via PineConnector or execution APIs.
How to trade AIMS Algo
Configure Strategy Parameters
Set your target risk percentage per trade (e.g. 1.0%), session liquidity window, and profit target multipliers.
Run Strategy Tester Backtest
Attach the script to your chart and inspect the Strategy Tester panel to evaluate historical expectancy over 5–10 years.
Validate Drawdown & Profit Factor
Ensure Profit Factor exceeds 1.6 and Max Drawdown remains within portfolio risk tolerance under slippage and fees.
Connect Webhook Automation
Configure automated TradingView webhook alert payloads to dispatch orders to broker terminals on confirmed candle closes.
Prompts, not trade instructions. A SETUP READY prompt tells you to review the structure on a closed candle. It is never a command to enter blindly.
Setups and chart grammar
AIMS Algo Strategy generates deterministic entries with calculated risk-to-reward boundaries.
| Setup | Context | What the indicator sees | Goal |
|---|---|---|---|
| Algorithmic Long Continuation | Trend expansion after consolidation | Bullish order flow breakout confirming higher structural pivot close | Enter long with stop anchored behind recent swing low, targeting TP1 (1.5R) and TP2 (2.5R) |
| Algorithmic Short Continuation | Downside expansion after consolidation | Bearish order flow breakout confirming lower structural pivot close | Enter short with stop anchored behind recent swing high, targeting TP1 (1.5R) and TP2 (2.5R) |
| Target Zone De-Risking | TP1 achievement | Price penetrating 1.5x Risk target zone | Bank partial profits, move stop loss to breakeven, and trail remaining contract |
Structure pivot confirmed with upward order flow expansion.
Structure pivot confirmed with downward order flow expansion.
1.5x Risk conservative target reached — stop moved to breakeven.
Trading halted outside configured London/NY liquidity windows.
The Strategy Tester Quantitative Invariant
Mathematical performance benchmark requirements for live deployment.
Profit Factor >= 1.6 AND Max Drawdown < 15% Closed Trades >= 200 across >= 24 months historical tick simulation

Settings
| Input | Type | Default | What it does |
|---|---|---|---|
| Signal Engine | String | AIMS Algo Logic | Underlying structural setup detection algorithm. |
| Allow Buys / Sells | Boolean | true / true | Toggle long or short candidates independently. |
| Risk Method | String | % of Equity | Fixed percentage risk per trade or fixed contract size. |
| Enable Session Gate | Boolean | true | Restricts new trade entries to specified active market hours. |
| TP1 Multiplier | Float | 1.5 | Conservative multiplier of risk for partial profit taking. |
| TP2 Multiplier | Float | 2.5 | Runner multiplier of risk for extended trend captures. |
| Move to Break-Even | Boolean | true | Automatically moves stop loss to entry after TP1 is achieved. |
| Input | Type | Default | What it does |
|---|---|---|---|
| InpSerialKey | string | "" | DLMS serial key license activation. |
| InpSignalEngine | int | 0 | Signal engine mode: 0 = Algo, 1 = Banana. |
| InpRiskPercent | double | 1.0 | Risk per trade as percentage of account balance. |
| InpSessionFilter | bool | true | Restrict entries to liquid session hours. |
| InpTP1Ratio | double | 1.5 | First take profit multiple of risk distance. |
| InpTP2Ratio | double | 2.5 | Second take profit runner multiple. |
| InpTrailingStop | bool | true | Enable trailing stop behind market structure. |
| Input | Type | Default | What it does |
|---|---|---|---|
| InpSerialKey | string | "" | DLMS serial key license validation. |
| InpRiskPercent | double | 1.0 | Risk per trade percentage. |
| InpSessionFilter | bool | true | Enable session liquidity window. |
| InpTP1Ratio | double | 1.5 | Take profit multiple. |
| InpTrailingStop | bool | true | Enable trailing stop logic. |
Use it in your EA
On MetaTrader you can read the levels and setup state from an Expert Advisor with iCustom().
// TradingView Pine Script v6 Strategy order declaration
strategy("AIMS Algo Strategy", overlay=true, margin_long=100, margin_short=100)
if (buyCondition and barstate.isconfirmed)
strategy.entry("Long", strategy.long)
strategy.exit("TP1/SL", "Long", qty_percent=50, limit=tp1Price, stop=slPrice)| Buffer | Name | Value |
|---|---|---|
| 0 | Long Entry Price | Price level where long strategy order is executed |
| 1 | Short Entry Price | Price level where short strategy order is executed |
| 2 | Stop Loss Level | Calculated structural stop loss boundary price |
| 3 | Take Profit Level | Calculated target exit price level |
Frequently asked questions
Unlike a visual indicator that only plots lines or arrows, AIMS Algo is a true TradingView Strategy (strategy() declaration in Pine Script v6). It simulates realistic order entries, stop-losses, and profit targets within the TradingView Strategy Tester panel, providing full historical backtest reports with equity curves, profit factors, and maximum drawdowns.



