Re: 👨‍🔬 Cagliostro's MT5 Laboratory

151
Cagliostro wrote: Fri Jun 27, 2025 11:39 am MOTHER OF ALL DIVERGENCES (M.O.A.D.)

Hi folks, I needed a good divergence indicator for MT5 and got inspired by the famous Divergence for Many Indicators.

It was not an easy task, but here we go. I found some logical flaws in the MT4 code, so fixed them and improved overall accuracy:
-OBV was wrongly looking into the future.
-SimpleMA math was flawed, returning wrong numbers.
-CMF did not keep array continuity.
-Stochastic missed bounds check.


image_2025-06-27_033649121.png


Enjoy.
+C+
@Cagliostro Well done!! great stuff, I was actually looking for something like this for awhile back.

There was someone selling it on the MQL5 Store for like 50 USD lmao which shows you are a kind person.

I think I only have one question....how would this look in a MTF in one chart window? would it be too much to process you reckon?

This indicator looks like it processes an enormous amount of data but I could be wrong.

Much respect.


Re: 👨‍🔬 Cagliostro's MT5 Laboratory

152
temporalmotif wrote: Sat Jun 28, 2025 2:56 am @Cagliostro Well done!! great stuff, I was actually looking for something like this for awhile back.

There was someone selling it on the MQL5 Store for like 50 USD lmao which shows you are a kind person.

I think I only have one question....how would this look in a MTF in one chart window? would it be too much to process you reckon?

This indicator looks like it processes an enormous amount of data but I could be wrong.

Much respect.
Hi there, glad you find it useful! About MTF we will see, calculations, as you noted, are not trivial.
"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

153
PARABOLIC RSI

The Parabolic RSI indicator merges the power of Parabolic SAR with RSI momentum analysis by plotting SAR calculations directly onto the RSI oscillator. This approach identifies potential reversals more precisely than traditional RSI extremes. By incorporating the Parabolic SAR's trend-following logic, the indicator filters out false signals and delivers cleaner entry and exit points.

Signal Types:
-Large Squares: These appear when the Parabolic SAR reverses while RSI is in extreme territory (above 70 or below 30). Such signals indicate strong reversal potential with higher success rates.
-Small Squares: Generated during SAR reversals within the neutral RSI zone (30-70). These suggest minor pullbacks or continuation patterns, ideal for scaling positions or trend-following strategies.

Key Benefits:
-Combines momentum and trend analysis in one window, eliminating the need to monitor multiple indicators separately.
-Displays identical signals on both the oscillator panel and main chart, allowing seamless price action monitoring without constant window switching.
-Enhances traditional candlestick patterns by providing mathematical confirmation through RSI-SAR convergence.
-Fully customizable parameters including RSI length, SAR acceleration settings, and overbought/oversold levels to match any trading approach or market condition.
-Comprehensive alert system featuring popup notifications, audio signals, email messages, and mobile push alerts for real-time signal tracking.


Sep 15 Update, download it again.
- Fixed small memory allocation bug and improved overall structure.
- Added Quantum Color Theme system with predefined color templates (Ice, Gold, etc.)
- Implemented color customization when Color Template is set to NONE
"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

154
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
-The Alkemix
-AVWAP with Bands
-Radius Trend
-X-Stoch
-KoncordePlus
-Spearman-Pearson with Entries
-Black Zones
-TDI Cross MTF
-Parabolic RSI

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****

Jun 17 Update, download it again.
-Version 3.5 is the new stable release.
-Added Master/Slave logic to centralize Oracle management in multi-instance setups.
-Improved accuracy for HTF.
-Improved Circular Buffer Caching.

Jun 19 Update, download it again.
-Improved instanced cache system
-Reduced CPU usage
-Re-engineered anti-freeze and bad data stream filtering systems

Jun 26 Update, download it again.
-Removed Original Mode, reducing 5/6% impact on CPU
-Added Intelligent Market Adaptation mode. The Oracle now understands if market is trending or ranging and automatically adapts itself.
-Added Morph 1.0 calculation engine to monitor and ensure math calculations are consistent in all modes, instruments and TF.


image_2025-06-24_132404573.png


The Oracle.ex5
Hi Cagliostro, thank you for your work on the Oracle indicator. Would you simplify the message alerts to read "DAX 5M Oracle buy" or "DAX 5M Oracle sell"? Appreciated.
These users thanked the author asgariHoo for the post:
WN25

Re: 👨‍🔬 Cagliostro's MT5 Laboratory

155
asgariHoo wrote: Mon Jun 30, 2025 3:48 pm Hi Cagliostro, thank you for your work on the Oracle indicator. Would you simplify the message alerts to read "DAX 5M Oracle buy" or "DAX 5M Oracle sell"? Appreciated.
Hi, if I receive a consistent number of requests for a change, I'll think of it.
These users thanked the author Cagliostro for the post (total 3):
asgariHoo, WN25, akino2023
"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

