You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.
Thanks for sharring JohnnyBoy.
Altoronto
Here you go regardsMladen
Mladen, can you add option for different currency in attached indicator?
Thank you in advance, as always.
Your's truly
AltorontoNema crosses
Thanks Mladen works great, now i see what I was doing wrong.
CCI Squeeze Indicator
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
end
Hi,
does anybody has profit taken index (PTI),and can u share with us
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.
Colors
Altoronto
Here you go
regards MladenDear mladen
I wonder if it is possible to have changing colors for SSA normalized(when
cross zero line),and TEMA( when change direction)
Thank you very much for your time
Dan
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 code regards Mladen
thanks mladen
eMACD magnifier
Hi guys,
I did a little "cosmetic" update to the eMACD indicator (MACD eSignal looks like); I've added the "magnifier" input to draw a bigger osma (useful to see better when the OSMA is pretty close to 0) and different color for osma above or below 0.
Enjoy
Regards
brax64