Guarda come scaricare robot di trading gratuitamente
Ci trovi su Facebook!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Visualizzazioni:
41
Valutazioni:
(1)
Pubblicato:
Aggiornato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

Panoramica

Questo indicatore fornisce segnali di acquisto e di vendita basati sull'oscillatore stocastico standard. È progettato per identificare potenziali punti di inversione monitorando i crossover che si verificano specificatamente all'interno delle zone di ipercomprato e ipervenduto.


Croce STC

Come funziona (logica di base) L'indicatore valuta le linee stocastiche (K e D) e convalida gli incroci in base a rigide condizioni di zona:

  • Segnale di acquisto (freccia blu): si attiva quando la linea K o D precedente si trova al livello di ipervenduto (impostazione predefinita 20) o al di sotto di esso, seguito dall’incrocio della linea K al di sopra della linea D.

  • Segnale di vendita (freccia rossa): si attiva quando la linea K o D precedente si trova al livello di ipercomprato (impostazione predefinita 80) o al di sopra di esso, seguito dall’attraversamento della linea K al di sotto della linea D.

  • Filtro dei segnali: L'indicatore utilizza una logica alternata (meccanismo anti-serie). Emette solo un segnale per direzione in sequenza (ovvero, un segnale di acquisto deve essere seguito da un segnale di vendita e viceversa) per evitare frecce ridondanti durante i trend continui.

  • Esecuzione: tutti i segnali e gli avvisi vengono elaborati rigorosamente sulle barre chiuse. Ciò garantisce che l’indicatore non si aggiorni in tempo reale né presenti fluttuazioni durante i movimenti dei prezzi in tempo reale.

Parametri di input

  • Impostazioni stocastiche: parametri standard per l’oscillatore, tra cui periodo K, periodo D, rallentamento, metodo MA e campo prezzo.

  • Limiti di inversione: livelli regolabili per le zone di ipervenduto (impostazione predefinita 20,0) e di ipercomprato (impostazione predefinita 80,0).

  • Impostazioni degli avvisi: opzione per abilitare o disabilitare gli avvisi a comparsa. Gli avvisi vengono attivati una volta per ogni segnale alla chiusura della candela.

Nota sull’utilizzo Trattandosi di uno strumento di inversione del momentum, si raccomanda di utilizzarlo in combinazione con altri metodi di analisi tecnica, quali filtri di tendenza su timeframe superiori, medie mobili o livelli di supporto/resistenza, piuttosto che fare affidamento su di esso come strategia autonoma.


Tradotto dall’inglese da MetaQuotes Ltd.
Codice originale https://www.mql5.com/en/code/75859

Contract Sizer: ladder, floor and a breaker that survives a deposit Contract Sizer: ladder, floor and a breaker that survives a deposit

Three position-sizing protections that do different things; confusing them is why so many accounts get wiped out: - ladder: one contract per X of balance, always applied as a CAP, even with manual lot sizing; - floor: below the minimum capital it does not trade; a new deposit is needed; - breaker: stops at X% below the peak, at any account size, and does not rearm by itself. What this library solves and almost none does: a deposit is not profit, and a withdrawal is not a loss. The breaker measures the drop against the balance peak. Untreated, a deposit made DURING a drawdown lifts balance and peak together, and the protection stops seeing the drop exactly when it would help. Here deposits and withdrawals shift the peak by the same amount. The peak is persisted to a file: a breaker that forgets the peak on a terminal restart is not a breaker. The demo simulates a deposit at the bottom of a drawdown. Run it with the deposit on and off and compare the "drop" column.

Safe Logger: why your log lines vanish while FileOpen keeps returning success Safe Logger: why your log lines vanish while FileOpen keeps returning success

Four EAs writing to the same file, all with FILE_SHARE_READ|FILE_SHARE_WRITE, FileSeek(SEEK_END), FileWrite, FileClose. Looks correct. Every FileOpen returns success. No error in the log. And the lines vanish. Reason: FILE_SHARE_WRITE lets all four open at the same time. All four call FileSeek(SEEK_END) and get THE SAME offset, because none has written yet. All four write at the same position. Whoever closes last wins. Three lines vanish silently. In my case: 12 events expected, 8 in the file. The fix is to open EXCLUSIVELY (no FILE_SHARE_WRITE) and retry while another EA holds the file. And to shout in the log when the retries run out: a log that fails silently is worse than no log at all, because you trust it. The demo script reproduces both modes. To see the loss, drag it onto four charts at the same time with safe mode off and count the lines in the CSV. On a single chart the defect does not show up - which is why it passes in testing and breaks in production.

RiskPilot Pro — Drag-to-Trade Risk Panel with Break-Even, Trailing and a Daily Loss Guard RiskPilot Pro — Drag-to-Trade Risk Panel with Break-Even, Trailing and a Daily Loss Guard

Drag your stop loss where you actually want it, hit Buy or Sell, and the lot size is already correct — no calculator, no spreadsheet. Handles break-even, trailing, and shuts trading down for the day if you hit your loss limit.

SMC Liquidity Sweep Scalper (Order Block EA with Live Win-Rate Tracking) SMC Liquidity Sweep Scalper (Order Block EA with Live Win-Rate Tracking)

A liquidity-sweep / order-block scalper with ATR-based sizing and a higher-timeframe trend filter. Every trade is tagged on the chart with the live historical win rate of that setup type — a running scorecard, not just boxes.