Re: 👨‍🔬 Cagliostro's MT5 Laboratory

71
Cagliostro wrote: Sat Apr 26, 2025 9:00 am Hi, no issues on my side, tried different instruments and 2 different PCs. Unfortunately it seems an issue on your side, client or broker. Did you try to remove the luxalgo indicator? Their stuff is good but horribly optimized. I suggest you to use a previous version if this does not work well for you.

image_2025-04-26_005810494.png
image_2025-04-26_005841933.png
The previous oracles were working perfectly. Since I updated to the latest version, it no longer works. I found a saved oracle in 'XU MT5 v006,' and that one works flawlessly. I Use Pepperstone

Can you pass me version 2 if you still have it?

+C+: here you go, if you downloaded it, you should have it in your download folder, unless you deleted it on purpose. I use ICM and Pepperstone, no issues
Image
Image
Image
Image
Image
Image
These users thanked the author Thoth for the post:
Ricstar_8
Minor bugs are fixed without updating the changelog and new replies. Check back from time to time for new minor releases. Thanks


Re: 👨‍🔬 Cagliostro's MT5 Laboratory

72
Thank's Cagliostro for the 2.0 file.
I'm used to doing copy and paste. I'll be more careful and keep a backup.
Version 2 loaded in just a few seconds without any issues.
I don’t know what problems Version 2.1 has with my MT5 (I don’t use Pepperstone’s).
These users thanked the author Thoth for the post:
Ricstar_8
Minor bugs are fixed without updating the changelog and new replies. Check back from time to time for new minor releases. Thanks

Re: 👨‍🔬 Cagliostro's MT5 Laboratory

73
KoncordePlus
The KoncordePlus indicator is a sophisticated tool for analyzing volume-driven market dynamics through a combination of technical metrics and distinct visual patterns. Below is a detailed examination of its patterns, signals, and the highest-probability setups, grounded in the indicator’s design and functionality as observed through its implementation.

Patterns and Signals
KoncordePlus integrates several volume and momentum-based indicators—Positive Volume Index (PVI), Negative Volume Index (NVI), Relative Strength Index (RSI), Money Flow Index (MFI), Bollinger Bands (BB), and Stochastic Oscillator—to generate actionable patterns and signals. These are visualized through a combination of trend lines, area fills, and markers, each representing specific market conditions:

Main Plots:
-Trend Line (Brown): Represents a composite trend derived from RSI, MFI, BB, and a smoothed Stochastic Oscillator (K). It serves as a central reference for overall market direction, dynamically changing color (brown to dark brown) based on its slope to indicate momentum shifts.
-TrendMA (Red): A moving average of the Trend line, configurable as SMA, EMA, or WMA, providing a smoothed trend reference for identifying crossovers.
-MinnowsFill (Green Area): Reflects the PVI’s oscillation relative to its windowed extremes, capturing retail or “minnow” activity. It plots above the Trend line, indicating bullish retail sentiment when prominent.
-SharksFill (Blue Area): Reflects the NVI’s oscillation, representing institutional or “shark” activity. It plots below the zero line, indicating bearish institutional sentiment when dominant.
-TrendFill (Brown Histogram): A histogram version of the Trend line, providing a visual representation of trend strength.

Major Signals:
-Mirror (Cyan Star): Triggered when SharksFill (NVI) is positive and MinnowsFill (PVI) is negative, signaling a potential reversal where institutional buying (positive NVI) contrasts with retail selling (negative PVI). This pattern often indicates a bullish setup as institutions accumulate while retail capitulates.
-Bear Hug (Red Star): Triggered when MinnowsFill is positive, SharksFill is negative, and MinnowsFill exceeds the Trend line. This suggests retail buying (positive PVI) against institutional selling (negative NVI), often marking a bearish reversal as retail euphoria meets institutional distribution.

Minor Signals:
-Trend Up (DeepSky Blue Dot): Occurs when the Trend line crosses above TrendMA, indicating a potential bullish trend initiation.
-Trend Down (Red Dot): Occurs when the Trend line crosses below TrendMA, signaling a potential bearish trend initiation. These crossovers highlight shorter-term momentum shifts within the broader trend.

New Patterns (Squares): (STILL IN EXPERIMENTAL PHASE)
-ZeroUp (Gold Square): Triggered when the Trend line crosses above the zero line (trendBuf[j] > 0 && trendBuf[j - 1] <= 0). This indicates the start of a bullish trend, often a precursor to sustained upward movement.
-PrimaveraUp (Green Square): Triggered when a Trend Up signal occurs (trendBuf[j] > trendMA[j] && trendBuf[j - 1] <= trendMA[j - 1]) and MinnowsFill exceeds the Trend line (minTop[j] > trendBuf[j]). This pattern suggests strong retail participation in a bullish trend, increasing the likelihood of continuation.
-HarpoonUp (Cyan Square): Triggered when SharksFill crosses above TrendMA (shaTop[j] > trendMA[j] && shaTop[j - 1] <= trendMA[j - 1]), with MinnowsFill below zero (minTop[j] < 0) and SharksFill positive (shaTop[j] > 0). This indicates institutional buying (positive NVI) amidst retail selling, often marking a high-probability bullish reversal.
-HarpoonDn (Orange-Red Square): Triggered when SharksFill crosses below zero (shaTop[j] < 0 && shaTop[j - 1] >= 0), with MinnowsFill above both the Trend line and TrendMA (minTop[j] > trendBuf[j] && minTop[j] > trendMA[j]). This suggests institutional selling (negative NVI) against retail buying, often marking a high-probability bearish reversal.

