Join waitlist
Strategies / Momentum / Flux Polarity Reversal

Flux Polarity Reversal

Uses a normalized flux line and a guide line to set a polarity of +1 or -1 when both agree in sign. It buys at +1, and sells short when polarity flips from +1 to -1.

MomentumLong & shortSwingGoldDaily
2.19Profit factor
3,936Net profit EUR
44.13%Win rate
213Trades
-809Max drawdown
18.48Avg trade

Best run of 28. Gold, Daily, spread 0.6, from run pf:2026-10-12-GOLD-D.tsv:13.

Entry rules, long

  1. Polarity is +1 when the flux line and the guide line are both above zero.

Entry rules, short

  1. Polarity is -1 when the flux line and the guide line are both below zero.

Exit rules

  1. A short is closed at market when the flux line crosses over the guide line.

Test conditions

PeriodUp to 2026-10-12
InstrumentGold, Daily
Spread0.6 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest runDaily2.19 21344.133,936 EUR-809
Dow Jones4 hours1.92 15346.4128,339 EUR-5,565
DAX 4030 min1.20 2,75140.2022,215 EUR-3,951
USD/JPY1 hourn/a 2,09341.61791,330 USD-291,450
USD/JPY30 minn/a 2,78639.05775,380 USD-266,650
USD/JPY15 minn/a 2,86237.81575,250 USD-272,250
USD/JPY10 minn/a 2,96838.58448,680 USD-177,080
USD/JPY4 hoursn/a 53938.40387,750 USD-305,550
Nikkei 2254 hoursn/a 37941.4246,630 USD-14,096
Nikkei 225Dailyn/a 15742.0438,744 USD-22,439
SilverDailyn/a 16139.1335,219 USD-25,287
Nikkei 2251 hourn/a 1,44837.1530,376 USD-19,330
Dow JonesDailyn/a 23040.8721,522 EUR-10,642
Nasdaq 100Dailyn/a 15736.9419,558 EUR-5,914
Nasdaq 10030 minn/a 2,87937.7615,967 EUR-8,117
Nasdaq 1001 hourn/a 1,84639.1114,745 EUR-4,515
Nasdaq 10015 minn/a 2,80538.3614,720 EUR-6,136
DAX 404 hoursn/a 45739.8213,992 EUR-6,277
DAX 40Dailyn/a 22938.8610,586 EUR-7,248
Nasdaq 1004 hoursn/a 49137.8810,070 EUR-7,043
GBP/USDDailyn/a 20740.108,822 USD-7,282
Brent Crude4 hoursn/a 26541.897,994 EUR-6,045
S&P 500Dailyn/a 27133.583,853 EUR-1,367
S&P 5004 hoursn/a 51143.053,590 EUR-1,205
Gold30 minn/a 2,85336.842,986 EUR-1,100
S&P 5001 hourn/a 1,86738.622,825 EUR-1,122
Gold1 hourn/a 1,79736.952,413 EUR-1,159
S&P 50030 minn/a 2,91737.162,245 EUR-1,368

Charts

Results by run

Top 10 of 28 runs. The full list is in the table above.

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Flux Polarity Reversal
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long & short
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE inta = 0
ONCE intb = 0

src = TotalPrice
dirup = 0

76 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

SMAEMAStandard DeviationWilder Average
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run Flux Polarity Reversal in ProOrder?

Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.

Which markets was it tested on?

It was tested on 28 market and timeframe combinations. The best run was Gold, Daily, with a profit factor of 2.19 over 213 trades.

How large was the drawdown?

The best run had a maximum drawdown of 809 EUR at the tested position size, against a net result of 3,936 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

MA Slope Momentum

Also a momentum strategy.

2.11 PF · 126 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs