Cosa fa

Come vengono conteggiati i tocchi e gli sweep (solo barre chiuse)
Avvisi
Buffer (iCustom)
| Buffer | Contenuto |
|---|---|
| 0-5 | PDH, PDL, PWH, PWL, PMH, PML (prezzo) |
| 6-11 | numero di tocchi dello stesso livello |
Lettura shift 0. Il valore viene calcolato all'apertura della barra solo dalle barre chiuse e non viene modificato in seguito. Le barre più vecchie mantengono i valori registrati quando erano la barra corrente, quindi la cronologia precedente all'applicazione dell'indicatore è vuota (EMPTY_VALUE). I grafici sono DRAW_NONE; i valori sono visibili nella finestra Dati.
int h = iCustom(_Symbol, PERIOD_M15, "KeyLevelsTouch");
double pdh[1], t[1];
if(CopyBuffer(h, 0, 0, 1, pdh) == 1 && CopyBuffer(h, 6, 0, 1, t) == 1)
Print("PDH ", pdh[0], " touches ", t[0]); Note
Test
Verificato nello Strategy Tester (EURUSD M15, agosto-ottobre 2026, dati del broker). Su ogni barra, i sei livelli dei giorni/settimane/mesi precedenti e il numero di tocchi, letti in tempo reale all’apertura della barra, sono stati confrontati con una ricostruzione indipendente dai dati grezzi: tutti i 37.416 valori di livello e tutti i 37.416 conteggi dei tocchi corrispondevano. I conteggi degli sweep e i livelli a numeri tondi sono tracciati con la stessa regola ma non sono esposti nei buffer, pertanto sono stati verificati solo visivamente.
Tradotto dall’inglese da MetaQuotes Ltd.
Codice originale /en/code/79039
History Gaps: find missing bars before you backtest
Checks the chart's history against the symbol's trading sessions and separates real holes from holiday short sessions and days without bars. Marks the holes on the chart, shows coverage and the largest hole, warns when the history stops short of now, and can write a CSV report.
Prop Firm Equity Guard daily loss and max drawdown protector
Prop Firm Equity Guard protects prop-firm challenges and funded accounts. It monitors live equity against your daily loss and max drawdown limits, then closes all positions, deletes pending orders and locks trading before the firm's limit is hit. A safety buffer makes it act early, and anything opened while locked is closed instantly. It supports static and trailing drawdown, an optional profit target lock and alerts, saves its state through restarts, and shows an on-chart dashboard with room left and a reset countdown. It works alongside manual trading and other EAs.
ORB Box + VWAP Stats - opening range box, 1R/2R targets, session VWAP and historical break statistics
Traccia l'intervallo di apertura di una sessione configurabile (ora di inizio e durata in minuti, con un adeguamento al fuso orario del server), i livelli 1R e 2R al di sopra e al di sotto del box e il VWAP della sessione (volume per tick o volume reale, se fornito dal broker). Un piccolo pannello conta, nelle ultime N sessioni concluse, quante hanno superato l’intervallo solo al rialzo, solo al ribasso, su entrambi i lati o per niente, e con quale frequenza il prezzo ha raggiunto 1R e 2R dopo la prima rottura. Le statistiche sono conteggi storici: descrivono il passato e non prevedono nulla. Vengono utilizzate solo le barre chiuse, quindi non vi è alcun repaint; avvisi opzionali (popup, notifiche push e sonori) si attivano una volta per direzione per sessione quando una barra chiusa si chiude al di fuori del box. È possibile leggere otto buffer (intervallo, obiettivi, VWAP, stato di rottura) da un Expert Advisor tramite iCustom(). Funziona su timeframe da M1 a M30, ricalcola solo le nuove barre ed elimina i propri oggetti dal grafico quando viene rimosso. Solo lettura: non effettua mai operazioni di trading. Nessuna DLL, nessuna richiesta web.
AesHmac: AES-256 encryption with tamper check and password keys for MQL5
One include file that encrypts texts and bytes so only a program with the same key can read them. A wrong key or a changed message is refused instead of read as garbage, keys can come from a password, and the code is checked against the official NIST and RFC test vectors.