Technical Indicators - page 55

Hello, Since trading is all based on a forecast about the future, being able to draw indicators' plots beyond current bar [rates_total-1] would be nice. The idea came to me while thinking of MAs and timing moves. Especially for higher period MAs, a visual representation of the nearby future with a
  MQL4 to MQL5  (4)
Hi guys i am at the beginning of learning mql5 and trying to convert an indicator. Its not plotting any idea what i #property copyright "T/oligarch" #property link "t/o" #property version "1.00" //--- indicator settings #property indicator_separate_window #property indicator_buffers 12
UPDATE: See the workaround below CopyBuffer() throws an error of 4806 (Indicator data not accessible) when calling an indicator with a different Time-Frame from within the code of an indicator. It happens when calling a valid Indicator handle to a different Time-Frame from the current working
Hi i create one indicator for metetrader 4 and 5. this program work correctly on my system and my broker metetrader, but some brokers not drawing my indicator. even I try compile and debug my code on it and there is no problem. But when i wants use it the indicator not working. why this is happened
Hi, i am trying to learn to program indicator and EA. My indicator doesnt work well, it doesn't auto update the new price except i refresh chart or recompile. I dont know why. When the new candle generated, LSMA indicator (the red one) is falling down at 0 value. Can anyone point me in the right
Hi guy, i'm writting a LSMA indicator but it display incorrectly, it work well except the at the first bar. here is my plot display *** I find out when i compile the OnCalculate() will be run 2 times, i try to console log the rates_total and prev_calculated and the result is: *** It lead to this
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
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
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