Re: Various (Specialist) indicators for MT4

1282
heispark wrote: Wed May 22, 2024 12:25 am Is Madrid better than Awesome? It seems not..... :think:

2024-05-21 23 26 29.png
Yes, the code is somewhat similar, but to each their own. Maybe some prefer Madrid over Awesome or vice versa think it's up to the individual trader. Awesome is pretty much the same as a sloping Macd, Stochastic pretty much the same as Wpr, and on and on. :)
These users thanked the author mrtools for the post (total 7):
josi, RodrigoRT7, vvFish, heispark, Jimmy, moey_dw, Macio

CodeRe: Various (Specialist) indicators for MT4

1283
Simple Harmonic Oscillator - indicator

From Mladen Rakic:

Theory

The indicator is based on Akram El Sherbini's article "Time Cycle Oscillators" published in IFTA journal 2018 (attached below).

The SHO is a bounded (Normalized) oscillator for the simple harmonic index that calculates the period of the market’s cycle. The oscillator is used for short and intermediate terms and moves within a range of -100 to 100 percent. The SHO has overbought and oversold levels at +40 and -40, respectively. At extreme periods, the oscillator may reach the levels of +60 and -60. The zero level demonstrates an equilibrium between the periods of bulls and bears. The SHO oscillates between +40 and -40. The crossover at those levels creates buy and sell signals. In an uptrend, the SHO fluctuates between 0 and +40 where the bulls are controlling the market. On the contrary, the SHO fluctuates between 0 and -40 during downtrends where the bears control the market. Reaching the extreme level -60 in an uptrend is a sign of weakness. Mostly, the oscillator will retrace from its centerline rather than the upper boundary +40. On the other hand, reaching +60 in a downtrend is a sign of strength and the oscillator will not be able to reach its lower boundary -40.

Usage
  • Centerline Crossover Tactic
    • This tactic is tested during uptrends. The buy signals are generated when the WPO/SHO cross their centerlines to the upside. The sell signals are generated when the WPO/SHO cross down their centerlines. To define the uptrend in the system, stocks closing above their 50-day EMA are considered while the ADX is above 18.
  • Uptrend Tactic
    • During uptrends, the bulls control the markets, and the oscillators will move above their centerline with an increase in the period of cycles. The lower boundaries and equilibrium line crossovers generate buy signals, while crossing the upper boundaries will generate sell signals. The “Re-entry” and “Exit at weakness” tactics are combined with the uptrend tactic. Consequently, we will have three buy signals and two sell signals.
    Sideways Tactic
    • During sideways, the oscillators fluctuate between their upper and lower boundaries. Crossing the lower boundary to the upside will generate a buy signal. On the other hand, crossing the upper boundary to the downside will generate a sell signal. When the bears take control, the oscillators will cross down the lower boundaries, triggering exit signals. Therefore, this tactic will consist of one buy signal and two sell signals. The sideway tactic is defined when stocks close above their 50-day EMA and the ADX is below 18.
Attaching Mladen's mt5 version and a mt4 version I did from his in where I added pre-smoothing averages

Mladen's MT5 version
MT4 version with All Averages
Akram El Sherbini's article from 2018 - Time Cycle Oscillators
These users thanked the author mrtools for the post (total 16):
kvak, nbibu, Abdi, WOLF, yoki, RodrigoRT7, ParallelNative, Jimmy, josi, moey_dw, talaate, macd & rsi, ffsss, Mickey Abi, alexm, Cagliostro

LikeRe: Various (Specialist) indicators for MT4

1284
mrtools wrote: Wed May 22, 2024 1:07 am Yes, the code is somewhat similar, but to each their own. Maybe some prefer Madrid over Awesome or vice versa think it's up to the individual trader. Awesome is pretty much the same as a sloping Macd, Stochastic pretty much the same as Wpr, and on and on. :)
Good info.... love these kinda posts especially from you Mrtools 👌👌👌
These users thanked the author moey_dw for the post (total 2):
mrtools, RodrigoRT7
Official Forex-station GIF animator at your service 👨‍⚖️
See a GIF with Forex-station.com on it? I probably made it
The best divergence indicator in the world.
Real news exists: Infowars.com 👈

Re: Various (Specialist) indicators for MT4

1285
Hi Mrtools,
is it possible to make this mt4 indicator?

Smoothed Rate of Change (SROC)is a smoothed version of Rate of Change (ROC) indicator with the only difference that it uses Exponential Moving Average (EMA) for calculation. SROC determines the strength of a trend by comparing the current EMA and an EMA a specified period ago. The SROC line oscillates above or below the zero level and can help confirm an uptrend or downtrend respectively.
SROC = [EMA(B) - EMA(A)] / EMA(A) x 100

where:
EMA – Exponential Moving Average
B – price at current time
A – price at previous time
These users thanked the author Macio for the post:
mrtools


Re: Various (Specialist) indicators for MT4

1288
Macio wrote: Thu May 23, 2024 12:02 am Hi Mrtools,
is it possible to make this mt4 indicator?

Smoothed Rate of Change (SROC)is a smoothed version of Rate of Change (ROC) indicator with the only difference that it uses Exponential Moving Average (EMA) for calculation. SROC determines the strength of a trend by comparing the current EMA and an EMA a specified period ago. The SROC line oscillates above or below the zero level and can help confirm an uptrend or downtrend respectively.
SROC = [EMA(B) - EMA(A)] / EMA(A) x 100

where:
EMA – Exponential Moving Average
B – price at current time
A – price at previous time
Try here
These users thanked the author mrtools for the post:
Macio

Re: Various (Specialist) indicators for MT4

1290
sami wrote: Fri May 24, 2024 12:47 am Good morning
Sorry if I repost my request here, but I did not receive a response

Thank you for your help in fixing the bug that makes the adjustment of colors and line size disappear when changing timeframes
Try now, also there is an updated version here
These users thanked the author mrtools for the post:
sami