Re: 👨‍🔬 Cagliostro's MT5 Laboratory

121
UPDATED
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
-Spearman-Pearson with Entries
-Black Zones

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!

****Update Log for the current Month****

May 7 Update, download it again.
-Added Trend Label TF
-Improved Array compaction logic
-Improved Timer Management for multi-instances
-Added buffering for MTF Sync

May 9 Update, download it again.
-Improved initialization data checks to minimize freezes on indicator loading and TF changes.
-Added unique instance IDs to enhance multi-instance support.
-Improved buffer management to prevent data corruption and reduce memory usage.
-Optimized VWAP calculations for large TF
-Updated HTF cache
-Improved memory clean-up mechanism to match the new multi-instance architecture

May 25 Update, download it again.
-Robust Cleanup: Improved resource cleanup ensures all objects and handles are freed for the specific instance, reducing memory leaks and chart clutter.
-Alert State Pruning: Unused alert state entries are removed when an instance is deinitialized, preventing memory buildup during long sessions.
-Faster Maintenance: Timer interval reduced from 60 seconds to 1 second for chart redraws and object cleanup, ensuring smoother multi-instance operation.
-HTF Bar Close Detection: Detects higher timeframe (HTF) bar closes (e.g., M15 on M5 chart), triggering fresh signal calculations and eliminating manual chart refresh needs in MTF mode.
-Dynamic Signal Updates: Persisted mode uses “Original” logic (recalculating based on new data) only on HTF bar closes with ready data, reducing stale signals.
-Improved Sync Handling: Increased MTF data sync retries from 3 to 10 and added a 30-second timeout, switching to the current timeframe if sync fails too long, preventing prolonged freezes.
-Forced Chart Redraws: Automatically redraws the chart after HTF bar closes, ensuring signals and trend labels update visually without delay.
-Cache Management: Clears cached HTF data for the latest bar (y=0) on HTF close and refreshes historical data (y>0) every 100 ticks to catch broker data corrections, ensuring accurate signals.


The Oracle.ex5


Note: if you face issues, please use version 2.0

Oracle 2.0.ex5
These users thanked the author Cagliostro for the post (total 8):
davidpont, mazibee, jackboton, asgariHoo, Abzak, WN25, Lucas, LakoFX
"I conjure from shadows and shape fortunes from the unseen. The treasure lies hidden in plain sight, beneath the sunlight." - Cagliostro