Skip to main content
Session suite indicatorv1.00

AIMS Trend Panel

Each month a market is long if it rose over the past twelve months, otherwise short, sized to a fixed yearly volatility. The chart shades the side held and a panel shows the same rule across a basket of markets.

10-asset momentum matrix and volatility sizing panel — MetaTrader 5
AIMS Trend Panel on MetaTrader 5 showing 10-asset multi-market momentum matrix and volatility-targeted sizing on EURUSD D1
Type
Indicator
Category
Trend
Platforms
TradingView, MT5
Language
Pine v6, MQL5
Repaints
No — closed bar
Time-series momentumTrend followingVolatility sizingMulti-market

What Trend Panel does

Trend Panel applies the classic twelve-month time-series momentum rule: hold the side of the past year's move, and size every market so it carries the same risk. It decides once a month, on closed monthly bars.

The monthly rule

Long this month when last month's close is above the close twelve months before it; otherwise short. The lookback is adjustable from 1 to 24 months.

Volatility sizing

Yearly volatility from daily log returns, weighted exponentially with a centre of mass of 60 days. Size = target volatility / the market's volatility.

The basket panel

Up to 10 markets on TradingView and 12 on MT5: the lookback change, the side held this month, volatility, size, and a count of longs and shorts.

How to trade Trend Panel

  1. Add it to any chart

    The rule reads monthly and daily bars, so the chart timeframe does not change it. On MT5 the panel shows "loading monthly history" until enough monthly bars are available.

  2. Read the side held

    The background shows LONG or SHORT for the current month. A marker shows the month the side flipped.

  3. Size with the panel

    The Size column is how many units of exposure per unit of capital give the target volatility. At 40% target and 20% market volatility, size is 2.0x.

  4. Act once a month

    The side only changes when a monthly bar closes. Check at the start of each month, not on every tick.

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

Trend Panel has two sides and one flip marker.

SetupContextWhat the indicator seesGoal
LONG monthLast month's close above the close 12 months before itBackground in the long colourHold long for the month
SHORT monthLast month's close at or below the close 12 months before itBackground in the short colourHold short for the month
FlipThe side differs from the month beforeUp or down arrow at the start of the monthChange sides
BUY

LONG: the market rose over the lookback.

SELL

SHORT: the market fell over the lookback.

NO DATA

The broker has no symbol by that name, or its history has not loaded yet.

Settings

InputTypeDefaultWhat it does
Lookback (months)Integer12Long this month when last month's close is above the close this many months before it; otherwise short. 1 to 24.
Target Volatility (% a year)Float40Each market is sized so its position would move this much in a typical year. Size = target / the market's own volatility.
Market 1 to Market 10SymbolOANDA: EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, SPX500USD, NAS100USD, DE30EUR, XAUUSD, XAGUSDThe markets in the panel.
Show PanelBooleantrueShows the basket panel.
Shade Side HeldBooleantrueShades the background in the side held.
Mark FlipsBooleantrueMarks the month the side flipped.
Long ColorColor#26a69aColour of the long side.
Short ColorColor#ef5350Colour of the short side.

Use it in your EA

On MetaTrader you can read the levels and setup state from an Expert Advisor with iCustom().

// MQL5 — check the last closed bar for a trend flip
int    h = iCustom(_Symbol, _Period, "iTradeAIMS\\AIMSTrendPanel", "YOUR-SERIAL-KEY");
double up[], dn[];
CopyBuffer(h, 0, 1, 1, up);   // != EMPTY_VALUE: turned long
CopyBuffer(h, 1, 1, 1, dn);   // != EMPTY_VALUE: turned short
BufferNameValue
0Turned longPrice on the bar where the side flipped to long; EMPTY_VALUE elsewhere
1Turned shortPrice on the bar where the side flipped to short; EMPTY_VALUE elsewhere

Frequently asked questions

Each market is judged against its own past, not against other markets: if it rose over the last year, hold it long; if it fell, hold it short.

All indicators →

One rule, every market, once a month.

AIMS Trend Panel is available on TradingView and MT5 for iTradeAIMS members.