I'm transfering an indicator from MT5 to MT4. But the OnCalculate is based on data array. Like OnCalculate The function is called in the indicators when the Calculate event occurs for processing price data changes. There are two function types. Only one of them can be used within a single
======================================================================================== formula this indicator input symbol1 = currency 1 input symbol2 = currency 2 SpX2 = Absolute(Close from currency 1 - Close from currency 2)*100,000 and have zero line now Plot "SpX2" to chart same macd and RSI...
Hi everybody, I try to develop in MQL5 a function multi iRSI, i wish send in a parameter the TimeFrame for calculate and this return the value. I have this example but i need write a function for each timeframe, it's not practique. How i develop just a function multi time frames? Thanks :) double
Hi, i have a very simple question but i just can't figure it out. the syntax just doesn't work and i've already tried a lot of cominations. i have two symbols in the market watch, the ws30m and the @YM. so i want to calculate the spread: double Ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK ); // i'm
TMA+CG mladen nrp (1) TMA+CG mladen alerts mtf nrp. Hello guys, some help please. Im having trouble receiving POP UP alerts from the above indicators. I have set the appropriate alarms to TRUE but still no success. Other indicators used are sending alerts. Any help would be gladly appreciated. TIA
I have an indicator that I'm using iCustom to feed an EA. I can get the value from Buffer 0, seen below with a value of 1. But when I go back more than 500 bars, even though I see a value of 1 in the date window, the value it returns in iCustom is EMPTY_VALUE. So I thought maybe it was stored in a
I have checked the code and was not able to find the error, could you help? 2020.05.03 22:54:34.762 Herrcrowley_master_nc_jpy (USDJPY,H8) array out of range in 'Herrcrowley_master_nc_jpy.mq5' (94,63), the error is highlighted, thanks
Hi, I have problems with the code below. When MT5 is freshly started and the profile is loaded, CopyHigh/Low returns nonsense values. Only after reinitialization by switching timeframes, the correct values are loaded. Whats wrong here?...
Can anyone please look at the MN1 chart for EURUSD, parabolic SAR indicator is incorrect on March 2020 bar. I have attached two screens, one from MT4 and another from MT5. I have copied the source code of the PSAR indicator and compiled it under a different name, but same source code, this is what I
Hi, I am trying to setup alerts on a line exactly when price touches the line, using bid and ask as per code below giving wrong alert and alerting before the line touches i want to get alerted when price equals the line, Any help is highly appreciated here is my code static bool isFirstTick =
New to the coding of indicators on MQL5, and I am looking for help on how to compare two candlesticks with one another. I want a signal given, in the form of an arrow over the candle, when the current candle's open and close are within the range of the previous candle but in the lower third for a
I need your help on the subject. i created an MT5 indicator which works fine but disappears from the screen when i refreshed the chart it is attached to. This problem arose when I shifted its signals back 3 minutes using the shift function; but if the shift is on 0 it does not disappear from the
I am trying to create a CCI indicator that allows you to plot two periods in the same indicator space, such as the 14 period and the 50 period. I am getting these errors when I try to compile: 1) " OnCalculate function declared with wrong type or parameters" warning 2) "OnCalculate function not
I have an indicator that draws arrows on the chart as seen in the image below: I tried searching for the arrow objects in ' Object List' but there were no objects there. I also checked ' Object List>List All' menu. I guess the way that the indicator is written has hid them from the chart. How
Hi, I have an indicator called DCBA . It works fine when I put it on a graph as well as when I call it with iCustom in my EA. From it, I created another indicator which loads DCBA. In the call in OnInit, nothing special: glHandleDCBA1 = iCustom ( _Symbol ,DCBAPeriod1
Dear colleagues, Good afternoon. I'm sure everyone has repeatedly noticed that some instruments are correlated. For example, EURUSD and GBPUSD. Doesn't it mean the possibility to build some reference graph, which would be different (EURUSD and GBPUSD scale), and still maintain (not strictly, but
I am trying to use GetDiskSerial.dll in mql4 to get HDD serail num. {*******************************************************}{ }{ Borland Delphi Interface Unit }{...
Hi I was wondering if someone could point me in the right direction with this indicator that I built. It plots fine until I change one of the input parameters. From there the indicator plots get messed up. I've tried everything it seems, but nothing seems to help. Below is the initialize function
Hi all, I`m a beginner to mql coding and I am struggling to code an indicator for my first EA. I want to create an indicator with a simple moving average only with horizontal levels in a separate window. On smartphone I combined RSI(1) with the horizontal levels and the MA in the same window. Any
Hello everyone! I'm having trouble editing a Bollinger Bands indicator that emit a signal on the same candle when touching the bands. I would like the PUT or CALL signals to appear only if the operation is in favor of the trend in relation to an exponential moving average of 100 periods. Ex: price
Good day, I hope someone could please advise me. In MQL5 I initialize my Boilinger bands with the iBands call: fastBoilinger_handle = iBands(_Symbol, _Period, 20, 0, 0, PRICE_CLOSE); I then try to get the upper, middle and lower band values for the past 3 time frames as follows: double BM[], BU[]