Le chiusure vengono arrotondate in box da 20 punti per costruire le colonne point and figure nel codice. Un reversal di 4 box al rialzo da una colonna in discesa apre un long, e un reversal di 4 box al ribasso apre uno short. Ogni segnale inverte la posizione, con uno stop di 350 punti come protezione.
Miglior esecuzione su 5. DAX 40, 1 ora, spread 3, dall'esecuzione sweeps:2026-09-24-DAX40-1h-opt.tsv:7.
| Periodo | Fino al 2026-09-24 |
| Strumento | DAX 40, 1 ora |
| Spread | 3 punti |
| Contratti | 1 |
| Capitale iniziale | 1,000,000 |
| Costi | Solo spread. Commissioni e finanziamento overnight non sono inclusi. |
| Barre | Fino a 200,000 barre, meno dove lo strumento ha meno storico |
| Ultimo test | 2026-09-25 |
| positionSize Contratti per operazione | 1 |
| boxSize Dimensione in prezzo di un box point and figure | 20 |
| reversalBoxes Box contro la colonna necessari per invertire il trend | 4 |
| stopLossPoints Stop protettivo in punti | 350 |
Ogni esecuzione
| Mercato | Timeframe | PF | Operazioni | % successo | Netto | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Miglior esecuzione | 1 ora | n/a | 6,179 | 36.37 | 10,211 EUR | -7,950 |
| Argento | 5 min | n/a | 2,009 | 37.23 | 27,104 USD | -17,023 |
| Argento | 10 min | n/a | 1,838 | 37.11 | 25,000 USD | -17,197 |
| DAX 40 | 4 ore | n/a | 3,600 | 37.64 | 10,191 EUR | -7,863 |
| Oro | 4 ore | n/a | 296 | 37.16 | 1,631 EUR | -921 |
Grafici
Il codice
// ============================================================ // Point and Figure Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 1 hour // ============================================================ // --- Settings --- DEFPARAM CumulateOrders = false // --- Parameters --- positionSize = 1 // contracts per trade boxSize = 20 // price size of one point and figure box reversalBoxes = 4 // boxes against the column needed to flip trend stopLossPoints = 350 // protective stop in points // --- Indicators --- // Column state, kept between bars. Both start at 1 as in the tested code. ONCE upColumn = 1 ONCE downColumn = 1 ONCE levelsSeeded = 0 ONCE downLowSeeded = 0 ONCE upHighSeeded = 0 // Price rounded down to the nearest box (the 0.5 makes round() round down) boxLevel = round((close / boxSize) - 0.5) * boxSize // Seed both extremes on the first bar IF levelsSeeded = 0 THEN downColumnLow = boxLevel upColumnHigh = boxLevel levelsSeeded = 1 ENDIF IF boxLevel > boxLevel[1] THEN IF upColumn = 1 THEN downColumn = 0 // one-time reseed of the down column low, as in the tested code IF downLowSeeded = 0 THEN downColumnLow = boxLevel downLowSeeded = 1 ENDIF IF boxLevel > upColumnHigh THEN upColumnHigh = boxLevel ENDIF ENDIF IF downColumn = 1 AND boxLevel >= downColumnLow + (reversalBoxes * boxSize) THEN upColumnHigh = boxLevel upColumn = 1 downColumn = 0 ENDIF ELSIF boxLevel < boxLevel[1] THEN IF downColumn = 1 THEN upColumn = 0 // one-time reseed of the up column high, as in the tested code IF upHighSeeded = 0 THEN upColumnHigh = boxLevel upHighSeeded = 1 ENDIF IF boxLevel < downColumnLow THEN downColumnLow = boxLevel ENDIF ENDIF IF upColumn = 1 AND boxLevel <= upColumnHigh - (reversalBoxes * boxSize) THEN downColumnLow = boxLevel upColumn = 0 downColumn = 1 ENDIF ENDIF
Altre 16 righe: le regole di ingresso e di uscita.
Configurazione
Domande
Sì. Le colonne point and figure sono ricostruite dalle chiusure all'interno del codice, quindi non serve alcun tipo di grafico speciale.
DAX 40 1 ora e 4 ore hanno prodotto entrambi circa 10,200 EUR (10,210.8 e 10,191.3). Anche Silver 5 e 10 minuti sono stati positivi, e Gold 4 ore ha prodotto 1,630.6 EUR.
Su DAX 40 1 ora il peggior drawdown è stato di 7,950.4 EUR con 1 contratto.
Ha dato il miglior risultato su DAX 40 negli sweep, e il box da 20 punti si adatta al range orario tipico di quell'indice.
Correlati
La community ProRealAlgos ottiene le regole complete, il codice completo e il portafoglio automatizzato.