Free tools / Strategy code tools

Free CME futures strategy source code library (Pine v6 + .apx)

Rule-based strategies for CME Group futures, published in two file types only: a single-file Pine Script v6 for TradingView, and an .apx file you open in MultiAlphas to export for other platforms.

The files are free. Single files download from this page; the full pack downloads in the member center after a free sign-up.

3 featured strategies

Hand-picked from the library. Each one comes as a Pine Script v6 file and an .apx file.

NQ 60m Ichimoku Kumo Breakout

Market
E-mini Nasdaq-100
Bars
60-minute bars
Stop loss
2.874%

An Ichimoku cloud breakout sets long or short; the exit is taken from where price stands against Leading Span A and the percentile band of the real-body Donchian bands.

Download Pine Script v6 Download .apx

Pine Script v6 · 53 KB · .apx · 409 KB

GC 60m Filter-Line Rise Count

Market
Gold
Bars
60-minute bars
Stop loss
9.096%

Multi-Mode Filter: the count of consecutive rises or falls of the bar against the filter line sets long or short; exits when the percentage distance to the filter trigger line crosses back.

Download Pine Script v6 Download .apx

Pine Script v6 · 49 KB · .apx · 406 KB

CL 60m Cyber Cycle Trend Pullback

Market
Crude Oil (WTI)
Bars
60-minute bars
Stop loss
3.64 × ATR(29)

Enters when at least two of three Cyber Cycle conditions hold: the long cycle on one side of zero (with the trend), the short cycle pulling back against the long one, and the position of the fast trigger line against the slow one; exits when the cycle turns within 20 bars and it weakens after crossing up from oversold.

Download Pine Script v6 Download .apx

Pine Script v6 · 40 KB · .apx · 351 KB

Full pack: download it in the member center

All the strategies in one download. Sign up free (already have an account? Just sign in) and download it straight from the member center; nothing is emailed.

Sign up free and download the pack

A free account. No card needed.

All 15 strategies

All 15 strategies in the library, each with its market, bar interval, entry and exit idea, and stop loss.

Backtest in the files: 2014-12-31 to 2023-11-29 (out-of-sample from 2021-03-19), US dollars, 1 contract per trade, commission and slippage included.

NQ 60m Cyber Cycle Overbought Turn

Market
E-mini Nasdaq-100
Bars
60-minute bars
Stop loss
3.083 × ATR(27)

The running state of the Stochastic Cyber Cycle's overbought turn-down signal sets long or short; the exit is taken from the cycle's value and changes in the Stochastic Center of Gravity.

In the full pack (member center)

NQ 60m Ichimoku Kumo Breakout

Market
E-mini Nasdaq-100
Bars
60-minute bars
Stop loss
2.874%

An Ichimoku cloud breakout sets long or short; the exit is taken from where price stands against Leading Span A and the percentile band of the real-body Donchian bands.

Download Pine Script v6 Download .apx

Pine Script v6 · 53 KB · .apx · 409 KB

In the full pack (member center)

NQ 60m Real-Body Donchian Break

Market
E-mini Nasdaq-100
Bars
60-minute bars
Stop loss
7.405%

A candle body first holding above or breaking below the real-body Donchian channel midline sets long or short; exits the first time price crosses Ichimoku Leading Span A.

In the full pack (member center)

NQ 60m RVI Range Flip

Market
E-mini Nasdaq-100
Bars
60-minute bars
Stop loss
8.443%

Enters when the Ehlers Relative Vigor Index (RVI) signal line crosses up or down through its 20/80 range position; exits on a rare pattern of the typical price holding above a rising line.

In the full pack (member center)

ES 60m Complexity Percentile Break

Market
E-mini S&P 500
Bars
60-minute bars
Stop loss
8.588%

A combination of Lempel-Ziv complexity's orderliness and the range percentile band sets long or short; exits on a range turn.

In the full pack (member center)

ES 60m Filter-Line Hold Count

Market
E-mini S&P 500
Bars
60-minute bars
Stop loss
4.809 × ATR(27)

Multi-Mode Filter: the count of bars in a row with HL2 above or below the filter line sets long or short; exits when the distance to the filter line narrows or the new-high balance breaks.

In the full pack (member center)

ES 60m Cyber Cycle Acceleration

Market
E-mini S&P 500
Bars
60-minute bars
Stop loss
3.857 × ATR(21)

The acceleration state of a fast and a slow Stochastic Cyber Cycle sets long or short; the exit is taken from the last digit of the Elder Force Index ATR and the cycle's distance from its average.

In the full pack (member center)

ES 60m Cyber Cycle Fast/Slow Cross

Market
E-mini S&P 500
Bars
60-minute bars
Stop loss
4.839 × ATR(30)

The position of the fast (4) Stochastic Cyber Cycle against the slow (8) one sets long or short; exits when the cycle crosses back through its 20/80 range position.

In the full pack (member center)

GC 60m Filter-Line Rise Count

Market
Gold
Bars
60-minute bars
Stop loss
9.096%

Multi-Mode Filter: the count of consecutive rises or falls of the bar against the filter line sets long or short; exits when the percentage distance to the filter trigger line crosses back.

Download Pine Script v6 Download .apx

Pine Script v6 · 49 KB · .apx · 406 KB

In the full pack (member center)

GC 60m Filter New-High with Volume Check

Market
Gold
Bars
60-minute bars
Stop loss
5.617%

A combination of the filter line's trend state, the change in distance from the new high and volume complexity sets long or short; exits when complexity makes a 20-bar high.

In the full pack (member center)

GC 60m Filter-Line Body Retest

Market
Gold
Bars
60-minute bars
Stop loss
7.261%

Multi-Mode Filter trigger line: the count of candle bodies breaking the previous bar and then retesting it sets long or short; exits while price keeps holding above a rising filter line.

In the full pack (member center)

CL 60m Cyber Cycle Trend Pullback

Market
Crude Oil (WTI)
Bars
60-minute bars
Stop loss
3.64 × ATR(29)

Enters when at least two of three Cyber Cycle conditions hold: the long cycle on one side of zero (with the trend), the short cycle pulling back against the long one, and the position of the fast trigger line against the slow one; exits when the cycle turns within 20 bars and it weakens after crossing up from oversold.

Download Pine Script v6 Download .apx

Pine Script v6 · 40 KB · .apx · 351 KB

In the full pack (member center)

CL 60m Filter-Line Candle Pierce

Market
Crude Oil (WTI)
Bars
60-minute bars
Stop loss
4.941 × ATR(22)

Multi-Mode Filter: a combination of the close against the filter line, a congestion pattern and volume leadership sets long or short; exits when the candle body moves back over the filter line.

In the full pack (member center)

YM 60m Cyber Cycle Turn Timing

Market
E-mini Dow ($5)
Bars
60-minute bars
Stop loss
7.627%

The direction of a turn in the Stochastic Cyber Cycle trigger line within 20 bars sets long or short; exits when the cycle value repeats its last digit.

In the full pack (member center)

RTY 60m Force Index & Gravity Momentum

Market
E-mini Russell 2000
Bars
60-minute bars
Stop loss
6.836%

A combination of the Elder Force Index direction and the Stochastic Center of Gravity fast and slow lines sets long or short; the exit is taken from changes in the Cyber Cycle and the Center of Gravity range position.

In the full pack (member center)

How to use an .apx file

  1. Open the .apx file in MultiAlphas.
  2. Import it to the strategy library.
  3. Export it from the results page.
  • The trial version can export 2 of these strategies (exporting the same strategy for another platform counts once); the full version exports all of them.
  • Pine Script, NinjaTrader 8, MT4 and MT5 code is regenerated on your computer from the market's bars: download that market's 60-minute bars before you export (the trial can download daily and 60-minute bars).
  • PowerLanguage and EasyLanguage export directly.
Tired of calculating by hand or testing one idea at a time?

MultiAlphas generates strategies automatically, runs them through multiple tests and exports them to 6 platforms in one click.

Free 7-day desktop trialOn your phone? Try the free Claude cloud backtest first7-day free trial, no credit card · Runs on standard PCs · Exports to 6 platforms

How it works

Each strategy is published as two files. The Pine Script v6 file is one complete script for TradingView. The .apx file opens in MultiAlphas: import it to the strategy library, then export it from the results page as PowerLanguage, EasyLanguage, Pine Script, NinjaScript (NinjaTrader 8), MQL4 or MQL5.

One .apx file, exported for your platformOpen it in MultiAlphas, import it to the library, export it from the results pageFree file.apx→Strategy libraryMultiAlphas→Export languages6PowerLanguage · EasyLanguage · Pine Script · NinjaScript · MQL4 · MQL5Test every export on your own data and costs before live use.

Two file types

The Pine Script v6 file is a single, complete script: open it in TradingView's Pine Editor, add it to a chart and test it there.

The .apx file is the strategy as MultiAlphas reads it. Open it in MultiAlphas, import it to the strategy library and export it from the results page in the language your platform reads.

Test before you trade

Each platform fills orders, counts sessions and reads data its own way, so the same strategy can give different results on different platforms. Compile and test every export on your own data and costs before any live use.

Questions

Are the strategy files free?

Yes. Single files download from this page with no sign-up, and the full pack downloads in the member center after a free sign-up. No card, nothing to buy.

Which file types are there?

Two: a single-file Pine Script v6 for TradingView, and an .apx file for MultiAlphas.

How do I get code for MultiCharts, TradeStation, NinjaTrader 8, MT4 or MT5?

Open the .apx in MultiAlphas, import it to the strategy library and export it from the results page. PowerLanguage and EasyLanguage export directly. NinjaTrader 8, MT4 and MT5 code is regenerated on your computer, so download that market's 60-minute bars first.

How many strategies can the trial export?

The trial version can export 2 different strategies; exporting the same strategy for another platform counts once. The full version exports all of them.

Are backtest results included?

Yes. Each .apx carries the backtest the strategy was built on (2014-12-31 to 2023-11-29, out-of-sample from 2021-03-19, US dollars, 1 contract per trade, commission and slippage included), and each Pine Script file lists its settings in its header. Test each strategy on your own data and costs. Past backtest results do not guarantee future performance.

Research and educational example only, not investment advice. Past backtest results do not guarantee future performance.