I want to get the ima over a 1 minute time frame, but just cannot seem to format the code properly, please help ma_btc_usd[i] = iMA (BTCUSD, 0 , ma_period, 0 , MODE_EMA , PRICE_CLOSE , i); ma_cad_jpy[i] = iMA (CADJPY, 0 , ma_period, 0 , MODE_EMA , PRICE_CLOSE , i);
The moving average function returns an integer value, while the moving average value of each bar is a decimal amount. How can this be explained
The mt5 indicator below (MA_Of_CCI) appears to have two buffers but when used for an EA code, these buffers do not return any values. They are empty almost all time during test and this is the problem. Please take a look at the Code below and assist; thanks
I try to write indicator - iTriX on custom symbol The problem is - each time I switch time frames iTriX chenges charts, doesn't seem to work - sam time working, other times not working!.. //--- input parameters input int Period = 8 ; //--- indicator buffers double TRIX2[]; string
setindexbuffer error : no one of the overloads can be applied to the function call ! . help please
(3)
dunno why my code not running ,, everything is fine except for the setindex buffer .. here is my error part of code : // Global variables int arrowBuffer[]; // Array to store indicator values // Initialization function int OnInit () { // Attach the indicator to the chart IndicatorShortName(
Hi everybody, I need to draw only one candle at position 9 with black color . I am using MT5 Does anyone have help? Thanks
I am writing notes asking me to create an indicator and then an EA on the strategy that I have been using for many years. The problem I have to solve is this: To display the 9-level Gann Square on the chart, I use the usual formula, but when I operate in forex as eurusd, with values around 1.xxxx
I want to add two moving averages on the same sub-window, but because they do have not `inherit scale` so the mt5 draws them almost in the wrong way
Hello, In my MQL5 Expert Advisor I use iMA function to create Movie averages needed for logic. These MA lines are plotted using ObjectCreate() function using price and time values data generated with iMA. When I try to Backtest this EA in Visual Mode on Strategy tester these lines automatically show
I'm trying to convert the https://www.mql5.com/en/code/14410 indicator from mql4 to mql5, but I'm having problems using MqlDateTime and/or TimeToStruct. I know there is a free version for mt5, but I am using a 32-bit version of mt5 and it is no longer supported. Could you help me to adjust/change
Hi, a good day to everybody. Can someone help me? I want to let the user modify the color in the Example indicator ZigZag, so I added this code to it: enum Colors { color1= clrBlack , // Black color2= clrBrown , // Brown color3= clrLimeGreen , // LimeGreen color4= clrMediumSeaGreen , //
I'm a quite new to MetaTrader and I'm trying to start using MetaTrader 5 after a few months with MetraTrader 4. Unfortunately, there is no an original MT5 version of my the most needed indicator iExposure from MT4. Fortunately, on this site I found a homemade converter from MT4 to MT5 version for
Dear Freiends I wrote an Indicator which should run in 5 minutes timeframe but use daily ATR , so when I run it in daily time frame and bigger its ok, but in lower time frame should I refresh The chart, Can you please check it, I attached it
Hi, From what I see in https://www.mql5.com/en/forum/448388 it is not possible to set visualization properties of indicators programmatically, specifically #property indicator_level1 30.0 #property indicator_level2 70.0 for iRsi, or Rsi either with iCustom or iRse as they are not parameters
Hello , This custom indicator should draw 7 & 20 period SMA #property indicator_chart_window #property indicator_buffers 2 #property indicator_plots 2 #property indicator_label1 "iMA1" #property indicator_type1 DRAW_LINE #property indicator_color1 clrWhite #property indicator_style1
Unable to calculate Chaikin Volatility in Expert only for current bar double hl[30]; double emahl[30]; for ( int i= 0 ; i< 30 ; i++) hl[i] = iHigh ( _Symbol , _Period , i) - iLow ( _Symbol , _Period , i); ArraySetAsSeries (emahl, true ); ExponentialMAOnBuffer( ArraySize
I need help in one of my project that is in MT5 using MQL5 language. I have started learning MQL5 recently. So, b asic summary of task is; I need a custom indicator that incorporates 2 other standard indicators. For example, take the range of the SMA50H & SMA50L, and add/substract the SMA50Range
[Deleted]
Here : '' Number of Bars barsToDraw " instead of starting from last price , it starts from an entered hour and minutes. Example 16:04 -(***) how many bars it draws from this time or any other ! Or in the ''Custom candles by numbers.mq4 '' version it uses as a counter starting from the hour and
I'm trying to code an indicator that can change the colour of a particular candlestick (e/g candle stick at position 0 = current candle) ONLY. I tried using the chartsetinterger function but it changed the color of all the candlesticks in the charts (There is no option to specify the exact candle
hi i creat an indicator who recognize the hammer config on the chart and dessin an arrow, now i need to add the letter "H" behind each arrow detected there is my code int OnCalculate ( const int rates_total, const int prev_calculated, const datetime & time[]
Hi folks, I need some help with my indicator, because the indicator drawing is flatten in weekly and monthly chart as shown below : This is typically how it looks like in time frame H1 : And here is my code : #include <MovingAverages.mqh> #property indicator_separate_window #property
Hi, I get an error: '{' - function definition unexpected datetime currentDay = TimeCurrent (); { if (currentDay != lastDay) // Update maximum drawdown if necessary } I have no clue what I am doing wrong, it's about the first bracket that the system just does not want to do. Please
Good day, I am writing a script for changing all the chart with the same symbol. All is ok BUT... if I drag and Drop the script not on the 1st terminal chart, the script change the 1st terminal chart timeframe, with the timeframe of the chart where it was dragged and dropped...why ? Can you gelp me
Hi, is it possible for my indicator to get the buffer value from another indicator which is placed on the chart? I don't want to call it with iCustom(...) because the parameter for this indicator is unknown or can be changed in the meantime. I only want to get the values I can see in the data
[Deleted]
Hi guys so I have created 2 indicators; 1 that draws levels, the 2nd combines MACD, MA and the levels, MA is based off MACDs data "Previous Indicator Data" but now how I can check if the values are above the levels. For instance if you drag the rsi, then the moving average to the same window as rsi
Hi Everyone I need an indicator to be displayed only on specified timeframe. Currently I have to do it manually by setting visualization property. Is there a way I can do it programmatically? Thanks in advance. Update: ........................ From one of the forum's post I got the following
I had a glitch on one of my indicator plotting lines which is meant only to be shown for the last 2 bars, which would sometimes show itself in historical bars when restarting MT5 after it was closed for a long time. Hitting refresh would fix it, but eventually I decided to head the problem off at
Hi everyone I'm a beginner and I'm wondering how to use this function, how can I retrieve the function's return or a concrete example of its use? int OnInit () { int var01 = SetIndexBuffer ( 0 ,IndicateurBuffer, INDICATOR_DATA ); int var02 = IndicatorSetDouble ( INDICATOR_MINIMUM , 0 );
I think my MT5 is hacked, the sensitivity of the charts is wanting e,g the Relative Strength indexes have not touched the overbought and oversold lines,this is a breach of security can someone help me with identifying this person
Good morning I had several indicators eurx jpyx gbpx etc which were on the main window (offline maybe) on an old version of mt4 on which I can put my indicators. do these indicators still exist and if so, do you have the link
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.