Technical Indicators - page 6

Hi Sorry if this is not the correct sub-forum for this question, I am unsure of the exact nature of my issue. Whether it is an indicator issue, strategy tester or MT5. I have recently had an issue on one symbol, where the Ichimoku indicator does not seem to work as expected. I was running an EA I'm
Another newbie question about this code, found at CopyBuffer - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5 //--- we can copy not all data int to_copy; if (prev_calculated>rates_total || prev_calculated<= 0 )
Hello guys, do you know how to remove all the zero value from the indicator histogram buffer value like this picture? for example I want to make the value from 5.60000 to 5.6
Hi! I'm trying to create a visual indicator (MT5) but I'm having difficulties (I only know the basics). I tried to modify a code available on the site, but without success (https://www.mql5.com/en/code/1349). What I would like is: Candle Green: Close is higher than the previous high: (C2 > H3) or
Try as I might, I just can't wrap my head around CopyBuffer. Straight from CopyBuffer - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5 : Can someone explain how this is not a transposition
Good day. I have an indicator and on trying to upload it on the strategy tester i get the error cannot load expert. what is the cause of this error as it doesn't have an error code. even bug check cant help as it works fine in a live chart
  Oscillators  (41   1 2 3 4 5)
Does anyone have a large collection of oscillators (works best in a trading range) that he/she put together? Maybe we could start a thread where all oscillators are gathered. And let's go a little beyound RSI and Stochastic
I have no idea why the statement " double dD10th = 4.1 ;" would result in the value "4.0999999999999996", but oh well. So I'm trying to round it back to what I originally assigned it, "4.1". I tried " double dRnd10th = NormalizeDouble (dD10th, 1 );" but that did nothing: Not sure why 4.1 <>
Hi there, i found this script to remove all windows borders. But infortunately, it does not work. Can you please help me (or fix it for the community) ? Regards //#property script_show_inputs #import "user32.dll" int SetWindowLongA( int hWnd, int nIndex, int dwNewLong); int GetWindowLongA( int
Suppose I am running indicator_1 in EURUSD chart. The indicator_1 code opens a GBPUSD chart and adds indicator_2 to that chart using ChartIndicatorAdd . The objects in indicator_2 are appeared in EURUSD chart and not GBPUSD. Is it normal behavior? Can I avoid this? long chart_id= ChartOpen
Hi, I created a simple custom indicator to display a ratio between 2 instruments. It's display a line, calcul is ok. But now i want to add an EMA7 on this custom indicator and when i try it display nothing. Could you help me? Thanks in advance :) My code
Obviously, I'm doing something wrong, but I can't see it for the life of me. I'm testing against AUDUSD on a 5-minute chart. (FYI - I name my variables so their types are evident: dVARIABLENAME for double, iVARIABLENAME for integer, s VARIABLENAME for string, etc.) iDfnRngBars = 5; dDgts =
I found a Pivot indicator, that identifies the highest candle among a set or before and after candles. It only marks the position of the pivot candle. This is the same idea of the fractal indicator, with the difference that the pivot indicator is flexible on how many candles on the right and left to
Hi Can someone help me to know which piece of code is causing Zero Divide error, so I can fix it. 2024.03.09 13:30:06.707 login (build 4153) 2024.03.09 13:30:06.722 template file tester.tpl added. 7012 bytes loaded 2024.03.09 13:30:06.725 expert file added: Experts\Algo\EAToTest\TestEA_iVP-v6.ex5
  mql4 to mql5  (4)
i tried to convert this indicator code from mql4 to mql5. mql5 code shows nothing. what is mql5 code problem? mql4 code: //+------------------------------------------------------------------+ //| WelchHMABB.mq4 | //|
Hi All, I wrote the simple indicator. I want this indicator in the separated windows. the first run in OnCalculated function is working correct. But the updated the value is not proper as shown in the picture. It seems it just show the closed value in green. #property indicator_separate_window
Hello, What is the custom tooltip size in MT5? Is it smaller, than in MT4? Is it adjustable? After custom indicator was converted from mql4 to mql5, not all info is displaying in tooltip
Deal Fellows If I used following code to dynamically select Real or Tick volume, is there any known issues? // Automatic selection of Volume Type. If real volume data available, we use it in calculation /* vVol = (appliedVolume == VOLUME_REAL) ? (double)aRate.real_volume : (double)aRate.tick_volume;
Hello, I am creating an indicator that uses HTTP requests in the Oninit() function to perform web authentication. This indicator, which is planned for sale, requires a reasonably strict authentication process. The issue I am facing is that "Oninit() is triggered again when the time frame is changed
Hi I'm looking for an EMA indicator that will be plotted based on RTH hours (i.e 9:00-17:45). Rest of the day without EMA at all. Is it possible to do in MT5? I got something like this in TV but I do not have the skill to transform it to MT5. I need it for real trading so creating a custom symbol is
I have an indicator that needs to gather data from several trading instruments before calculating. It uses OnTimer event to make sure everything is updated. However, if the market is closed and the indicator failed to update all the necessary data before the first (and the only one) OnCalculate...
I want to create a custom indicator based on the signal values obtained from different indicators. I mean the signals that are defined in Modules of Trade Signals like Signals of the Oscillator Relative Vigor Index Is the value of these signals accessible and readable for the dedicated indicator? If
Good day.for years now I have always had a question. Say you make an indicator with 4 buffers and 4 plots. All are set to array series true And wen you compile without assigning any values to the buffers, they will be ploted
Hello people, while working with some indicator system I experienced a misrepresentation of the values. More exactly: the custom indicator consists of 7 buffers being used for 4 plots. First I have a fast ma and a slow ma, which are being drawed normally as lines Secondly their data is copied to a
Hey all, I have developed a function to plot prices of interest - however it uses ObjectCreate() which does not visualise nicely when backtesting, so I am in the process of creating it as an indicator. The problem is that the number of prices/levels it returns is variable depending on its
trying to count total number of trades closed. but it shows twice the number for each trade. one when it opens and one as it closes. anyone can help please? int TODAY_TRADES() { datetime CurentTime = TimeCurrent (); datetime PrevTime = iTime ( Symbol (), PERIOD_D1 , 0 ); HistorySelect
Hi, I'm testing some features, and am stuck trying to use data from another indicator using iCustom() The goal is that I want to pass applied price or an indicator handle to iCustom, but in that Indicator it always returns value = 0. My TestMA indicator works without any problem Specifically here, I
hello guys. So I was trying to build an EA that utilises bars of multiple timeframes to gather information for trading. Now i'm struggling with an issue where if I try to run the code on a lower timeframe chart it can't seem to access the adequate number of bars it needs on the higher timeframe
I am trying to code my own triple exponential moving average. Here is what I have: tema1ema1 = MathMean(typical); //typical is an array for the last 20 bars where 0 is the most recent for ( int i= 1 ;i< 20 ;i++) { tema1ema1 = typical[ 19 -i] * . 0952 + tema1ema1 * . 948 ;