Technical Indicators - page 25

How can I reinitialize an indicator's period based on the output of another indicator's handle? Would I create the int/double on the oninit tab, or inside the oncalculate tab? Would I copy the handle/buffer over to OnTick and calculate the period variable and return it back to oncalculate? Edit: I
Can someone help me fix this 2 errors? void OnStart () { input ENUM_TRAIL_TYPE trailType = ENUM_TRAIL_TYPE( 0 ); // modified input int ATRPeriod = 28 ; input int ATRFactor = 5 ; input bool show_fib_entries = true ; double norm_o = iOpen ( NULL , 0 , 0 ); double norm_h = iHigh ( NULL , 0 , 0 );
Hi, I was creating an indicator that has 2 buffers. double x_1hr[] , x_30min[]; This indicator has to be used on 4 hr chart (for convenience purpose). But it needs to also populate values in the x_1hr and x_30min buffer array after some calculation in the onCalculate function. The value in these
Hi, This help I am seeking from expert traders, Below is the code of an indicator in which 2 small lines moves together along with each new candle. I just stuck to add name of line just above it which could move along with line & candle. I just want to know the function and where to add it, if you
[Deleted]
Most of the indicators i tried are re-painting. Looking for a non-repaint indicator. If you know any non-repaint indicators, pleas suggest their names and if possible share the link too
Hello! While developing an expert advisor that is becoming quite complex, I thought it was a good idea to plot the profit of the positions in percent of the free margin. This indicator would help to understand visually what's happening in specific cases. It is intended to work in
Hello, I used the Indicator The class for drawing the Fractals using the ring buffer from Konstantin Gruzdev https://www.mql5.com/en/code/1422 Ghost arrows are displayed there with buffer values, but I can't find the error. Unfortunately, the error does not appear in the visual tester either, only
Need alert on buy sell arrows in my indicator. Can anyone help me out with this. I attached mql5 file here. Thanks
Is it possible? Is the code compatible
Hey guys, Does anyone has non repaint Breaker Block indicator? Which show correct zones and is accurate
Hi all, Below is the (working) code to open a buy order if the close price of the previous bar is above the 20 moving average. However, i use M15 charts but want the moving average to be calculated on the D1 chart/time frame. How do i go about this? TIA #include <Trade/Trade.mqh> CTrade trade; input
[Deleted]
Hello, I'm trying to create a exponential moving average on an array. I seem to get the correct values every time I refresh the chart, but not when I just let it run. The buyEMA returns 0.0 or an insanely high value, once I let it run. Below is my code snippet. I checked the buying_volume array, it
I am building my first indicator for MT5 except I have never done it before. Is there a way I can open the code on an already created indicator that is the same style as what I want to make to learn the code inputs? I have no idea what to enter to get any results so I'm trying to learn. Many thanks
Hey! Thanks for taking some time out of your day to read my question. So in my script I am calculating a few EMA's. With these EMA values I have to do some further calculations, but how would I do calculations with these values that are stored inside this array (buffer)? input int UMAPeriod = 9 ;
Hello, why does the follwing happen with two simple custom indicators. Indicator 1: Print("calc1") in OnCalculate Indicator 2: Print("calc2") in OnCalculate When called in Strategytester (anny settings), each indicator works as expected. But when indicator1 loads icustom("indicator2") in...
Hello dear friends, In MQL5, How can I use functions iBands, iStochastic, iRSI and so on, on previous data (like 1 year ago)? I need price archive with some indicator values on it, How can I rich this data set? thanks in advance for your help
Hello everybody, I was working with MovingAverages.mqh when I saw that I also wanted a function to get the applied price. With the median, typical and weighted it seemed within good measure to store the results in a &dst_buffer[]. But it bothered me to do it with open, high, low and close because it
Greeings, I am new to MQL5 and this is my first post...! From the research I have been conducting I am unsure if this is possible... I have a need to enable detection of 'intersecting' lines on a chart. I believe it can be determined if lines intersect by obtaining the (X, Y) coordinates of the
  Missing alerts  (1)
When the indicator was running, it is observed that sometimes some of the alerts were missing. I ran the same indicator in 2 computers at the same time. Both setups were identical to each other. Surprisingly, the results were not the same. Some of the alerts were only displayed in one setup. Could
Hi, I'm experiencing a strange thing with a colorized indicator histogram. The histogram is defined like so: #property indicator_type1   DRAW_COLOR_HISTOGRAM#property indicator_color1  clrSteelBlue,clrRed#property indicator_style1  STYLE_SOLID#property indicator_width1  2 Note the two colors. In...
Hello guys; I have an issue, I am trying to code an Arrow indicator for Moving Average crossover, but I always encounter an "Array out of Range Error" on any line with [i+2], and when i cooment out this lines, I later have the same "Array out of Range Error" on any line with [i+1] && [i+3]. I have...
Hi. Could someone please suggest a way to stop an indicator from refreshing when changing the time frame of the chart in MT5. Whenever I change the timeframe of the chart, it refresh the indicator and generate the same alert again and again. Please suggest a way to avoid this. Thank you
Has anyone used skew/kurtosis indicators in trading? I've developed an indicator that calculates both metrics using a VWAP as the average to calculate skew/kurtosis. Visually it has been interesting but I've failed to see how I can develop this further. Anyone interested
[Deleted]
  done  (1)
done
Hello all, I have an indicator that draws rectangular objects on the chart, as shown in the picture. I would like to react to these, as soon as a rectangle is created I would like to process the points high, low and possibly the length. The objects are only under "show all" to find and also not
#property strict #property indicator_chart_window #property indicator_buffers 17 //--- input parameters enum ENUM_WORK_MODE { DAILY, WEEKLY, MONTHLY }; input ENUM_WORK_MODE workMode=DAILY; input int StartHour= 3 ; input int lineWidth= 1 ; input ENUM_LINE_STYLE lineStyle=
kindly help, how to add buy or sell text on mt5 indicator when stochastic cross each other
Hello. The custom indicator that i've created does not show historical values on chart. When i try to attach the indicator on any chart i can only see the values beginning from current bar. If i change the broker for some other company it works normal but if i change the symbols GBPUSD-GBPJPY to
I purchased an indicator on the website via the Marketplace. On the website I can see it in my list of purchases, and on the product page it indicates "This product already purchased." There is a link there "Install on the Terminal" that does nothing. When I go to the Market tab of the MT4 terminal
One issue I'm having modifying pre-existing indicators is the indicator plot on the graph will stop updating and return to zero, until I recompile or change timeframes and back again. I've been trying everything. What's the best code for an indicator loop? Here's my code, trying to combine Bears and