Technical Indicators - page 31

I am trying to create a Dialog with two CBmpButtons. The UX works fine BUT when the programs needs to handle the button clicks just detects the first button and no the other one. Am I doing something wrong in here? I have made another Panel using CAppDialog and the code handles all the button clicks
I'm trying to write a custom indicator that relies on finding the average value over a past number of bars, but I'm having trouble figuring out how to write the function, although it should be simple, but I don't see an "average" function prebuilt into mql4 and I don't think I would need to save
A little explanation: I made fractal based calculations using High and Low data which I modified a bit. As a result, I have a series of tops and bottoms, for example, taking into account the rules I set for 500 candles backwards from the current price. double "Price Low" [0.71, 0.72, 0.695
I want to know if is it possible to use data from a terminal to calculate an indicator and use that indicator in another terminal? For example use a Demo account trade history and use it for some calculations and make an indicator. Then use that indicator in another terminal which a real account is
When installing this indicator on my MT5 It gets slow and it is practically unfeasible to use Does anyone know the reason for the slowness in these cases? It's the computer ? Is it the Broker? Is there anything to do about it to fix it? <Deleted>
I think this indicator only draws a line up until bar 2 but I was honestly hoping that it draws up until bar 1, and still be non-repaint. Can this be fixed or is there an alternative similar to this ZigZag-nrp? #property copyright "Copyright 2022, MetaQuotes Software Corp." #property link
Hi everybody, You can adjust the height of subwindows by hand with mouse drag. But when once it set by using ChartSetInteger(chart_ID,CHART_HEIGHT_IN_PIXELS,sub_window,value) it can't be resized with mouse. Is there any way to resize it again with mouse drag ?
Hi, I would like to draw an integer (~5-200) above/below a candle when conditions are met instead of drawing just an arrow as it would be more informative for me. Any simple enough code to do it? I have searched the codebase, but haven't found something(yes, I haven't checked everything). Maybe
As you can see in the code, I put the high prices into an array and printed it. But there are differences between the output prices and the prices I see in the parity. This applies not only to "high", but also to others. I can't understand why? #property copyright "Copyright 2022, MetaQuotes Ltd."
I have a request for converting an indicator from MT4 to MT5 which I would really appreciate. The problem is this: I started to learn trading and developing my strategy more than a year ago. I manually backtested and forward tested a strategy that includes an indicator called “Cyan 2 High Pass
Hi. I want to check account used margin so I write this code and use it as an indicator: #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Blue double Buf_Exposure[]; // Declaring arrays (for indicator buffers)
[Image] How can I do something like that? With CWnd, CPanel? Or there's another way to do it? Before someone clever says that if I don't post any code blablablabla.. I am now asking for code, I am asking for a way to do it: maybe some article, some example or even some functions to look for that
Hi, i want to get the value of the "SimpleMAOnBuffer(rates_total,prev_calculated,0,InpSignalMA,ExtMacdBuffer,ExtSignalBuffer);" but u only get 105577.0 and i want the value from the curve, can someone explain me how ? //+------------------------------------------------------------------+ //|
Hi everybody, I am trying to organize the "Data Window" of Metatrader by adding some descriptions of indicator_separate_window. Please look at the following screenshot: As you can see, for the Market data there is a short description "EURUSD Daily" but for the separation for the indicators is a
I just need a little help to get off the ground. I'm new to MQL5, and I have copied code from here and there. I am missing something in my code. The code compiles, but the indicator line does not show. Thanks. //+------------------------------------------------------------------+ //|
Hi I have this indicator that I want to use. If I'm not mistaken it would display lowest and highest price of certain number of candle. I have a problem with this indicator and cannot use it on my EA. Is there another similar indicator out there that works just like this
Hello, I need someone to convert this indicator to mt5 thnks
  All John Ehlers Indicators...  (958   1 2 3 4 5 ... 95 96)
Hi all... I'm dedicating this thread to all indicators by John Ehler's in the hope that we can get/make as many of them for MT4 as possible. Please post any MT4 John Ehlers indicators that you have here as outlined in his books "Rocket Science for Traders", "Cybernetic Analysis for Stocks and
Hi Guys Hope you are well, Im trying to make an indicator that uses histograms, at the moment it checks for a signal and draws a signal of one bar on histogram, how can i make it so its a continues histogram, so if a buy signal shows and the indicator draws a continuas blue histogram/buffer until a
Hi guys, I am learning to make indicators, for now I want to make simple one: Indicator rule: If close price [1] is x amount higher then close price [2] then place buy arrow on close price [1]; If close price [1] is x amount lower then close price [2] then place sell arrow on close price[1]. But the
I found an old indicator online which I would like to convert in mt5, I tried by myself, however they give me different results and after days of testing I'm not able to find the right solution. I attach the two files. Thank you for your help
I wonder in what situation the "chart_id" parameter of the ObjectCreate() function can be useful. All the examples I have seen so far have this parameter equal to zero. Can someone give me a little explanation or provide a link where I can see an example of its use when it is different from zero
I am new to MT5 and having some trouble creating a simple moving average indicator. Sometimes the plots look correct, but sometimes the plot just flattens out at 0. Can anyone see what I am doing wrong here? //+------------------------------------------------------------------+ //|
Hello friends, I was converting a simple indicator that I have from MQL4 to MQL5 but I meet a strange problem in the initialization function OnInit(). To simplify the problem I wrote the next code then I complied it in mql4 & mql5. When I add several copies from the same indicator to a chart, I got
  please give me a help  (16   1 2)
Good morning. I wrote a code, but MT5 tell me ——2022.06.07 10:03:04.912 ask (USDJPY,H1) array out of range in 'ask.mq5' (276,22); I add a line at 275: ArrayResize(sig_USD,shiftbars); but it does not work anyway. can you give me a help please
Hi everyone, I was wondering if it could be possible to have additionnal timeframe in MT5. I'm looking for a script or EA or anything else that could allow to use 12 seconds timeframe in MT5. If anyone has any idea or any file that could help me. Thanks you. Have greats trades. ( sorry for my...
Rookie problem, write 5 consecutive closing prices in a loop, but it is not correct, please help me, thank you //+------------------------------------------------------------------+ //| continuity test2.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //| https://www.mql5.com |
  aroon indicator  (2)
Hello someone. Once there were some booms on "aroon indicator ", I want to know how those indeicators are. I searched on this MQR5 articles, but no article are exist. If someone knows about the story of "Aroon", Prease let me know ! Thank You! tsutomu 612
  Std Deviation  (84   1 2 3 4 5 ... 8 9)
A lot of people like the RSI and the ADX, but StDev is by far the best. Some people use 5 indicators to make their decisions. You only need StDev... anyone here have a very good setting for this indicator?sorry for my bad english..
Hi every one. pls help me im tired of this. this is a simple code that only use icustome and copybuffer to get value of rsi the problem is: when Chart Time frame is different from TF you set on icustom it returns -1; i test it with many indicators its the same i set PERIOD_D1 to icustom. CopyBuffer