Re: Various (Specialist) indicators for MT4

1083
mrtools wrote: Thu Jun 01, 2023 5:26 am Weird error somewhere, try now.
Weird error indeed, mrtools. I've tried it out and on most of the pairs now the alert is correct. However, on NZDCHF and a few of the indices it is still showing the 1st Higher Timeframe alert. Strange.

No matter, I'll live with it, but the arrows and button are the main benefits. I'll manage with the alerts the way they are now.

Regards :D
BEATS V5 - "Enjoy The Quiet Between Trades”

Improve Your Trading Psychology - NO FEAR, NO DOUBT

Re: Various (Specialist) indicators for MT4

1085
Hello, and Good Morning to all.

I come here having a petition to Mr Kvak, Mr Tools and everybody with the knowledge to do it.

I'm asking (please.) to be added the averages super kit to this indicator. and honestly to be improved both versions to mt4 and mt5, please.

Some of you with more understanding of how things work inside this indicator if possible share some light about the calculations inside ... like; "That thing is doing That for Dummies"(calculating truly what?).

This version of the Directional volatility & volume oscillator (mtf + alerts + arrows) really only lacks the magic averages.

I'm just thinking if the indicator is really doing the thing expressed in his name :roll: .....

To trading systems volume-based, I can ensure that is the cherry.

To all other systems is one amazing piece.

Please Improve this indicator.

Thank you All and have a Good weekend to all the Families.
These users thanked the author saishala for the post:
Chickenspicy
From the domains of my desk and laptop Full of Porn and Charts I call upon the Spiritual Presence and Power of Richard Wyckoff, Jesse Livermore, George Soros and all the Wise in Volume and Standard Deviation to enlighten and make everyone get off their asses and go to study Market Structure, Liquidity Pools and Volume.

Selah


Re: Various (Specialist) indicators for MT4

1087

Code: Select all

# Mobius
# V01.01.29.2019
# Uses trend of higher highs with higher lows and trend of lower lows with lower highs to locate pivots. Distance for trend is set by the user. Confirmation of a reversal from pivots is set with a multiple of the pivot bars range. That multiple is also a user input.
# Trading Rules
# 1) Trade when price crosses and closes outside the pivot Confirmation line. At that point looking for best entry. Min trade is 2 contracts
# 2) Know your risk point before entering trade. Typical risk point is the pivot line itself. If your risk is crossed look for an exit. Never use hard stops - you'll often get out for little or no loss
# 3) Know your Risk off point before entering. Typical Risk Off is an ATR multiple. Offer Risk Off as soon as possible for a Risk Free trade
# 4) set mental stop one tick above entry when Risk Off is achieved
# 5) if trade continues your way move mental stop for your runner to last support / resistance each time a new support / resistance is hit.

input n = 5;
input R_Mult = .7;

def o = open;
def h = high;
def l = low;
def c = close;
def x = BarNumber();
def nan = Double.NaN;
def ts = tickSize();
def tr = TrueRange(h, c, l);
def hh = if Sum(h > h[1], n) >= n and
            Sum(l > l[1], n) >= n-1
         then h
         else if h > hh[1]
              then h
              else hh[1];
def xh = if h == hh
         then x
         else nan;
plot hh_ = if x >= HighestAll(xh)
           then HighestAll(if IsNaN(c[-1])
                           then hh
                           else nan)
           else nan;
     hh_.SetDefaultColor(Color.RED);
     hh_.HideTitle();
     hh_.HideBubble();
def hR = if h == hh
         then Round(Average(tr, n)/TickSize(), 0)*TickSize()
         else hR[1];
def PrevL = if h == hh
            then l[1]
            else PrevL[1];
plot STO = if x >= HighestAll(xh)
           then HighestAll(if IsNaN(c[-1])
           then Round((Max(PrevL, hh_ - (hR * R_Mult))) / ts, 0) * ts
                           else nan)
           else nan;
     STO.SetDefaultColor(Color.RED);
     STO.HideTitle();
     STO.HideBubble();
plot STO_RO = if x >= HighestAll(xh)
              then HighestAll(if isNaN(c[-1])
                              then STO - Min(hR, TickSize() * 16)
                              else nan)
              else nan;
     STO_RO.SetStyle(Curve.Long_Dash);
     STO_RO.SetDefaultColor(Color.White);
     STO_RO.HideBubble();
     STO_RO.HideTitle();
#AddChartBubble(x == HighestAll(x), STO_RO, "RO", STO_RO.TakeValueColor(), 0);
def ll = if Sum(l < l[1], n) >= n and
            Sum(h < h[1], n) >= n-1
         then l
         else if l < ll[1]
              then l
              else ll[1];
