Technical Indicators - page 12

I have a test script that just draws a couple of HLines in the chart when pressing a keyboard key, any key (just for testing). Something like this: void OnChartEvent ( const int id, const long & lparam, const double & dparam, const string & sparam) { if (id== CHARTEVENT_KEYDOWN ){
double low_array[]; double high_array[]; int entry = 0 ; int OnInit () { return ( INIT_SUCCEEDED ); } //+------------------------------------------------------------------+ //| Custom indicator iteration function |
Hi, I'm trying to draw 8 color lines with 8 buffer colors in one day, base on time range, but almost of them are not showed on the chart, it only shows 4 buffers on data window. I spent all day without finding the cause. Where did I go wrong? My code file attached below The order of these buffers
Dear MT5 community, I have been using the attached indicator to add empty space on the top and bottom of each chart as per pics attached. I find the indicator useful and well conceived but it might be using too much ressources and I experience some lags. My question was with other users and MT5
  Random Indicator  (1)
Hi!! where I can find a Random Indicator that show in a chart a short or a long order completely random?. I would like to test one thing...hahahah
Hello everyone, I recently purchased a compiled indicator (.ex5) that plots arrows on the chart to indicate buy and sell points. When hovering over the arrows, a popup displays "ARR-UP" on the buy arrow and "ARR-DOWN" on the sell arrow. I am seeking assistance in creating a script that can
  Impulse MACD  (2)
Hello. Tradingview has an indicator. It's called "Impulse MACD". Can anyone code this indicator according to Metatrader5? Source codes are below. thanks Auto-translation applied by moderator ... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S)
Hello would be possible to plot into a chart something like this? (for hystorical prices)
Dear Fellows I am trying to create custom indicator i CandlePatterns.mq5 for identifying patterns. The Indicators works fine when loaded for the first time on chart and finds patterns for all the history data. However, after that it does not update patterns as new candles are formed. I could not
I am trading a strategy that uses EMA crossover + RSI to detect trends. However, there's still the possibility of false breakouts. Does anyone know of a good indicator to help detect when a false breakout is happening? Thanks
Hi guys, I wrote an indicator in IDE on my MacBook, and it works like a charm. I can add it to plots, and it shows correct data. If I try to load the indicator in a EA, however, I get "cannot load customer indicator [4802]". I try to load the indicator in the EA code like this: string ind_path=
can anyone help to convert this code to mql5? //@version=5 indicator( "condition counting with valuewhen" , overlay = true ) m1 = ta.ema(close, 30 ) m2 = ta.ema(close, 100 ) plot(m1, color = color .red) plot(m2, color = color .yellow) cond = ta.crossover(m1, m2) var int count = na if cond count
Hi good coders, I am trying to make MTF this brilliant indicator: My results are always with array out of range. Could you help me find the errors? Thanks in advance //+------------------------------------------------------------------+ //|
  Pip Value Script  (2)
Can someone tell me if this script is 100% correct? I am having some doubts because, for example, I was not taking into account that in the indices 1 pips is not the minimum unit of change, that is, it is not a decimal, but rather the change of 1 integer. And that has confused me // Define the
MQL4 code: //+------------------------------------------------------------------+ //| AMA.mq4 | //| Copyright © 2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net |
I am MQL5 beginner, and wonder if I can get an expert feedback on something. I found several codes that calculate lot size based on risk amount, etc. I want to create a simpler function to calculate the lot size in any given currency pair, given a USD amount. I created the function below, which
Good day to you all. I have experience coding in other languages so I am not a complete noob. That being said, being so new to MQL5, I know that I am making mistakes and need to learn the proper use and limitations of the language, which I am working on. I am not here looking for code or strategies
I have an EA that uses an indicator. I would like to see the indicator when running the EA. However, each time I change a parameter in the EA, the indicator is doubled in the chart. In the example below the Ibands has 3 lines, when I load the EA for the first time...but if I change any parameter in
I am working on an EA that for the last candle uses, say the value 5 candles ago. To visualize this, I use PLOT_SHIFT with a value of 5, so I can see the value 5 candles ago in the latest candle. Graphically looks fine. The problem I am having is that this ruins the data I get in the CopyBuffer
Hi, I am having difficulty programming a currency strength meter type indicator in python. I would later like to use it for a neural network. Could anyone help me? Thanks a lot
Hi all, I am a beginner and I'm trying to port in MQL5 an indicator I know in Pinescript and MQL4, the G-Channel made by god coder Alex Grover. I think I've done all I had to, but the indicators doesn't work as it should... Here is the code
Why there is not a MTF HULL MT5 inidicator ? There is MA, DEMA, ZERO LAG, JMA (even Bollinger , Dochian and etc ) Multi Time Frame MT5 indicators But when you look for Hull is imposible to find a funtional indicator. Anyone could give me a tecnical (good) explanation whay
I want to know is there an indicator or expert advisor in mt5 that can show candles by contracts e.g. one candle to represent 1000 contracts of any forex pair, metal, energy, etc. ??? If not can it be coded in MT5??? This is because trend lines are more accurate when bars represent contracts rather
Hello everybody, i'm a developer, i've just arrived on mql5 language, i would like to practice on the language, so i've encounter a problem in the mt5 UI it's possible to merge two indicators in a same window, i'm wondering about how can i know that for example, the RSI has cross the MACD
I was brainstorming the other day wondering how one would go about coding something like this logically. I had an idea involving plotting a 1 period sma on the highest highs of each candle (for example's sake) then with a vwap on a higher timeframe create a variable which runs through each possible
Hello, I'm trying to create an indicator to show some basic info but I have problems with text objects. It only draws the last text label like it's overwriting it, I suspect it's because of the indicator buffers but I'm not sure
I am trying to code an indicator (lets say a MA for simplicity) that is calculated in higher time frame data to be displayed in a lower TF chart. For this code, I have recycle several codes available in the code base, but I am falling short to find a way to color code the direction of the line. Say
Hello, I think simple question, how to change the OVB indicator showing the line mirror way. Going the other direction. Thanks
Hello - I have written an indicator that uses the OnChartEvent event that draws lines onto the chart. When this indicator is loaded by an EA using IndicatorCreate, drawing the indicator on the chart is not required. Although not drawn on the chart, the function for drawing the lines is still run
Dear Members I am iBars() in a indicator Class and it was working perfectly fine even on Saturday (Weekend). I than updated MT5 to the latest update released and after starting again, I was getting 0 values from iBars(). I wasted couple of hours to find cause in my code, just to realize that iBar()