Technical Indicators - page 7

Hi, I am working with an indicator that I am not able to solve a problem with the M1 timeframe. The example of the indicator is like this: #property description "PruebaM1" //--- indicator settings #property indicator_separate_window #property indicator_minimum 0 #property indicator_maximum 100
hi there i need a code that calculates a lines length ( t2 - t1 ) and if it is bigger that t1 then alert ( t1 = time of first candle , t2 = time of second candle ) my indicator draws it in every candle but it may fail due to some calculations and wont continue to next candle but next candle also
Hello. I have to caode indicator with 15 color lines on chart. In attachment screenshot and code. Why I can read data buffers in Data Window and can't see all line on chart? Is there any limitation for draw color lines or I'm coded something wrong. In Data window values for all 15 lines and on chart
hi copy rates function copy only a number of successive bars in a mqlrates array is there any way to save specific non successive bars rates in a array think you
Hi, im new here and have a problem trying to conect mt5 with python; i have this code: import MetaTrader5 as mt5 import pandas as pd mt5 .initialize() And this is the result: # Intenta inicializar MetaTrader 5 mt5.initialize(path) Out[ 3 ]: False Does anyone know what the problem is? I've been
Greets, Would appreciate any comment on where I might be going wrong here. Creating an indicator works as expected. However, I would like to parameterize the two horizontal levels (eg, 80% and 20%) instead of using the usual #property indicator_level1 lines which are hard coded). Here's the sample
Hello, community! I am developing a project to integrate my trading environment in MetaTrader 5 with Python, aiming to train a Machine Learning model that can optimize my trading strategy. I already have my trade history and a custom indicator in MQL5. I would like to collect this data and prepare
I'm trying to build an indicator using multiple fractals in order to spot support and resistance levels . The thing is I want multiple consecutive fractals to be close to each other in order to form a valid level, like if we draw a line linking them; it needs to appear nearly horizontal. But "close
I need to know the RSI value for a specific date, for example "2024.10.24 09:16". How could I do this from that information? What would be the most efficient way to get it
if (! ObjectCreate ( 0 , "Candle" + IntegerToString (i), OBJ_RECTANGLE , 0 ,candleStructure.mtime + multiplier,candleStructure.mopen,candleStructure.mtime + multiplier + 600 ,candleStructure.mclose)) Print ( __FUNCTION__ , ": failed to create candle body! Error code = "
OBJPROP_TOOLTIP is not working in visual strategy tester. Instead, the name is always used which is why I need to use different object names in the tester than I use in real operation. MT 5.00 build 4620
Friends, I made a custom indicator with a basket of symbols to make a signal bullish or bearish for a index. The indicator works fine and does not freeze during low volume trading hours. But for high volume trading hours the indicator gets too heavy with the calculations and freezes my entire
I have an indicator that displays account information along with details about trades made during the current day and previous days. The indicator shows information on both the right and left sides of the chart, reading from the trading history. With my limited programming knowledge, I've added
Hi everyone, I’m working on an MQL5 indicator where I need to check if any of the last 8 daily candles falls on a Sunday. I’m using the TimeDayOfWeek function to determine the day of the week, but I’m encountering the following errors: 'TimeDayOfWeek' - undeclared identifier time - some operator
In MT4, there are two types of text that can be written on the chart: "text" and "text label." The "text" option remains automatically anchored to the point where it was inserted, while the "text label," if placed at a specific point on the chart, will move away from that point when you scroll the
  Division problem  (3)
Hi , First of all sorry, I know there are a lot of topics with this issue, but couldn't find an answer to my problem. Here is piece of code : Dt[i] = ((alpha * MathAbs(Et[i] - Xt[i])) + (( 1 - alpha) * Dt[i+ 1 ])); CI[i] = ((High[i]+Low[i])/2) / ( 0.015 * Dt[i]]); where Dt[] is
Hello everyone, I am currently developing a custom indicator in MQL5 which utilizes multiple Exponential Moving Averages (EMAs). However, I am encountering a parameter count error with the iMA function and need some assistance in resolving it. The code is intended to calculate four EMAs (5, 10, 20
Found this cropped image online. The line below or above candlesticks seems interesting. I don't think this is supertrend. Can anyone tell me what this indicator is
Hello guys, I am new trader please anybody can help me about these indicators for mt5 i will be so grateful
Folks, for the built in ichimuko indicator under : "Indicators" --> " Examples" ---> "Ichimuko". T he code for this indictor is available ....so i am wondering if there is some attribute/property we could include to get the two lines in the screen shot to diplay on top of the cloud ? thx
//+------------------------------------------------------------------+ //| free tool B&C.mq5 | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com |
Have been trying to create it all day with no luck, anybody have access to something like this? in reality im really looking for code that can detect engulfings that pushed price up in an uptrend or down a downtrend aka order blocks, anybody have the code to this so that I can add it to my EA? or
I'm creating a "Symbol Changer" indicator in MQL5 that should display currency pair buttons in a separate window below the main chart. The goal is for the buttons to appear in the indicator's own window (similar to how an RSI indicator would display), without overlaying the main chart. Here's what
Hi everyone, I'm developing a currency strength indicator in MQL5 that calculates the relative strength of each currency and plots lines for each one in a separate window below the main chart (similar to RSI). However, I’m having trouble getting the lines to display in the indicator’s window, even
The attached code is my effort to create a Stochastic Oscillator Divergence indicator. This indicator is supposed to send the relevant alerts whenever there is a bullish or bearish divergence . I created the indicator by modifying the RSI_Divergence.mq5 code (which does not have alert features). The
I need a CCI indicator that notifies me when it crosses a certain levels. I've been looking for this indicator for MT5 across the internet, forum, and codebase (maybe I missed it), but I can't find any. All I found is for MT4. Can anyone help me find this simple indicator with alert
Hey Folks....new MT5/MQL5 user here, i am attempting to move my custom indicators + trading system from Sierra Charts to MT5 and facing some basic issues. I have learned a bit about MQL5 to understand the general aspects of indicators vs EAs...went through the sample code ....but i am by no means an
this is the code wich i want someone to help me code into mql5
Dear, I can create the DEMA over the MA, but I can't create it over the SAR. If I do: int hnd1 = iSAR ( _Symbol , PERIOD_M1 , 5 , 20 ); int hnd2 = iMA ( _Symbol , PERIOD_M1 , 5 , 2 , MODE_SMA , PRICE_CLOSE ); if ( iDEMA ( _Symbol , PERIOD_M1 , 9 , 5 , hnd1) == INVALID_HANDLE ) Print
  ATR Trailing Stop - Help  (99   1 2 3 4 5 ... 9 10)
Hi everyone: I have absolutely no coding experience in mq4 indicators, and am asking for help in creating an indicator. The volatility trailing stop that uses a multiple of ATR has been of great use to me in Metastock when I used to trade equities, and I've been looking for an equivalent in