Page 117 of 179

Re: Trend Indicators

Posted: Tue May 31, 2022 1:16 am
by kvak
xpf2003 wrote: Tue May 31, 2022 12:47 am Thanks for your reply @mrtools

It is sad that the indicator cannot be fixed. It was giving interesting results even on default settings. Little experimentation would have given great results.
I think that it is the same like FRACTAL CHANNEL BREAKOUT (doted line in picture), but with filling...Search here inforum, there is some version.....

Re: Trend Indicators for MT4

Posted: Tue Jun 14, 2022 4:54 pm
by Banzai


Pivot Point Supertrend
(on/off button)

Re: Trend Indicators for MT4

Posted: Tue Jun 14, 2022 8:12 pm
by sal
dear mr.tools/kvak
possible to extend horizontal line for S/R
conditons
after RED dots confirmed extend line till the next RED dots confirmed
same for blue dots extension...
this can used as S/R level for trend direction

Re: Trend Indicators for MT4

Posted: Wed Jun 15, 2022 3:17 am
by mrtools
Hi @mrtools, @ kvak and @banzai :),

There seems to be an issue with the latest version of the Wave Trend Oscillator. I am currently testing both of the indicators below. However, the !!! Wavetrend - oscillator (arrows).ex4 version of the indicator makes some of the other indicators disappear on my chart, namely, your latest version of the Waddah Attar Explosion.

The older version wave-trend-oscillator.ex4 works perfectly okay but looks different of course ;)

If you are able to locate and resolve the issue that would be awesome. If not I'll then just keep using the older version. Also could either or both of these have a button added. I won't enquire about arrows or alerts as the latest version has those but they are not really essential to my trading and use of the indicator :)

Indicators:

!!! Wavetrend - oscillator (arrows).ex4

wave-trend-oscillator.ex4

They are in .exe format as that is how you've provided it to us earlier.

Warmest regards,
BeatlemaniaSA
[/quote]

Not completely sure what it could be, but do know had some problems with other versions where I was using a different filter and this one had that filter, so changed it out, also did a little more code optimization on it. Tried it alongside WAE seemed ok.

Re: Trend Indicators for MT4

Posted: Wed Jun 15, 2022 3:26 am
by BeatlemaniaSA
mrtools wrote: Wed Jun 15, 2022 3:17 am Not completely sure what it could be, but do know had some problems with other versions where I was using a different filter and this one had that filter, so changed it out, also did a little more code optimization on it. Tried it alongside WAE seemed ok.
Super! I'll give it a try right now ;)

Re: Trend Indicators for MT4

Posted: Wed Jun 15, 2022 11:55 pm
by xpf2003
mrtools wrote: Thu Sep 30, 2021 4:09 am This is Trend indicator B-V2 from Dziwne (translated from TradingView)

Code: Select all

//@version=4
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/

//————————————————————————————————————————————————————————————————————————————
//——————————————————————————— Auteur | © Dziwne ——————————————————————————————
//————————————————————————————————————————————————————————————————————————————

study(title="Trend Indicator B-V2 (Momentum mesuring) [Dziwne]", shorttitle="Dziwne Trend Indicator B-V2 [Dziwne]", resolution="")

//————————————————————————————————————————————————————————————————————————————
//—————————————————————————————— I. Paramètres ———————————————————————————————
//————————————————————————————————————————————————————————————————————————————

ema = input(defval=14, minval=1, title="EMA Length")
ema_smooth = input(defval=14, minval=1, title="EMA Length (Smoothing)")

colors = input(title = "Color Scheme", defval="Classic", options=["Classic", "Dziwne Color Scheme"])
show = input(true, "Show Lines & Filling")

//————————————————————————————————————————————————————————————————————————————
//——————————————————————————— II.1. Calcules, EMA ————————————————————————————
//————————————————————————————————————————————————————————————————————————————

o = ema(open, ema)
c = ema(close, ema)
h = ema(high, ema)
l = ema(low, ema)

//————————————————————————————————————————————————————————————————————————————
//————————————————————————— II.2. Calcules, Heikin Ashi ——————————————————————
//————————————————————————————————————————————————————————————————————————————

ha_t = heikinashi(syminfo.tickerid)

ha_o = security(ha_t, timeframe.period, o)
ha_c = security(ha_t, timeframe.period, c)
ha_h = security(ha_t, timeframe.period, h)
ha_l = security(ha_t, timeframe.period, l)

//————————————————————————————————————————————————————————————————————————————
//————————————————— II.3. Calcules, EMA (Réduction du bruit) —————————————————
//————————————————————————————————————————————————————————————————————————————

ha_o_smooth = ema(ha_o, ema_smooth)
ha_c_smooth = ema(ha_c, ema_smooth)
ha_h_smooth = ema(ha_h, ema_smooth)
ha_l_smooth = ema(ha_l, ema_smooth)

//————————————————————————————————————————————————————————————————————————————
//—————————————————— II.4. Calcules, Echelle %, Puissance  ———————————————————
//————————————————————————————————————————————————————————————————————————————