156
Cagliostro wrote: Mon Jun 30, 2025 9:03 am PARABOLIC RSI

The Parabolic RSI indicator merges the power of Parabolic SAR with RSI momentum analysis by plotting SAR calculations directly onto the RSI oscillator. This approach identifies potential reversals more precisely than traditional RSI extremes. By incorporating the Parabolic SAR's trend-following logic, the indicator filters out false signals and delivers cleaner entry and exit points.

Signal Types:
-Large Squares: These appear when the Parabolic SAR reverses while RSI is in extreme territory (above 70 or below 30). Such signals indicate strong reversal potential with higher success rates.
-Small Squares: Generated during SAR reversals within the neutral RSI zone (30-70). These suggest minor pullbacks or continuation patterns, ideal for scaling positions or trend-following strategies.

Key Benefits:
-Combines momentum and trend analysis in one window, eliminating the need to monitor multiple indicators separately.
-Displays identical signals on both the oscillator panel and main chart, allowing seamless price action monitoring without constant window switching.
-Enhances traditional candlestick patterns by providing mathematical confirmation through RSI-SAR convergence.
-Fully customizable parameters including RSI length, SAR acceleration settings, and overbought/oversold levels to match any trading approach or market condition.
-Comprehensive alert system featuring popup notifications, audio signals, email messages, and mobile push alerts for real-time signal tracking.


Parabolic RSI.ex5


image_2025-06-30_005751320.png
Love your work wish I had your brain, just amazes me thank you
These users thanked the author Rabi for the post:
Cagliostro

Re: 👨‍🔬 Cagliostro's MT5 Laboratory

157
Cagliostro wrote: Mon Jun 30, 2025 9:03 am PARABOLIC RSI

The Parabolic RSI indicator merges the power of Parabolic SAR with RSI momentum analysis by plotting SAR calculations directly onto the RSI oscillator. This approach identifies potential reversals more precisely than traditional RSI extremes. By incorporating the Parabolic SAR's trend-following logic, the indicator filters out false signals and delivers cleaner entry and exit points.

Signal Types:
-Large Squares: These appear when the Parabolic SAR reverses while RSI is in extreme territory (above 70 or below 30). Such signals indicate strong reversal potential with higher success rates.
-Small Squares: Generated during SAR reversals within the neutral RSI zone (30-70). These suggest minor pullbacks or continuation patterns, ideal for scaling positions or trend-following strategies.

Key Benefits:
-Combines momentum and trend analysis in one window, eliminating the need to monitor multiple indicators separately.
-Displays identical signals on both the oscillator panel and main chart, allowing seamless price action monitoring without constant window switching.
-Enhances traditional candlestick patterns by providing mathematical confirmation through RSI-SAR convergence.
-Fully customizable parameters including RSI length, SAR acceleration settings, and overbought/oversold levels to match any trading approach or market condition.
-Comprehensive alert system featuring popup notifications, audio signals, email messages, and mobile push alerts for real-time signal tracking.


Parabolic RSI.ex5


image_2025-06-30_005751320.png
Intresting...Thank For Sharing
"My Forex Holy Grail? Sure, I'll share it. It's a magical PDF that costs $997 and the first chapter is titled: 'How to Sell a $997 PDF.'"😎

Re: 👨‍🔬 Cagliostro's MT5 Laboratory

158
Hi Sir,

thank you for such wonderful work. I like the Oracle indicator. still to thest the others. I have a question please.
How do i make the Oracle to appear on the main window?
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
-The Alkemix
-AVWAP with Bands
-Radius Trend
-X-Stoch
-KoncordePlus
-Spearman-Pearson with Entries
-Black Zones
-TDI Cross MTF
-Parabolic RSI

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****

Jun 17 Update, download it again.
-Version 3.5 is the new stable release.
-Added Master/Slave logic to centralize Oracle management in multi-instance setups.
-Improved accuracy for HTF.
-Improved Circular Buffer Caching.

Jun 19 Update, download it again.
-Improved instanced cache system
-Reduced CPU usage
-Re-engineered anti-freeze and bad data stream filtering systems

Jun 26 Update, download it again.
-Removed Original Mode, reducing 5/6% impact on CPU
-Added Intelligent Market Adaptation mode. The Oracle now understands if market is trending or ranging and automatically adapts itself.
-Added Morph 1.0 calculation engine to monitor and ensure math calculations are consistent in all modes, instruments and TF.


image_2025-06-24_132404573.png


The Oracle.ex5

QuestionRe: 👨‍🔬 Cagliostro's MT5 Laboratory

159
imanu01 wrote: Mon Jun 30, 2025 10:47 pm Hi Sir,

