EA algostat
- Experts
- Francesco Lippo
- Versione: 1.0
- Attivazioni: 5
Questo Expert Advisor (EA) è progettato per effettuare operazioni di trading automatizzate basate su una serie di criteri tecnici su un grafico a 1 ora per il simbolo USDCHF. Ecco una descrizione dettagliata del suo funzionamento:
### 1. **Dimensione del Lotto e Numero Massimo di Ingressi**
- **LotSize**: La dimensione del lotto iniziale per ogni operazione è impostata a 0.1.
- **Max_Entries**: L'EA può aprire fino a 4 operazioni contemporaneamente. Per ogni nuova operazione, la dimensione del lotto aumenta proporzionalmente (0.1, 0.2, 0.3, ecc.).
### 2. **Indicatori Tecnici Utilizzati**
- **ATR (Average True Range)**: Calcolato su un periodo di 14 barre (1 ora ciascuna) per misurare la volatilità. L'ATR viene moltiplicato per 2.0 per determinare i livelli dinamici di Take Profit (TP) e Stop Loss (SL).
- **MFI (Money Flow Index)**: Calcolato su un periodo di 14 barre. Utilizzato per identificare condizioni di ipercomprato (>80) o ipervenduto (<20).
- **ADX (Average Directional Index)**: Calcolato su un periodo di 14 barre. Viene utilizzato per confermare la forza del trend, con una soglia di 25.
- **RSI (Relative Strength Index)**: Calcolato su un periodo di 14 barre. Utilizzato per confermare condizioni di ipercomprato (>70) o ipervenduto (<30).
### 3. **Logica di Ingresso**
- L'EA verifica se c'è un pattern rialzista o ribassista identificato tramite alcune funzioni (`isBullishPattern`, `isBearishPattern`).
- **Pattern Ribassista**:
- L'EA cerca pattern ribassisti come il "Shooting Star", il "Bearish Engulfing" o l'"Even
### 3. **Logica di Ingresso** (Continuazione)
- **Pattern Rialzista**:
- L'EA identifica pattern rialzisti come il "Hammer", il "Bullish Engulfing" o il "Morning Star".
- Se uno di questi pattern rialzisti è confermato, e i seguenti criteri sono soddisfatti:
- L'ADX è superiore a 25 (indicando un trend forte).
- L'MFI è inferiore a 80 (indicando che il mercato non è ipercomprato).
- L'RSI è inferiore a 70 (indicando che il mercato non è ipercomprato).
- L'EA apre una posizione di acquisto (BUY) con la dimensione del lotto corrente.
- **Pattern Ribassista**:
- L'EA identifica pattern ribassisti come il "Shooting Star", il "Bearish Engulfing" o l'"Evening Star".
- Se uno di questi pattern ribassisti è confermato, e i seguenti criteri sono soddisfatti:
- L'ADX è superiore a 25 (indicando un trend forte).
- L'MFI è superiore a 20 (indicando che il mercato non è ipervenduto).
- L'RSI è superiore a 30 (indicando che il mercato non è ipervenduto).
- L'EA apre una posizione di vendita (SELL) con la dimensione del lotto corrente.
### 4. **Dimensione del Lotto e Ingressi Successivi**
- Se l'EA ha già aperto delle posizioni, la dimensione del lotto per i nuovi ingressi aumenta proporzionalmente al numero di operazioni già aperte, fino a un massimo di 4 ingressi. Ad esempio:
- Primo ingresso: 0.1 lotti.
- Secondo ingresso: 0.2 lotti.
- Terzo ingresso: 0.3 lotti.
- Quarto ingresso: 0.4 lotti.
### 5. **Take Profit (TP) e Stop Loss (SL) Dinamici**
- Entrambi i livelli di Take Profit e Stop Loss sono calcolati dinamicamente in base all'ATR. Questo permette all'EA di adattarsi alla volatilità corrente del mercato:
- **TP** = ATR * ATR_Multiplier (2.0)
- **SL** = ATR * ATR_Multiplier (2.0)
### 6. **Filtro per la Volatilità**
- L'EA evita di aprire operazioni se l'ADX è inferiore a 25, in quanto questo potrebbe indicare un mercato laterale o senza una direzione chiara.
### 7. **Funzionamento su USD/CHF a 1H**
- Questo EA è ottimizzato per operare sul grafico a 1 ora del cambio USD/CHF. La scelta del timeframe e della coppia di valute è importante perché influisce direttamente sulla performance del trading automatizzato. Su questo timeframe, l'EA cerca opportunità di trading basate su pattern di candele e conferma i segnali tramite gli indicatori tecnici descritti sopra.
### 8. **Conclusioni**
- L'EA è progettato per operare in mercati con trend forte e sfrutta pattern di candele per determinare i punti di ingresso. La gestione del rischio è dinamica grazie all'uso di TP e SL basati sull'ATR, e la dimensione del lotto è adattativa in base al numero di operazioni aperte.