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 10):
davidpont, mazibee, jackboton, asgariHoo, Abzak, WN25, Lucas, LakoFX, ManilaSpurs, SdW25
"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

122
Cagliostro wrote: Wed May 14, 2025 10:43 pm UPDATED
Hello C,
Just inform, there are still continuous log messages. would you pls check. many thanks

NP 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26263: NEUTRAL (invalid shift)
GJ 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26262: NEUTRAL (invalid shift)
PO 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26261: NEUTRAL (invalid shift)
MQ 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26260: NEUTRAL (invalid shift)
MK 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26259: NEUTRAL (invalid shift)
HL 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26258: NEUTRAL (invalid shift)
CF 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26257: NEUTRAL (invalid shift)
JH 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26256: NEUTRAL (invalid shift)
QM 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26255: NEUTRAL (invalid shift)
DG 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26254: NEUTRAL (invalid shift)
OH 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26253: NEUTRAL (invalid shift)
NR 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26252: NEUTRAL (invalid shift)

+C+: hi, please share your settings.

Re: 👨‍🔬 Cagliostro's MT5 Laboratory

123
UPDATED: VERSION 3.0
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.

May 30 Update, download it again.
Version 3.0 is here! > Hybrid is meant to be used mainly for testing.
-Added Hybrid mode, a third logic between Original and Persisted. Trend signals soften into neutral only after two consecutive weak vote bars, reducing whipsaws without sacrificing responsiveness.
-Added option to remove the Vote Count Labels.
-Improved HTF Cache with dynamic sizing.
-Improved redraw logic for for HTF bars and robustness vs HTF data lag and errors.
-Revamped multi-instance deinitialization to ensure full clearing of handles, buffers and timers.
-Added checks to validate cache and syncing loops for all the modes.

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 13):
mazibee, Ababai, jackboton, Abzak, eduarescobar, Dimanche, SdW25, kudrpenk, WN25, ManilaSpurs, spla, ricosuaveiii, davidpont
"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

125
FiveS wrote: Thu May 29, 2025 5:18 pm Hello C,
Just inform, there are still continuous log messages. would you pls check. many thanks

NP 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26263: NEUTRAL (invalid shift)
GJ 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26262: NEUTRAL (invalid shift)
PO 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26261: NEUTRAL (invalid shift)
MQ 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26260: NEUTRAL (invalid shift)
MK 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26259: NEUTRAL (invalid shift)
HL 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26258: NEUTRAL (invalid shift)
CF 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26257: NEUTRAL (invalid shift)
JH 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26256: NEUTRAL (invalid shift)
QM 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26255: NEUTRAL (invalid shift)
DG 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26254: NEUTRAL (invalid shift)
OH 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26253: NEUTRAL (invalid shift)
NR 0 11:31:31.422 TDI CROSS HISTO (EURUSD+,H1) Bar 26252: NEUTRAL (invalid shift)

+C+: hi, please share your settings.
helo C,
Looks like it happens when I switch symbol and/or switch timeframe.


Re: 👨‍🔬 Cagliostro's MT5 Laboratory

126
UPDATED
Cagliostro wrote: Mon May 12, 2025 9:57 am TDI CROSS MTF


image_2025-05-12_015515594.png


The TDI CROSS is designed to provide a histogram-based representation of trend crossovers using principles derived from the Traders Dynamic Index (TDI). This indicator incorporates Multi-Timeframe (MTF) functionality and filtering options to assist in analyzing market trends.

Main Functionalities
-Triple-MA Crossover Logic: Identifies bullish and bearish signals through the crossover of a fast MA, medium MA, and slow MA applied to RSI.
-Histogram Display: Presents signals as a histogram, with colors indicating the trend state and strength, adjusted by a Level 50 filter.
-Level 50 Filter Modes: Offers three modes (No Filter, Level 50 Filter, Level 50 soft) to filter signals based on the Yellow Line’s position relative to the 50 level, including a hysteresis option to reduce noise.
-MTF Capability: Supports signal calculation on any timeframe (current or higher), facilitating cross-timeframe trend analysis.
-TDI Trend Label: Displays a label aligned with TDI’s trend bias, where the direction label’s color reflects the histogram’s color scheme.

Reading the Histogram Colors
The histogram’s colors indicate the trend state and signal strength:
-Light Green (Bullish): Represents a basic bullish crossover when No Filter is selected.
-Dark Green (Strong Bullish): Indicates a trend-aligned bullish signal (Yellow Line ≥ 50) when Filters are active.
-Light Red (Bearish): Represents a basic bearish crossover when No Filter is selected.
-Dark Red (Strong Bearish): Indicates a trend-aligned bearish signal (Yellow Line < 50) when Filters are active.
-Grey (Neutral): Shown when no crossover signal is present or when the trend conditions are not met.

Jun 2 Update, download it again.
-Added Persistent Mode (Oracle Style) for both filtered and unfiltered settings.
-Improved accuracy


TDI CROSS HISTO.ex5
These users thanked the author Cagliostro for the post (total 10):
Jimmy, mazibee, asgariHoo, jackboton, boytoy, FiveS, thomdel, kudrpenk, WN25, davidpont
"I conjure from shadows and shape fortunes from the unseen. The treasure lies hidden in plain sight, beneath the sunlight." - Cagliostro