Hi,
Im trying to implement alerts into my script but im not aware of howto. It should alert when two MA's crosses.
Most of the script is already working, its drawing the arrows at the right spot, but i also want to implement alerts when it crosses.
Right now my script is stressed out when i try...
Hi, I have a stochastic alert for MT4...I only want it to fire an alert if ADX is less than something like 25. How on earth can this be done? It must be very simple if you know a bit about coding... I have googled for quite some time on this but just can't find out how to do it. Thanks in advance
Is someone able to detect why this Pivot Confluence indicator won't print text?
It only draws lines but it should also print line name and price. Holding cursor on the line it shows label and price but it also should show same information on the lines.
I tried to change the color of the 2 iMA lines below, but failed.
What's wrong with the codes? How to fix? Thanks.
double MAShortCur=iMA(NULL,MaPeriod,MaShort,0,MaMode,MaPrice,0); double MAShortPar=iMA(NULL,MaPeriod,MaShort,0,MaMode,MaPrice,1); double MALongCur=iMA(NULL,MaPeriod,MaLong...
ZigZag indicator gives wrong value in Strategy Tester (only for period: 2015.01.05 - 2015.01.06)
(5)
Hello,
I use the indicator ZigZag in my Expert Advisor and I noticed that this indicator gives me a wrong value in Strategy Tester for the period 2015.01.05 - 2015.01.06 (EURUSD - H1).
Everything works fine until 2015.01.09 at 06:00 (see screenshot 1), but then the last high...
[Deleted]
I manually add two indicators from my expert advisor as given below. The idea is to add separate sub windows to the chart and if the expert advisore is removed from the chart, so should all the indicaotrs it created.
int handle1;int handle2;int OnInit(){ handle1 = iCustom(Symbol(), Period(),...
The example CPanelDialog (PanelDialog.mqh) show how to create, set an event and delete these objects. I tried, BUT i understood nothing i'm new in the programming. Someone could explain it in a simple way to how use the classes for the dialogs, ty
i have the moving average shifted 10 and with sma i know his value(price) but it's possible get the datetime of the shifted period too? thanks in advance! double sma = iMA ( NULL , PERIOD_CURRENT , 16 , 0 , MODE_SMA , PRICE_CLOSE , 10 );
Hi, I'm trying to catch a trend from MA to the indicator but it doesn't work.
It should drow the label when ma 3 bars back is higher than ma 1 bar back.
The code is like this:
MA6=iMA(Symbol(),0,ma_fast_period,0,ma_fast_method,ma_fast_price,1);
MA6_2=iMA(Symbol(),0,ma_fast_period,0...
Hi
Could some one please tell me how to code the following.
I want to place the maximum spread ABOVE each bar.
I can easily find the spread
double x=MarketInfo(Symbol(),MODE_SPREAD);
but don't know how to place it above the bar
Many thanks
Hi all, Has anyone got the bool CWndContainer::OnActivate to fire? I need to know when the container is active so I can put a highlight around the control, but i just can't seem to get it to fire and I have tried lots of different methods. Any help will be greatly appreciated. Kind regards Dan
Hi everyone!
I tried to code the Chaikin Volatility indicator but it does not work at all. I know that there is plenty of examples of such an indicator, but my point is to understand what I am missing and whether I got the MQL language.
The problem I am encountering is the following: no data is...
Please anyone has any idea or know hoe i can get an email alert on my email whenever my indicator gives an alert on my chart. I have already set up my email with metatrader 4 and i have successfully sent test message applying all the SMTP settings.Thanks....
I need an indicator for MT5 that shows the average daily range.
Please can anyone suggest where I can find one or how if I could create one?
I have tried to generate a custom indicator that is based on a ema indicator which would draw multiple lines all based on the same period value but shifting the plot up and down based on the closing price multiplied by a percent value. the code compiles but only prints one of the waves requested any...
Hello,
Indices of currencies such as the US $ Index, the index €, GBP index etc. indices are calculated from geometric means different currency pairs, which is variable is the weights of these pairs.
Is it possible to have these indices as indicators MT4 is configurable on which to apply other...
Hello, is it possible to set index buffer to class type?
Thanks, in advance.
I have a class:
class SupportResistanceClass { public: double High; double Low; double CandleLowHigh; };
Variable:
SupportResistanceClass _support[];
And I want to set index buffer to the support, I...
Hello
Color arrow indicator works fine in main window (plots the arrows), but not in tester.(it shows the value but not the arrows) What is the problem?
Thanks, G
//---- plot indicator in a separate window
#property indicator_separate_window
//---- indicator buffers
#property...
Hello, I was wondering if someone could tell me how to translate the following into MQL4: Mov(H-L,period,S) It's the simple moving average of 'H-L' with the parameter "period". That I understand. What I don't is how to calculate it over "H-L"
hi.
I need some help or clerefiance why my indicator does not work all around the clock.
I have made a small indicator that is writing to a file every four minute. and I have a chrome extenssion that is reading this file. it works but after a fiew hours It stops working.
this is how it's done....
Hello all. I am working on a test for multiple timeframe indicator and starting with a simple dummy code, as below, results in no bar calculation at all. The only way for this code to work is selecting D1 timeframe, but I need this information in other timeframes such as M5 and M2. Any help and
Hello all,
at the moment I'm traying to create an indicator. The indicator should plot every bar the maximum and the minimum of the last 50 bars to the chart-window. Also it should calculate the difference of maximum and minimum.
I tried it like this:
#property copyright ""//--- indicator...
I have an indicator that has worked for me for quite some time with consistent profits. Am seeking to to improve it as it requires me watching the charts for the whole time. I would like to just add sound alerts every time an arrow appears on a chart. If there is any one who can help me...
I can see on my smartphone when the daily range ist full...
maybe someone can help me... i can not program correctly
sorry for my google translatorenglish :-)
thank you very very much
Hi to you all,
I have programmed an indicator that shows great buy/sell signals (historically) when shifted bars are used say minus two (-2).
When no shift is used the indicator is very ordinary. In real time, the indicator is not showing true values till the 3rd bar back.
Because the shift is...
i compiled this with the aim for show the icon on the chart.
the object is created but i see nothing on the chart. Pliss Help me. sry for my bad english.
void OnInit() { IconLabel(); }void IconLabel(void) { string obj_icon="IconLabel1";...
Hello,
Building a strategy for practice based on bollinger bands and stochastics.
What should happen is that if the close of a 5 minute bar is above the upper band and the stochastic has gone above 80, a sell order should enter, and conversely lower band 20.
However when I run it to test in mt4,...
Hello,
I have an indicator on MT5 which includes linear regression slope, with the slope function (to get the slope of array x[]) as follows:
double LinRegrSlope(int per) { double sum=0.0; double wsum=0.0; for(int i=per;i>0;i--) ...
Hi guys I apologise for asking this question, without offering to pay anyone, but hopefully someone can help me. I have an indicator that provides an email based on a particular condition. The email function is a simple string concatenation which looks like this: SendMail( StringConcatenate( "basic...
Hi,
is this the comprehensive changelog for Build 1085?
http://www.metaquotes.net/en/metatrader5/news/4306
One of my technical indicators doesnt work anymore since the last MT5 update and I have no idea why.
Sven

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
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.