Technical Indicators - page 44

Goodmorning everyone, I am new to programming, I have been looking for the solution to the "array out of range" problem of the following lines of code for a week ... you can help me? int OnInit () { ArraySetAsSeries (arrayPriceData, true ); int nrBarreMemorizzate = CopyRates ( _Symbol , _Period
Please some kind soul can check the script for mql5 with following conditions: 1 - Creates a horizontal line on the opening price; 2 - Start drawing the lines from today onwards; 3- It has to be editable where I can delete or move the created lines. I made the code based on some models, but the
Hey guys, there is a simple code from another platform that I wanted to replicate in metatrader, could you help me? if (rsi( 2 , 0 ) < lowest(rsi( 2 , 0 ), 10 )[ 1 ]) then BuyAtMarket; I need to create a buy signal for when the 2-period rsi is less than the 2-period rsi of the last 10 periods
Morning Does anyone know where I might find an indicator/EA that shows/activates when a moving average crosses the price line long or short. I've seen hundreds of MA Cross indicators (when MA crosses another MA) but struggling to find when a single MA crosses the price line. Thank you
People help plyz to remake the indicator of levels of round numbers from MT4 under MT5. I can't afford to pay for the work. If there is a kind person, I will be sincerely grateful
Hello. I am having difficulty finding a method to create a dropdown menu within an indicator that chooses between histogram and line. I am wondering if anyone could give me some example code or direct me to a resource that is not too complex. I would very much appreciate it :)
Hi, I am developing an indicator and I don't understand the OnCalculate event at all. From what I can see, this indicator runs every time there is a new tick on the chart. So, I calculate for all candles the indicator (I limit it to 1000 candles) for ( int i = ( int ) MathMax (prev_calculated- 1
I have a strategy that apparently is very good when there are trends. But this has great losses when the market is consolidating. In fact, it almost lost 90% of the capital between 2000 and 2003. So if I can filter those periods in which the market does not have strength, maybe this strategy can be
  ADX calculation  (6)
Hi everyone, I'm trying to figure out how ADX is calculated in MT. I have studied the documentation and the mql code of the indicator but am still observing something wrong. I'm experimenting with monthly data to see the calculation from the first bars of history. Using the standard...
"Good evening I have to convert a tradingview indicator to MQL4 for a friend. I have to admitt I have not much experience in pine script, but till now it was enough to creat some indicators or convert some to MQL. But the current one has some parts I don't understand completly. Pine Code: x =
Hi how can use and draw in the main and sub chart windows in same time? in both mql4 and mql5? I want show an indicator in the main chart and draw some object types in sub window. how can i do it
Does anybody know if there is an indicator which shows how much you have gained/lost per trade as percentage of your account? (MT5) I am talking about close trades. Thank you very much in advance
Hello! I'm trying to do an CCI indicator but show the error array out of range . Follow my code and please help me!! //--- plot candles #property indicator_chart_window #property indicator_buffers 6 #property indicator_plots 1 #property indicator_label1 "candles" #property indicator_type1
Good day fellas Can someone kindly assist me in coding a RSI(10) with a [SMA(10), Apply To: Previous Indicators Data...] Like so: (iRSI(NULL,0,10,PRICE_CLOSE,0)>iMA(NULL,0,10,0,MODE_SMA,.......,0) The blank part I want it to be Applied To: Previous Indicators Data. Your assistance will be highly...
Hello guys, I want news indicator lines with vertical line object by importance like this in picture. Can someone help with code
Hi guys, i managed to create a MACD of an indicator buffer an its MA i was able to show the MACD either as a line or a histogram is there a way to create an option in the indicator inputs to choose between DRAW_LINE and DRAW_HISTOGRAM without ??? Thanks
Hello guys, i managed to add a MA to an indicator, using the MAOnBuffer, now i need to create a MACD of the same buffer, so i want to have an MA and a MACD on the same indicator i tried the iMACD, but i'm getting weird results, i'm not sure if iMACD can be applied to indictor buffers anyone can give
So I have been looking at an solution for this for a few days now and my googlefu is failing me. I have created an indicator that oscillates below and over 0. but the dotted line that automatically shows at the zero value isn't important, in fact it is in the way of properly reading the indicator. I...
HI, could you help me with this? I need for every candle in OnCalculate event, to know the high and low of yesterday, relative to this candle. If I use this double highestY = iHigh ( Symbol (), PERIOD_D1 , 1 ); double lowestY = iLow ( Symbol (), PERIOD_D1 , 1 ); I'm getting the yesterday
  Automatic Validation problem  (21   1 2 3)
Hi I have a mql5 code which get failed at automatic validation process. Same code & logic works for mql4 with no problem. But in case mql5 is showing Tester too long time error in automatic validation page. In general, this indicator takes 2500msc to compile in mt5 as its a 4000+ line of codes which...
Hello Folks, I'm making an indicators that draws Daily Moving average and a horizontal line at the value of the last bar of the moving average I made a boolean variable (switch) for each line to control when both lines should be drawn (when the value of the switch =True then draw the lines on the
Hi, when it comes to trading forex, we want to look for momentum to show us that the pair we are intrested in has any potential movement , I have been all over the internet looking for this simple indicator to show me when the candle has moved from the open price to the close price a certain amount...
Hi. I Have 2 Button on my chart and I want calculate and draw something base on the candles high and low when the button state is true or false. I want use this code in OnCalculate fanction so i can access to high and low of every candles and draw my shapes until the button state is true, but this
Hello dear, I am new mq5 developer. I am trying to convert one good indicator to mq5 but I am facing problems. I attached the equivalence mq4 file. The mq5 file is what I did. Can someone help me please to fix the mq5 file? The label (HH HL LL LH) is not updating when you loaded in the chart Many
Hi! Most of the time, custom indicators will require some basic structure with code that are so common that can be used for ctrl+c/ctrl+v purposes. Up until now, the basic structure I've been using for the OnCalculate is as follows: int OnCalculate ( const int rates_total, const int
Hello to the forum I recently learned the mql5 programming language. I needed to create a Hall Moving Average indicator with the ability to adjust the average type. I made it with difficulty, but the indicator does not draw the next points after the first candlestick. Can anyone help me
[Deleted]
Dear Members and Administration of Forum 22-03-2012 on one of the Western Forex forum there was placed during one day screenshots of indicator, which is able to predict price movement on 1H charts (and any others!!!) up to 12 bars upfront... During the trading (22-03-2012) day we published our...
I have a very simple indicator I would like to MQL5 but, I don't know MQL5. Are there any people who can help me with this or, will I need to study a tutorial to learn
Hi guys, i'm trying to convert an indicator from mt4 to mt5 i managed to solve all error, and compiled the code, but when i attach the indicator on chart i get a blank indicator window could you plz help me .. it's really urgent and important for me, Thanks in Advance #property copyright ""
I am trying to make an indicator that will be used to plot accordingly with the timeframe chosen by the user. Example: the indicator has 2 buffers, one to plot a line according to the chart timeframe, and another to plot a line according to which timeframe the user choses. Let's say he choses a H1