Technical Indicators - page 7

Hello all, i'm new here, as the title says, (MT5) i'm trying to overlay an M3 line-chart onto an M1 line-chart by creating a custom indicator that uses M1 as the data source, however i've run into lots of problems, nothing gets draw even after initializing my buffers, any pointers in the right
So far, all I'm aware of is: IndicatorSetInteger ( INDICATOR_DIGITS , 0 ); which suppresses the decimal portion of ALL the buffer readouts in an indicator. How can I suppress only specific buffers that I already know ahead of time will have no decimal values, making them integers (in effect). I'd
This baffles me. Here is the IDE with the platform showing behind it, including a cleared Experts tab in its Toolbox: Here is what I get when I run the debugger (green "play" icon)... And this is what I see when I click OK to accept the default input parameter value, clearly showing the code paused
I want to display the indicator short name, but choose to display or suppress the buffer readouts to the right of the name. How is this done? Sometimes I'm fine with the default, show the readouts: But if I so choose, sometimes I want only the indicator's short name to appear
Say I have an indicator that generates values of higher time frame in lower time frame charts (A so-call MTF indicator). If I were to copy the values of that MTF for say creating a custom indicator at a lower TF. How do I copy the data from the MTF indicator? I am using a code that does the job
Hello community, when trying to place a Buy Limit order programmatically, i get error 4765. It turned out, that the limit price is too close to market. It seems there is no information about an offset accepted by the broker for such orders. This is my workaround code , which simply repeatedly steps
Hi again, So this is my second indicator. And this indicator is created to be able to follow Jperl's Market Statistics thread on Traders Laboratory. Please read this summary document of that thread first. After reading that document lets discuss how can we use this approach in Forex trading... I am...
Here is the code for this, my RSI always returns as 12 for every symbol i use my script on Moving averages always return at 10 and 11 as well I Cannot for the life of me figure out why. // Calculate Moving Averages correctly double maShort = iMA(_Symbol, PERIOD_H1, 50, 0, MODE_SMA, PRICE_CLOSE);
Hi, I am sure I am doing something wrong, but I did my research and couldn't find the answer. Well, it is my first time creating an indicator, and I am confused with the results; the idea on my indicator is simple: I check the candle to see if it is bullish and closing above the high of the previous
Here's the code: Here's what the compiler says: Why does line 6 compile fine, but line 7 triggers an error
Hi, There is an issue with the <Deleted> indicator that I purchased here, its not working again when I attach it to a chart. And removing it and again installing it on the same account is using up all the available activations. My activations are getting wasted and soon there will be zero
Completely flummoxed now. I hope someone can help. I'll put the code and test results below, but in a nutshell, I've got 2 arrays declared exactly the same way: double MABuffer[]; int ma_handle; double DMABuffer[]; int
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