thank you for such wonderful work. I like the Oracle indicator. still to thest the others. I have a question please.
How do i make the Oracle to appear on the main window?
Ciao Manu, italiano? ;)

L'oracle basta che lo trascini sulla chart come gli altri.

PS: se ne vuoi usare due istanze sullo stesso grafico, devi cambiare l'ID di uno dei due!
These users thanked the author Cagliostro for the post:
imanu01
"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

160
CYBERNETIC OSCILLATOR (TASC JUNE 2025)

█ OVERVIEW
This code implements the Cybernetic Oscillator introduced by John F. Ehlers in his article "The Cybernetic Oscillator For More Flexibility, Making A Better Oscillator" from the June 2025 edition of the TASC Traders' Tips. It cascades two-pole highpass and lowpass filters, then scales the result by its root mean square (RMS) to create a flexible normalized oscillator that responds to a customizable frequency range for different trading styles.

█ CONCEPTS
Oscillators are indicators widely used by technical traders. These indicators swing above and below a center value, emphasizing cyclic movements within a frequency range. In his article, Ehlers explains that all oscillators share a common characteristic: their calculations involve computing differences. The reliance on differences is what causes these indicators to oscillate about a central point.

The difference between two data points in a series acts as a highpass filter — it allows high frequencies (short wavelengths) to pass through while significantly attenuating low frequencies (long wavelengths). Ehlers demonstrates that a simple difference calculation attenuates lower-frequency cycles at a rate of 6 dB per octave. However, the difference also significantly amplifies cycles near the shortest observable wavelength, making the result appear noisier than the original series. To mitigate the effects of noise in a differenced series, oscillators typically smooth the series with a lowpass filter, such as a moving average.

Ehlers highlights an underlying issue with smoothing differenced data to create oscillators. He postulates that market data statistically follows a pink spectrum, where the amplitudes of cyclic components in the data are approximately directly proportional to the underlying periods. Specifically, he suggests that cyclic amplitude increases by 6 dB per octave of wavelength.

Because some conventional oscillators, such as RSI, use differencing calculations that attenuate cycles by only 6 dB per octave, and market cycles increase in amplitude by 6 dB per octave, such calculations do not have a tangible net effect on larger wavelengths in the analyzed data. The influence of larger wavelengths can be especially problematic when using these oscillators for mean reversion or swing signals. For instance, an expected reversion to the mean might be erroneous because oscillator's mean might significantly deviate from its center over time.

To address the issues with conventional oscillator responses, Ehlers created a new indicator dubbed the Cybernetic Oscillator. It uses a simple combination of highpass and lowpass filters to emphasize a specific range of frequencies in the market data, then normalizes the result based on RMS. The process is as follows:
-Apply a two-pole highpass filter to the data. This filter's critical period defines the longest wavelength in the oscillator's passband.
-Apply a two-pole SuperSmoother (lowpass filter) to the highpass-filtered data. This filter's critical period defines the shortest wavelength in the passband.
-Scale the resulting waveform by its RMS. If the filtered waveform follows a normal distribution, the scaled result represents amplitude in standard deviations.

The oscillator's two-pole filters attenuate cycles outside the desired frequency range by 12 dB per octave. This rate outweighs the apparent rate of amplitude increase for successively longer market cycles (6 dB per octave). Therefore, the Cybernetic Oscillator provides a more robust isolation of cyclic content than conventional oscillators. Best of all, traders can set the periods of the highpass and lowpass filters separately, enabling fine-tuning of the frequency range for different trading styles.

█ USAGE
The "Highpass period" input in the "Settings/Inputs" tab specifies the longest wavelength in the oscillator's passband, and the "Lowpass period" input defines the shortest wavelength. The oscillator becomes more responsive to rapid movements with a smaller lowpass period. Conversely, it becomes more sensitive to trends with a larger highpass period. Ehlers recommends setting the smallest period to a value above 8 to avoid aliasing. The highpass period must not be smaller than the lowpass period. Otherwise, it causes a runtime error.

The "RMS length" input determines the number of bars in the RMS calculation that the indicator uses to normalize the filtered result.

This indicator also features two distinct display styles, which users can toggle with the "Display style" input. With the "Trend" style enabled, the indicator plots the oscillator with one of two colors based on whether its value is above or below zero. With the "Threshold" style enabled, it plots the oscillator as a gray line and highlights overbought and oversold areas based on the user-specified threshold.

These users thanked the author Cagliostro for the post (total 11):
jackboton, Abzak, rudiarius, neversell, asgariHoo, SdW25, Ricstar_8, iardavan, Thoth, eduarescobar, Jimmy
"I conjure from shadows and shape fortunes from the unseen. The treasure lies hidden in plain sight, beneath the sunlight." - Cagliostro