Technical Indicators - page 16

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
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