def xl = if l == ll
         then x
         else nan;
plot ll_ = if x >= HighestAll(xl)
           then HighestAll(if IsNaN(c[-1])
                           then ll
                           else nan)
           else nan;
     ll_.SetDefaultColor(Color.GREEN);
     ll_.HideTitle();
     ll_.HideBubble();
def lR = if l == ll
         then Round(Average(tr, n)/TickSize(), 0)*TickSize()
         else lR[1];
def PrevH = if l == ll
            then h[1]
            else PrevH[1];
plot BTO = if x >= HighestAll(xl)
           then HighestAll(if IsNaN(c[-1])
           then Round((Min(PrevH, ll_ + (lR * R_Mult))) / ts, 0) * ts
                           else nan)
           else nan;
     BTO.SetDefaultColor(Color.GREEN);
     BTO.HideTitle();
     BTO.HideBubble();
plot BTO_RO = if x >= HighestAll(xl)
              then HighestAll(if isNaN(c[-1])
                              then BTO + Min(lR, TickSize() * 16)
                              else nan)
              else nan;
     BTO_RO.SetStyle(Curve.Long_Dash);
     BTO_RO.SetDefaultColor(Color.White);
     BTO_RO.HideBubble();
     BTO_RO.HideTitle();
#AddChartBubble(x == HighestAll(x), BTO_RO, "RO", BTO_RO.TakeValueColor(), 1);
AddCloud(STO, hh_, Color.LIGHT_RED, Color.LIGHT_RED);
AddCloud(ll_, BTO, Color.LIGHT_GREEN, Color.LIGHT_GREEN);
Alert(c crosses below STO, "", Alert.Bar, Sound.Bell);
Alert(c crosses above BTO, "", Alert.Bar, Sound.Chimes);
# End Code Trend Pivots
Attachments
0 + 0 = 0
Infinite / Infinite = 1
1 way to Heaven & it matters

Re: Various (Specialist) indicators for MT4

1088
saishala wrote: Sat Jun 10, 2023 8:19 pm Hello, and Good Morning to all.

I come here having a petition to Mr Kvak, Mr Tools and everybody with the knowledge to do it.

I'm asking (please.) to be added the averages super kit to this indicator. and honestly to be improved both versions to mt4 and mt5, please.

Some of you with more understanding of how things work inside this indicator if possible share some light about the calculations inside ... like; "That thing is doing That for Dummies"(calculating truly what?).

This version of the Directional volatility & volume oscillator (mtf + alerts + arrows) really only lacks the magic averages.

I'm just thinking if the indicator is really doing the thing expressed in his name :roll: .....

To trading systems volume-based, I can ensure that is the cherry.

To all other systems is one amazing piece.

Please Improve this indicator.

Thank you All and have a Good weekend to all the Families.
Image
Added the averages to this version for now.
These users thanked the author mrtools for the post (total 9):
Chickenspicy, saishala, 太虚一毫, RodrigoRT7, Krunal Gajjar, chris006, ChuChu Rocket, ParallelNative, Jedidiah

Re: Various (Specialist) indicators for MT4

1089
mrtools wrote: Mon Jun 12, 2023 6:42 am Added the averages to this version for now.
Image
I cannot express my immense happiness and gratitude for what you did. And even more, Happiness that you have seen it too (I no longer feel like a fool for believing it).

I would normally end up with a " God Bless you for All you do".

But in this case, the Blessing has To Be of New Beginnings, Wisdom and Luck; and so you can easily Remove All Obstacles in the Path of your Code.


And that is the Right Blessing for you.


And for someone like me, the only thing left to do is: "Much to do and limited time already at my age......" :roll:

(If you want to know how many possible combinations can be made with 76 different things( averages ), you can use the formula nCr = n! /r! (n-r)!, where n is the total number in the data set and r is the number you select from this data set. In this case, there are 76 different things in the data set, and a group of three things (volatility, Volume, Zone) is selected. Therefore, the number of possible combinations is 76! / (3! * (76-3)!) = 4,230,300.)
Attachments
These users thanked the author saishala for the post (total 2):
RodrigoRT7, Krunal Gajjar
From the domains of my desk and laptop Full of Porn and Charts I call upon the Spiritual Presence and Power of Richard Wyckoff, Jesse Livermore, George Soros and all the Wise in Volume and Standard Deviation to enlighten and make everyone get off their asses and go to study Market Structure, Liquidity Pools and Volume.

Selah


Who is online

Users browsing this forum: ChatGPT [Bot], DVanAssen, ParallelNative, Rabi, RodrigoRT7, Ruby [Bot], Telegram [Bot], Trendiction [Bot] and 121 guests