Use on Higher Timeframes: The indicator’s signals are more significant on higher timeframes (e.g., H1, H4, Daily), where volume and momentum patterns reflect more substantial market movements.

Based on the work of blai5.net/category/indicadores/koncorde
These users thanked the author Cagliostro for the post (total 7):
Abzak, davidpont, lean, LakoFX, nbibu, mazibee, mrtools
"I conjure from shadows and shape fortunes from the unseen. The treasure lies hidden in plain sight, beneath the sunlight." - Cagliostro

Re: 👨‍🔬 Cagliostro's MT5 Laboratory

74
UPDATED

PS: if you downloaded it before the 4AM CET, please redownload the correct file.
Cagliostro wrote: Sat Mar 22, 2025 2:19 am Hello fellow traders.

I thought that could be interesting to share with you some of the MT5 stuff I am testing, researching and coding. As some of you know, I switched fully to MT5 last month, so am working to improve my MT5 arsenal.

List of Indicators
-The Oracle
-AVWAP with Bands
-Radius Trend
-X-Stoch
-KoncordePlus

Rules are simple.
-This is a testing lab, you don't pay to get and test stuff, it's all free.
-As per above, feedback and suggestions will be much appreciated.
-But no complaints or lamentations will be appreciated or considered.

Today's the Spring Equinox, the real start of the new year! So there is no better day to start sharing something!

The Oracle
In the shadowed depths of Delphi ancient ruins, where logic and mystery intertwine, lies The Oracle—an artifact of unfathomable power. Forged in an era when the stars whispered secrets to the bold, it transcends mere computation, unveiling glimpses of fate’s hidden currents. Its cryptic code, a relic of a lost civilization, pulses with esoteric wisdom, inviting the daring to pierce the veil of time—though its full mysteries remain tantalizingly out of reach.

It includes 7 indicators chosen, tested and optimized among hundreds in the last 4 months, including the Ehlers's Universal Strength indicator and my Rolling VWAP. Keep it at level 6 for M1/M3/M5 trading and let me know how it goes. Happy Equinox!

April 1 Update [Version 1.0], download it again.
-Incremental processing for all trend updates
-Buffer optimization
-VWAP pre-computation
-Added a Trend Strength Index

April 2 Update, download it again.
-Added customization for histograms and TSI label

April 8 Update, download it again.
-Added MTF validation
-Improved memory management
-Implemented incremental resizing for all buffers
-Fixed trend array stale impacting specific brokers
-Added Data Fetch Logging
-Added Error Handling for all indicators

April 9 Update, download it again.
-Removed redundant trend array shrink
-Improved FetchIndicatorData
-Aligned Local Timers to Server Timers
-Fixed MQL5’s native data sync in retry loop

April 13 Update, download it again.
-Added TF spec to Alerts
-Improved fault tolerance logic

April 19 Update [Version 2.0], download it again.
-Added multiple instances logic for calculations and alerts
-Replaced global variables with instance-specific storage
-Added MTF data sync checks with fallback
-Implemented instance-specific sync failure and anti-freeze mechanism
-Enhanced MTF data fetching with hybrid fetch resizing and index validation

April 25 Update, download it again.
-Instance complete isolation + timer-based handle sync to improve multi instance and multi chart setups.
-MTF sync watchdog with automatic fallback – prevents freezes when higher-timeframe series aren’t ready.
-Per bar indicator fetch cache – to cut CopyBuffer calls by ~50 %.
-Cumulative sum arrays – to reduce CPU load by ~ 40/50%
-Safe math guards – averts divide-by-zero exceptions and silent freezes.
-Histogram color/index refactor – ensures crisp visuals with zero repaint artefacts.
-Alert state isolation – blocks duplicate pop-ups and aligns messages with the correct chart.

April 28 Update, download it again.
-Implemented a new ring-buffer architecture, reducing memory usage by ~95–96%.
-Added resize-on-demand mechanism, cutting CPU overhead by ~90% for array operations.
-Implemented a MTF dynamic caching system to ensure zero recalculation on HTF closed candles
-Moved periodic object cleanup to OnTimer, eliminating per-tick overhead.
-Added pre-sized caches, preventing per-bar resizes.
-Implemented data tail clearing, ensuring accuracy during partial data fetches and broker data blackouts.
-Added series orientation for MTF buffers, improving data ordering.
-Added a separate performance logging logic, enhancing debugging clarity.

The Oracle.ex5
These users thanked the author Cagliostro for the post (total 8):
Abzak, spla, neversell, kudrpenk, davidpont, Energybias, thomdel, mazibee
"I conjure from shadows and shape fortunes from the unseen. The treasure lies hidden in plain sight, beneath the sunlight." - Cagliostro

Re: 👨‍🔬 Cagliostro's MT5 Laboratory

75
Cagliostro wrote: Mon Apr 28, 2025 11:34 am UPDATED

April 28 Update, download it again.
-Implemented a new ring-buffer architecture, reducing memory usage by ~95–96%.
-Added resize-on-demand mechanism, cutting CPU overhead by ~90% for array operations.
-Implemented a MTF dynamic caching system to ensure zero recalculation on HTF closed candles
-Moved periodic object cleanup to OnTimer, eliminating per-tick overhead.
-Added pre-sized caches, preventing per-bar resizes.
-Implemented data tail clearing, ensuring accuracy during partial data fetches and broker data blackouts.
-Added series orientation for MTF buffers, improving data ordering.
-Added a separate performance logging logic, enhancing debugging clarity.
Your continuous developments, attitude and devotion are breathtaking!
Thank you for changing trading!
These users thanked the author davidpont for the post:
Cagliostro