Technical Indicators - page 17

To post a new topic, please log in or register
Below is a simple test script. It uses CopyHigh() to grab the high of the week so that I can create an envelope around the daily highs. Thus, it runs on PERIOD_D1 chart and pulls PERIOD_W1 values. It works as I would expect on the chart (picture 1). But in the Visualization window of the Tester, I...
Hi all, I'm new to MQL5 and I have a question about getting indicator data from another timeframe. Let's say I want to draw H1 Envelopes no matter what interval is displayed (M5, M15, M30 etc.). It means that for example on M15 the lines of the indicator should have the same value (or not?). For now...
#property strict#property indicator_separate_window#property indicator_buffers 2#property indicator_plots   2//--- plot bbwidth#property indicator_label1  "bbwidth"#property indicator_type1   DRAW_NONE#property indicator_color1  clrGreenYellow#property indicator_style1  STYLE_SOLID#property...
Hello I am looking for the Bollinger bands indicator with color change of the sup and inf bands according to their direction for MT4 like the one below version mt5 https://www.mql5.com/en/code/16489 https://c.mql5.com/18/53/BB_filled.png thanks
I'm receiving this error when debugging and indicator. I'm using MT4 build 1090 19 May 2017. I've tried the  class CFix { } ExtFix; fix but this did not work for me. Any further ideas/fixes please? 
Dear All, I develope an arrow alert custom indicator, but there is an issue First I explained the rules of this custom indicator : On TF H1 - Buy, when previous candle Close is higher than 2nd candle High on the day - Sell, when previous candle Close is lower than 2nd candle Low on the day The issue...
Hi guys,  i apreciate any help. I am stuck, i think this is little problem, that i can't see because my inexperience, even to search about my problem. I start a indicator, that plots on chart an arrow from technical indexes from 2 indicators. It actually analizes the crossing of 2 EMA's and and...
int begin=!prev_calculated?rates_total-BBandPeriod-1:rates_total-prev_calculated;   double bandsUpper, bandsLower, bandsMain, bbwidth[];         for (int i=begin;i>=0;i--)   {        bandsUpper=iBands(NULL,PERIOD_CURRENT,BBandPeriod,2,0,PRICE_CLOSE,MODE_UPPER,i);      bandsLower=iBands(NULL...
What is wrong in calling the Empty indicator using CIndicator class: The output is the following: handle=-1 The caller: CIndicator IDiv;......int OnInit()  {   MqlParam          params[3];   params[0].type         =TYPE_STRING;    params[0].string_value="Empty";    params[1].type         =TYPE_INT;...
Hello, I have some problems with this indicator. The the alert only appears once, I need to reload the indicator for the next alert. Can anyone help with this one ? * and a push notification alert would be great!
Hi all, new to MQL4. I would like to build a simple 50 EMA that send out an email to me when price closed below or above it. Can anyone can give me some codes to start with? Thank in advance.
Hi to everyone on this great forum! Could someone point to OBOS oscillator indicator found on FXCM terminals(non-MQL) please? Perhaps someone could write it in MQL and make it available for MT5... Here is the description/formula of it. Thanks! P.S.  The OBOS oscillator's values are calculated using...
Hello to all. Is there a single indicator with several indicators together? Or some similar setup? I mostly need to see a trend on the indexes even when it is not decided since not the salts and downs make false signals. Did I write in the correct space? Thanks so much. Happy weekend to everyone.
Hello, I am using the default moving average indicator in MT4. In the data window, the MA values are given to 5 decimal places. Does this mean that the actual indicator value computed is rounded to 5 decimal places? I'm testing a basic MA crossover strategy and sometimes signals are produced even...
Hi, I am a newbie here. Situation: I am trying to code an Ichimoku based custom indicator to provide a buy or sell signal based on: Tenkan-Kijun crossover, Chikou (26 periods back) crossover with price (26 periods back). If Chikou is not clearly above the high or below the low of the respective...
Hello dear MQL5 community I'm looking for an indicator for the MT5 which sends me an alert on the Computer and on the mobile device as well, when two Moving Averages crossing with each other (the days have to be self-adjusting). Is there such an indicator on the market which I can download or buy?...
About me: I have no expirence in market trading and I don't know how price are being calculated, for example: USD/JPY. I heard that these numbers (ex: USD/JPY) are calculated based on The US Dollar index, and Japenes yen index. I want: An indicator that can predict at least the next 60sec movement...
I have some fairly basic test code integrate with the indicator from the market. I am having huge problems getting any data back and would really appreciate any assistance anyone could provide... The code just takes the first buffer and the second bar. I get no errors from the handle or result but...
  platform (2)
hello,i just opened a demo account and im compleatly lost anyoane knows where i could learn the basics about trading?thank you
I would be very grateful if someone could point out where i'm going wrong with my adding alert attempt.  It works, but i'm getting repeating alerts  for the same action, i just want the one alert. grrrr  thank you kate {{ string Text; // Up Arrow Alert if ((chL_BuferUp[TriggerCandle] > 0) &&...
#define PI  3.14159265359#define RadToDeg(x)  (x)*180/PI//--- indicator buffersdouble         lwmadiffsmaBuffer[];double         lwmadiffsmapcBuffer[];double         bbwidthslopeBuffer[];int            BBandPeriod   =20; double GetAngle(datetime time1, double price1, datetime time2, double...
How to change the moving average color parameter in MT4? In MT5 we have DRAW_COLOR_LINE that allows the simple creation of a colorable average, but in MT4 only has DRAW_LINE.
  In need of this indicator (14   1 2)
Hi everyone,  Does someone have this indicator please? It's a trend indicator giving good entry/exit .  Thanks for helping
Hi mates, In this moment I have one function that save all the objects created in a specific time frame in a csv file. This function is called when a user creates / modify / delete an object. And i have another function that can read from the csv and put all the data in the chart. This function is...
#property indicator_buffers 3//---Indicator Colours#property indicator_color1 clrGreen//up arrow#property indicator_color2 clrRed//down arrow#property indicator_color3 clrRed//HMA//---Indicator Width#property indicator_width1 2#property indicator_width2 2#include <WinUser32.mqh>extern bool...
So I want to code the Moving Average of TDI's MA difference and I'm at my wit's end right now. This is my code //----- Global Variablesdouble   gdaRSI[]       ;double   gdaRSI_Green[] ;double   gdaRSI_Red[]   ;double   TDI_MA[]       ;double   RSI_MA_Diff[]  ;double   MA_of_MA_Diff[];double...
  nth_element (1)
Hi all! Is there a nth_element function (C++) in MQL5?
Hello, I have been looking in the codebase and over the internet but dont seem to find the mq4 version of this indicator that detects support and resistance. I am attaching the ex4 that I found and a pic of indi on a chart. I would like to build an EA around this indi but I have no idea how to get...
hello all friends  has anyone logarithmic moving average indicator , please ? a lot of thanks for your advice .
Hi people! Is it possible to build an moving average indicator that "zeroes" it's calculations on period change? For instance, let's say we are looking live today, but the moving average does not take into account previous day data? Is there already any indicator that does that? How is it possible?...