dif_oc = ha_c_smooth - ha_o_smooth
dif_hl = ha_h_smooth - ha_l_smooth

variable_oc_percent = dif_oc * 100 / dif_hl

//————————————————————————————————————————————————————————————————————————————
//————————————————— II.5. Calcules, Définition des couleurs ——————————————————
//————————————————————————————————————————————————————————————————————————————

couleur_positive = colors == "Classic" ? #26A69A : #FFBE3D
couleur_negative = colors == "Classic" ? #EF5350 : #D63031

couleur_positive_2 = colors == "Classic" ? #B2DFDB : #ffd88a
couleur_negative_2 = colors == "Classic" ? #FFCDD2 : #e37071

couleur_uptrend = change(dif_oc) >= 0 ? couleur_positive : couleur_positive_2
couleur_downtrend = change(dif_oc) <= 0 ? couleur_negative : couleur_negative_2

couleur_trend = dif_oc <= 0 ? couleur_downtrend : couleur_uptrend

couleur_show_positive = show ? couleur_positive : na
couleur_show_negative = show ? couleur_negative : na

//————————————————————————————————————————————————————————————————————————————
//———————————————————————————— III. Mise en place ————————————————————————————
//————————————————————————————————————————————————————————————————————————————

plot(variable_oc_percent, style=plot.style_columns, color=couleur_trend, title="Trend Momentum Indicator")

fib_236_positive = plot(23.6, color=na, title="23.6% Fibonacci")
fib_382_positive = plot(38.2, color=na, title="38.2% Fibonacci")
plot(50, color=couleur_show_positive, title="50% Fibonacci")

fib_236_negative = plot(-23.6, color=na, title="-23.6% Fibonacci")
fib_382_negative = plot(-38.2, color=na, title="-38.2% Fibonacci")
plot(-50, color=couleur_show_negative, title="-50% Fibonacci")

fill(fib_236_positive, fib_382_positive, color=couleur_show_positive, title="Positive Momentum Rejection-zone")
fill(fib_236_negative, fib_382_negative, color=couleur_show_negative, title="Negative Momentum Rejection-zone")

//————————————————————————————————————————————————————————————————————————————
//—————————————————————————————————— FIN —————————————————————————————————————
//————————————————————————————————————————————————————————————————————————————

It's using heiken ashi smoothed with Ema in the original, I added the other standard mt4 ma's + an option to use T3.
Image
I am hesitant to ask this question knowing the quality of indicators produced here but I tried backtesting this indicator in my system with great results. However, during forward test I am getting bad results. I investigated a few trades from my forward test and it is clear that trades are taken that do not fit into my rules (i.e. go long when this indicator is above 0 but I find that sometimes a trade is taken when this indicator is below 0). This leaves me wondering if this indicator repaints historical bars? Is it possible that the indicator was above 0 when my EA took a long trade but now when I am looking at that trade, the bars have been repainted and the indicator is below 0?

Re: Trend Indicators for MT4

Posted: Wed Jun 15, 2022 11:57 pm
by xpf2003
erynade wrote: Thu Sep 30, 2021 9:56 pm Master Mr Tools

it's nice

Image

thankyou


Profit Regards
Erynade
If I can ask, what are the two histogram indicators on your chart?

Re: Trend Indicators for MT4

Posted: Thu Jun 16, 2022 12:51 am
by mrtools
xpf2003 wrote: Wed Jun 15, 2022 11:55 pm I am hesitant to ask this question knowing the quality of indicators produced here but I tried backtesting this indicator in my system with great results. However, during forward test I am getting bad results. I investigated a few trades from my forward test and it is clear that trades are taken that do not fit into my rules (i.e. go long when this indicator is above 0 but I find that sometimes a trade is taken when this indicator is below 0). This leaves me wondering if this indicator repaints historical bars? Is it possible that the indicator was above 0 when my EA took a long trade but now when I am looking at that trade, the bars have been repainted and the indicator is below 0?
Can't see where it could be repainting, how are you calling it?

Re: Trend Indicators for MT4

Posted: Thu Jun 16, 2022 1:02 am
by xpf2003
mrtools wrote: Thu Jun 16, 2022 12:51 am Can't see where it could be repainting, how are you calling it?
Here is my iCustom call

Code: Select all

iCustom(Symbol(), timeframe, "ift_wpr_mtf_shadow",
                    0, 8, 0, 3, 1,
                    index, shift);

Re: Trend Indicators for MT4

Posted: Thu Jun 16, 2022 1:55 am
by mrtools
xpf2003 wrote: Thu Jun 16, 2022 1:02 am Here is my iCustom call

Code: Select all

iCustom(Symbol(), timeframe, "ift_wpr_mtf_shadow",
                    0, 8, 0, 3, 1,
                    index, shift);
Sorry thought we were talking about Trend indicator B V2. Don't think I have a copy of the ift wpr shadow handy.