Made 3 "flavors" : 1st is on chart indicator that shows the 2 zero lag Hull moving averages, their slopes and their crosses. 2nd is a histo version that shows relative position of 2 zero lag hull moving averages (it shows trend) as well as on chart arrows. These 2 are multi time frame and have alerts too. And the 3rd one is the one made for EA. It has only the basic (since from the EA you can specify a time frame in the iCustom() parameters and it should be as fast as it it possible) Using it from EA would then go something like this :
int currTrend = iCustom(NULL,desiredTimeFrame,"Zero lag Hull CD histo - for EA",FastHullLength,FastHullPrice,SlowHullLength,SlowHullPrice,4,0);
int prevTrend = iCustom(NULL,desiredTimeFrame,"Zero lag Hull CD histo - for EA",FastHullLength,FastHullPrice,SlowHullLength,SlowHullPrice,4,1);
if (currtrend!=prevTrend)
if (currTrend==1)
{
code for buy
}
else
{
code for sell
}
Here is a chart with the 3 indicators packed on it in rder to see them compared. The "for EA" is the lowest and it is current time frame (since it can not be mtf) the other 2 are 1 hour time frame on 30 minute chart
regards
Mladen
bbjurek: Dear Mladen
can You make histogram indicator: cross 2 zero lag HMA, EA ready version?
If are possible arrows on chart window and alerts on corss, add they too.
Here you go Added multi time framing (just in case, so it covers more options now)
regards
Mladen
bigdogus4: mladan, I am new to this and trying to learn to do this, I have search for MA indicator that not only has a visual alert but a audio alert. I have seen this one from BB and like it but i cannot get it to do the audio can you assist please.
If CCI>0 and close price>MA bar have a green color,
if CCI>0 and close price<MA bar have a lite green color,
if CCIMA - red color,
if CCI<0 and close price <MA - orange color.
I used the price chosen by MaPrice instead (so it is not fixed to be just close) in comparison, but, by default, it is set to close, so it is the same as their code
regards
Mladen
CrustallumKvs: Hi Mladen
CCI Squeeze Indicator FXCM Trading Station Version
to Metatrader 4 version
Thanks
Code:
function Init()
indicator:name("CCI Squeeze Indicator");
indicator:description("");
indicator:requiredSource(core.Bar);
indicator:type(core.Oscillator);
indicator.parameters:addInteger("MA_Period", "Period of MA", "Period of MA", 200);
indicator.parameters:addString("MA_Method", "Method of MA", "", "MVA");
Well, I hope that this is what you were looking for. I call it a browser rather than a dashboard (since it shows data from all time frames)
_____________________________
It takes all the time frames and calculates nBarsvalues of iVar, and then :
- calculates the percentage of bars that are above the required level(this point works on nBarssample, so it is probably the weakest point since, for the sake of the speed it is advisable to use smaller nBarsparameter as well as the lack of data (EURUSD on monthly chart has some 300 bars, so it is far from being a representative sample))
- calculates the duration (in bars) of the current "state" : if the current value is above levelthen it calculates how many bars ago it crossed up and if the current value is bellow levelit calculates how may bars ago it crossed down. Did not convert the duration in bars to time since clearly higher time frames would be always in front of the list if the duration in time was considered
Sorting can be done (with SortByparameter) :
1 : sorted by current values
2 : sorted by duration of the state
all the rest : sorted by the percentage of iVar values above level
Level is adjustable (unlike the original) so you are not limited to 0.5 level
regards
Mladen
biddick: Hi Mladen, Is it possibble to code a new indicator or dashboard with i-var in order to find out the highest percent of i-var above of 0.5 level in that particular time or the longest duration of i-var above of 0.5 level in that particular time(M5,M15,M30 etc..) So we can find the ideal time frame.For example in my opinion(birdeye view with i-var) M60 is the ideal time to trade in EURO/USD.I hope it is clear and concise, many thanks.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
bbjurek
Here you go
Made 3 "flavors" : 1st is on chart indicator that shows the 2 zero lag Hull moving averages, their slopes and their crosses. 2nd is a histo version that shows relative position of 2 zero lag hull moving averages (it shows trend) as well as on chart arrows. These 2 are multi time frame and have alerts too. And the 3rd one is the one made for EA. It has only the basic (since from the EA you can specify a time frame in the iCustom() parameters and it should be as fast as it it possible) Using it from EA would then go something like this :
regards
Mladen
Dear Mladen
can You make histogram indicator: cross 2 zero lag HMA, EA ready version?
If are possible arrows on chart window and alerts on corss, add they too.
thakns bbjurekupdated version posted here: https://www.mql5.com/en/forum/general
Updated nema crosses (multi time frame version with alerts) : nema_crosses_-_mtf_amp_alerts_nmc.mq4
Originally it was posted here : https://www.mql5.com/en/forum/general
bigdogus4
Here you go
Added multi time framing (just in case, so it covers more options now)
regards
Mladen
mladan, I am new to this and trying to learn to do this, I have search for MA indicator that not only has a visual alert but a audio alert. I have seen this one from BB and like it but i cannot get it to do the audio can you assist please.
Updated version posted here : https://www.mql5.com/en/forum/general
CCI squeeze : cci_squeeze_nmc.mq4
Originally posted here : https://www.mql5.com/en/forum/general
CrustallumKvs
Found this description that is easier to understand what does the indicator do (the description can be found here - FXCodeBase.COM: Forex Chart Indicators and Development • View topic - CCI Squeeze indicator ) : I used the price chosen by MaPrice instead (so it is not fixed to be just close) in comparison, but, by default, it is set to close, so it is the same as their coderegards
Mladen
Hi Mladen
CCI Squeeze Indicator FXCM Trading Station Version
to Metatrader 4 version
Thanks
Code:
function Init()
indicator:name("CCI Squeeze Indicator");
indicator:description("");
indicator:requiredSource(core.Bar);
indicator:type(core.Oscillator);
indicator.parameters:addInteger("MA_Period", "Period of MA", "Period of MA", 200);
indicator.parameters:addString("MA_Method", "Method of MA", "", "MVA");
indicator.parameters:addStringAlternative("MA_Method", "EMA", "", "EMA");
indicator.parameters:addStringAlternative("MA_Method", "KAMA", "", "KAMA");
indicator.parameters:addStringAlternative("MA_Method", "LWMA", "", "LWMA");
indicator.parameters:addStringAlternative("MA_Method", "MVA", "", "MVA");
indicator.parameters:addStringAlternative("MA_Method", "TMA", "", "TMA");
indicator.parameters:addInteger("CCI_Period", "Period of CCI", "Period of CCI", 50);
indicator.parameters:addColor("upB_color", "Color of upB", "Color of upB", core.rgb(0, 255, 0));
indicator.parameters:addColor("loB_color", "Color of loB", "Color of loB", core.rgb(255, 128, 64));
indicator.parameters:addColor("upB2_color", "Color of upB2", "Color of upB2", core.rgb(0, 64, 0));
indicator.parameters:addColor("loB2_color", "Color of loB2", "Color of loB2", core.rgb(255, 0, 0));
indicator.parameters:addColor("line_color", "Color of line", "Color of line", core.rgb(128, 128, 128));
end
local first;
local source = nil;
local MA;
local CCI;
function Prepare()
source = instance.source;
MA_Period=instance.parameters.MA_Period;
MA_Method=instance.parameters.MA_Method;
CCI_Period=instance.parameters.CCI_Period;
MA = core.indicators:create(MA_Method, source.close, MA_Period);
CCI = core.indicators:create("CCI", source, CCI_Period);
first = math.max(MA.DATA:first(),CCI.DATA:first())+2;
local name = profile:id() .. "(" .. source:name() .. ", " .. MA_Period .. ", " .. MA_Method .. ", " .. CCI_Period .. ")";
instance:name(name);
upB = instance:addStream("upB", core.Bar, name .. ".upB", "upB", instance.parameters.upB_color, first);
loB = instance:addStream("loB", core.Bar, name .. ".loB", "loB", instance.parameters.loB_color, first);
upB2 = instance:addStream("upB2", core.Bar, name .. ".upB2", "upB2", instance.parameters.upB2_color, first);
loB2 = instance:addStream("loB2", core.Bar, name .. ".loB2", "loB2", instance.parameters.loB2_color, first);
cciline = instance:addStream("cciline", core.Line, name .. ".cciline", "cciline", instance.parameters.line_color, first);
end
function Update(period, mode)
MA:update(mode);
CCI:update(mode);
if (period>first) then
cciline[period]=CCI.DATA[period];
if source.close[period]<MA.DATA[period] then
if CCI.DATA[period]>0. then
upB[period]=CCI.DATA[period];
loB[period]=nil;
upB2[period]=nil;
loB2[period]=nil;
else
upB[period]=nil;
loB[period]=CCI.DATA[period];
upB2[period]=nil;
loB2[period]=nil;
end
else
if CCI.DATA[period]>0. then
upB[period]=nil;
loB[period]=nil;
upB2[period]=CCI.DATA[period];
loB2[period]=nil;
else
upB[period]=nil;
loB[period]=nil;
upB2[period]=nil;
loB2[period]=CCI.DATA[period];
end
end
end
endUpdated version posted here : https://www.mql5.com/en/forum/general
iVar browser : ivar_browser_nmc.mq4
Original (with detailed description) posted here : https://www.mql5.com/en/forum/general
Well, I hope that this is what you were looking for. I call it a browser rather than a dashboard (since it shows data from all time frames)
_____________________________
It takes all the time frames and calculates nBarsvalues of iVar, and then : Sorting can be done (with SortByparameter) :Level is adjustable (unlike the original) so you are not limited to 0.5 level
regards
Mladen
Hi Mladen, Is it possibble to code a new indicator or dashboard with i-var in order to find out the highest percent of i-var above of 0.5 level in that particular time or the longest duration of i-var above of 0.5 level in that particular time(M5,M15,M30 etc..) So we can find the ideal time frame.For example in my opinion(birdeye view with i-var) M60 is the ideal time to trade in EURO/USD.I hope it is clear and concise, many thanks.
Updated version posted here : https://www.mql5.com/en/forum/general
Rsx_SigMa+histo_mtf+alerts 1.01 from here: https://www.mql5.com/en/forum/general made to be compatible with new mt4 builds.
Hi mrtools / mladen,
would you please be so kind and add interpolations to this Rsx, please ?
thanks in advance
derfelderfel
Here you go
Interpolation added to all values
have a nice weekend
updated version posted here: https://www.mql5.com/en/forum/general
RSX of super smoother 2.01 from here: https://www.mql5.com/en/forum/general updated to be compatible with new mt4 builds.