Technical Indicators - page 26

Hi. I want to close only the current chart if the given condition is met in the indicator after sending an alert. So, I tried the following code. But it gives the error message " 'ChartClose' - function declarations are allowed on global, namespace or class scope only". Could someone please help me
If this is in the wrong place, please move, thanks. I am using an indicator (Trend Direction and Force Index) which I downloaded from https://www.mql5.com/en/code/22976. My problem is that when I see the values on the chart (and using a Script), they are not the same as when I run an EA. Can someone
A regression channel is a technical analysis indicator that attempts to forecast where a stock might go next. Watch this video to learn how this indicator might help you determine potential entry signals and price targets, and what price to consider when setting a stop order
Hi I cannot figure out why the array is not working . I have a function int start() { int label_count = 0 ; for ( int i = 0 ; i < SymbolsTotal ( true ); i++) { string symbol_name = SymbolName (i, True); int conditions_met = 0 ; // Condition 1: MA5 crosses over MA8 double ma5 =
[Deleted]
Dear developer, hope you doing well. I've started learning MQL5 a few weeks ago and I am practicing with a lot of examples. But there is something that is causing an issue and I have not identified the cause. I have an indicator working very well: So I am trying to add some new features to improve
I know nothing about coding and I've been using this indicator only to find out it repaints. Any help is appreciated. Here's the code. //+------------------------------------------------------------------+ //| SilverTrend .mq4 | //| SilverTrend rewritten by
I have tried converting mq4 to mq5, but there is a problem with the buffer where the buffer does not match the one in mq4, what's wrong with the source code? please
In this video, we perform a step by step analysis together. We dissect a price action chart and try to follow the path of the price. The goal of this video is to read the price action by understand the various price action principles to our charts. We look at momentum - the speed of the price
  zigzag peak date  (3)
Hi, I am having trouble getting the zigzag peak date or the date of the candle where the zigzag created a high or low points I have gone through all threads i found talking about the zigzag. This is what I have //+------------------------------------------------------------------+ //| Custom
*edit: I figured out how to do it, it's basically a weighed standard deviation formula instead of a regular standard deviation. And it uses N rather than N-1 (unlike Bollinger Bands). More details in my last reply. ----------------------------------------- Original post: I've been spending a lot of
Hello everyone. When painting horizontal R/S indicator buffers I have to leave an index blank. Else it will draw a funny sloped line to connect the two points. Is there a logical solution
Hi . I have 2 time frame in ST (M5 and H1). I create MACD handle in H1 and chart load in M5 (show Time frame in MT5 is M5) .when I run ST i have 2 chart M5 and H1 (So far everything is correct) . how can I show MACD histogram in H1 time frame in M5 chart window? I have a solution in mind, I don't
  #MarketPrice indikator  (46   1 2 3 4 5)
I'm very in love to this forum (frorex-tsd.com) so I want to give a little contribute to this forum as much as I can.
Hello friends. When applying background colors most of the lines on chart go invisible, no matter how light the background color is! Is there a solution
Hey all, I have an indicator that uses #property indicator_chart_window This property used to ensure that the same indicator can only be applied once to a chart. Is that not true anymore? I just checked in MT 5.00 build 3550 : the same indicator with same settings is only applied once. However
hi every one, i am trying to write a code to draw some graphical objects on chart, because one of the objects is circle, i have fixed the chart scale to 1:1 if (! ChartSetInteger ( 0 , CHART_SCALEFIX_11 , 0 , true )) { //--- display the error message in Experts journal
//+------------------------------------------------------------------+ //| MyATR.mq5 | //| Ashwani Kushwaha | //| https://www.mql5.com |
This indicator loads properly when applying the single time frame mode(use alternate resolution=false) But when applying (use alternate resolution=true) it won't work in closed market. But works properly with strategy tester
Hi guys! Is it possible to put limits on extern vars in the Inputs tab for an indicator? Let's say a var can be from 0 to 200. And you don't want the user to enter a value over 200 or a negative one. I know I can correct this when the indicator starts, but if he enters the value in the Inputs tab...
Dears, Where can I find Elliott wave app
Hello, Following code gives me a number in the -214000000? cant seem to figue out what i do wrong. Looked through the forum but only found people with the same problems. double Fractalshigh[]; double Fractalslow[]; int Fractaldef=iFractals(_Symbol,_Period); ArraySetAsSeries (Fractalshigh,true);...
Hello everyone. I have a multi time frame indicator which does not load in closed market. Actually starts painting when first tick arrives. Do you have any idea? I can send you the code also
hie everyone am looking for a high low indicator that doesnt have continues line, but has got short line please help
[Deleted]
  Seconds Chart  (1)
//+------------------------------------------------------------------+ //| еСекундичка.mq5 | //+------------------------------------------------------------------+ #property copyright "Copyright 2018, МегаКурец Software Corp." #property strict
I'm new to MQL5 with some experience in MQL4. In MQL4 the indicator value is directly called by double value = iSomeIndicator(symbol, period, parameters..., shift); While MQL5 we use a handle to initialize first, use CopyBuffer() to map it to a defined Array then visit the array to get value. So my
Hello All, I want to make a straightforward change to the example shipped MACD to expose the Fast & slow EMA's as lines in the same window as the histogram & signal. The standard shipped example MACD (attached) exposes the histogram & signal in a separate window. I can build it, it works - all good
I was getting wrong values in OnCalculate() method in my custom indicator. Here is a test indicator just logging the values. int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double &open[]
  Coding error  (4)
Hi, Can anyone help with the code below. I keep getting the error messages below and cannot work out the solution. Regards, Anthony #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Lime #property indicator_color2 Red //inputs extern int MA_Period = 30 ;
Im creating an indicator that has to detect chart structure . e.g Rising wedge I do have code I took somewhere online that only places s/r at the peaks. I want to convert the code to take in trendline, so can you please guide me; //+------------------------------------------------------------------+
Hi, How can we put a price line in the "Three line break" MT4 indicator window please? A price line is present in the MT5 version but not in the MT4 one. Many thanks MT5 version with price line in the indicator window (https://www.mql5.com/en/code/1298) MT4 version without price line in...