Technical Indicators - page 5

This indicator is similar to the RSI. The idea is to calculate net_profit / [sum(positive returns) + abs(sum(negative returns))] in a rolling window. But after I changed the code in the main loop, the terminal says: 'for' expressions are not allowed on a global scope //--- the main loop of
I am currently practicing the implementation of a simple Simple Moving Average (SMA) indicator using a ring buffer in MT5, as part of my effort to better understand and become proficient with the ring buffer method. The logic is divided into two main parts: When a new bar appears , and When
i want to calculate sum high and lows just after latest(most recent) price crossing sma 50 but i don't know how to get that index of candle that price cross MA in most recent cross thanks
I coded a custom indicator that plots arrows on M1 candles when all higher timeframes (M5, M15, M30, H1, H4, D1) agree with the candle direction. The arrows appear shifted or misplaced or don't appear at all. I think the problem is with the loop. I am adding the for loop in OnCalculate function
  OrderCalcMargin  (7)
hello, The instruction OrderCalcMargin () works perfectly when written in script But when used in an indicator we got Error n° 4014 ERR_FUNCTION_NOT_ALLOWED Is this instruction works on script but not in indicator regards
  help better understand MACD?  (12   1 2)
where it is MACD line? Signal LINE understand
Even if candlesticks appear to be the same at first glance, there are differences in the frequency of value updates when tick value movements are included. By adding up the range of price movements (either up or down) when a single candlestick is formed and visualizing it as a histogram, I thought
Hi all, I plotted an horizontal line as Object with an indicator, but I would like to change the level color, from black to white, for better viewing. Is there an option under ObjectSet functions to do this? Thank you
Hello, I am a newbie MQL5 coder - but not new to coding or trading. I understand to access the open time of the most recent bar inside a custom indicator , in OnCalculate, I need to access time[0]. However this is giving me a time in May (13), while today is August 22. The data window in the chart
Greeting, Given MQL5 (or 4), is there a way to store the values choosen by a user so the next time my indicator is used those values are in the input form? Hope to hear, Adriaan
Hello, I'm trading on MT5. I'm looking for ideas to write an indicator(or EA). In fact each symbol got specifications From there I want to extract these datas : 1) value of "½ Minimal volume" 2) value of "eur/lot" from "Margin rates : ½ Market buy" 3) value of "eur/lot" from "Margin rates : ½
Dear MQL5 Community, Hello, I’m reaching out regarding an issue affecting some of my clients. Several have reported being unable to download one of my products after purchase, despite successful transactions. The returned error is 29111 not found in the database. Additionally, my MQL5 Service Desk
Hi all, Lots of traders wonder if an indicator they find is a "repainter". To determine this is actually very easy. But first, let's define what 'repainting' means, as most people seem confused by the correct definition. Definition A true 'repainter' is either a badly coded indicator or an indicator...
Hi, why in my script ,the high[] not return a good high ? //+------------------------------------------------------------------+ //| supertrend.mq5 | //+------------------------------------------------------------------+ #property version "1.02"
I am using the following EMA set up. emaFastCloseHandle = iMA ( _Symbol , _Period , emaFastPeriod, 0 , MODE_EMA , PRICE_CLOSE ); emaSlowCloseHandle = iMA ( _Symbol , _Period , emaSlowPeriod, 0 , MODE_EMA , PRICE_CLOSE ); My initial thoughts were doing the following double fastEma[ 2 ];
Hi All, Can anybody add the needed code (to the attached short script) which will make this script work on all open charts. I would like to be able to fix the chart position of all open charts with just one click. The attached script works only on one (the current) chart. Thanks a lot in advance
I’ve noticed that MetaTrader 5 has been very sluggish—it’s taking too long to open charts, and whenever a custom indicator is added to the chart, it almost never loads, even though it appears as added. Is something similar happening to you as well
Hello friends I designed an indicator for MetaTrader 5 that when you click on a button it randomly selects a price on the chart Now I want this candle to be displayed in the middle of the chart after this point is found and I don't know what function I should use to identify the middle of the chart
Hello, I'm trying to send a message to my Telegram bot using WebRequest() in MetaTrader 5, but it consistently fails with error code 4006 . Here's what I've already done: Allowed WebRequest in MT5 under Tools > Options > Expert Advisors Added the URL: https://api.telegram.org/ Restarted MT5 after
Hi, I want my indicator to play a series of sounds, not just one. For that, I initially tested calling 3 PlaySound() one after the other hoping that the second would only start playing after the first was finished and the same for the third. Unfortunately I was wrong: in such conditions, even though
Dear MT5 community, I have been using the attached indicator to add empty space on the top and bottom of each chart as per pics attached. I find the indicator useful and well conceived but it might be using too much ressources and I experience some lags. My question was with other users and MT5
Dear trader  Is there any theory for market statistics histogram. I don't know what is it Sincerely,
Does any one know if it is possible to add/download a favourite inticator to any smart phone version of Meter Trader 4 of 5? Thanks in view of your kind reply and assistance.
Hi Friends. I'm trying to create an indicator that shows green fill when price is above a certain level and a red fill when price is below a certain level. But the indicator keeps returning only the red fill. Code is attached below. Please help me have a look. Thanks #property
  Wolfe Wave Indicator  (42   1 2 3 4 5)
Is it possible for someone (ShadowWZ perhaps?) to code a WolfeWave indicator? I've just come across this method and it seems interesting. Fukinagashi at MoneyTec has put one together but it got panned at a Russian forum because it was using the ZigZag indicator and missing some elements. I noticed
  message from who  (1)
when I am trying my custom indicator, I receive this message, " CO 2 08:01:24.193 lanlee_TB_Midline_with_Signals_V6.4 (GBPUSD,H1) indicator is too slow, 7547 ms. rewrite the indicator, please". who send me this message. I what should I do to improve my indicator. Or should I use faster laptop
My indicator does not place any trade, so here is the issue I don't understand when I tried to upload an indication on MQL5, but the validation report give me this below: test on EURUSD,H1 (netting) -EURUSD: no history data from 2023.05.01 00:00 to 2023.06.01 00:00 If anyone can give advise what the
Hello everyone. Do you have any information or documentation on how to implement a code in an MT5 indicator to send alerts to Telegram? Thank you very much
Require any coding expert help to allow for new price source (O+H+L+C)/4 or (O+H+L+C)*0.25 to the RSI.mq5. Thanks in advance
  Code help  (2)
//+------------------------------------------------------------------+ //| SpikeDetection.mq5 | //| Advanced Spike Detection System | //+------------------------------------------------------------------+ #property indicator_chart_window