La banda inferiore è una media mobile triangolare a 141 bar meno 2.4 volte ATR(141). Una chiusura che risale sopra quella banda apre un long. Vende sulla linea centrale o su uno stop del 3% o un target del 3%.
Migliore esecuzione su 8. FTSE 100, 15 min, spread 2, dall'esecuzione sweeps:2026-09-17-FTSE100-15m-opt.tsv:3.
| Periodo | Fino al 2026-09-17 |
| Strumento | FTSE 100, 15 minuti |
| Spread | 2 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-17 |
| positionSize Contratti per operazione | 1 |
| tmaHalfLength Metà della lunghezza della media triangolare | 141 |
| atrPeriod Lunghezza ATR per la larghezza del canale | 141 |
| atrMultiplier Larghezza del canale in ATR | 2.4 |
| stopLossPct Stop protettivo, percentuale | 3 |
| takeProfitPct Target di profitto, percentuale | 3 |
Ogni esecuzione
| Mercato | Timeframe | PF | Operazioni | % successo | Netto | Max DD |
|---|---|---|---|---|---|---|
| FTSE 100Miglior esecuzione | 15 min | n/a | 1,484 | 77.29 | 3,189 EUR | -1,261 |
| Nikkei 225 | 15 min | n/a | 1,481 | 74.81 | 14,734 USD | -6,454 |
| Dow Jones | 4 ore | n/a | 90 | 78.89 | 9,366 EUR | -4,362 |
| Dow Jones | 30 min | n/a | 607 | 76.28 | 7,653 EUR | -5,013 |
| Petrolio Brent | Giornaliero | n/a | 102 | 56.86 | 3,663 EUR | -1,291 |
| DAX 40 | 4 ore | n/a | 300 | 73.33 | 3,578 EUR | -2,460 |
| FTSE 100 | Giornaliero | n/a | 152 | 59.87 | 1,807 EUR | -1,127 |
| S&P 500 | 4 ore | n/a | 306 | 74.84 | 1,190 EUR | -550 |
Grafici
Il codice
// ============================================================ // TMA Channel Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 15 minutes // ============================================================ // --- Settings --- DEFPARAM CumulateOrders = false DEFPARAM PreloadBars = 10000 // --- Parameters --- positionSize = 1 // contracts per trade tmaHalfLength = 141 // half length of the triangular moving average atrPeriod = 141 // ATR length for the channel width atrMultiplier = 2.4 // channel width in ATRs stopLossPct = 3 // protective stop, percent takeProfitPct = 3 // profit target, percent // --- Indicators --- // Triangular average built by hand: weights fall linearly with bar age. weightedSum = (tmaHalfLength + 1) * close weightTotal = (tmaHalfLength + 1) weight = tmaHalfLength FOR j = 1 TO tmaHalfLength DO weight = weight - 1 weightedSum = weightedSum + (weight * close[j]) weightTotal = weightTotal + weight NEXT bandOffset = AverageTrueRange[atrPeriod](close) * atrMultiplier midBand = weightedSum / weightTotal lowerBand = midBand - bandOffset
Altre 16 righe: le regole di ingresso e di uscita.
Configurazione
Domande
Sì, tutte le regole sono automatizzabili. Il codice riscritto non è stato verificato in compilazione, quindi eseguilo prima in ProBacktest.
FTSE 100, Nikkei 225, Dow Jones, DAX 40, S&P 500 e Brent Crude, e tutte le 7 esecuzioni elencate sono state positive. Nikkei 225 15 minuti ha prodotto USD 14,734.4.
L'esecuzione su FTSE 100 15 minuti ha avuto un max drawdown di EUR 1,261.1 contro un profitto netto di EUR 3,188.5.
Ha dato la migliore esecuzione registrata. Le impostazioni lunghe a 141 bar mantengono il canale lento anche su bar intraday.
Correlati
La community ProRealAlgos ottiene le regole complete, il codice completo e il portafoglio automatizzato.