Technical Indicators - page 28

[Deleted]
I want to DRAW_COLOR_LINE if for ( int i= 0 ; i> 100 ; i++) { if (open[i]>=close[i+ 1 ]) // continue this until the condition becomes false for multiple bars //DRAW COLOR LINE } Currently its being done using OBJ_TREND objects which make chart laggy and slow and load objects slow sometimes so i
  question about CiOpen class  (14   1 2)
hi I wrote this code: #include <Indicators\TimeSeries.mqh> void OnStart () { CiOpen op; op.Create( _Symbol , PERIOD_CURRENT ); op.Refresh(); double value = op.GetData( 0 ); value = NormalizeDouble (value, 5 ); Print ( DoubleToString (value, 5 )); Print (
MQL5 简介:如何编写简单的EA 交易和自定义指标 - MQL5文章 Write it according to the article. It was found that the two lines of code in red swapped positions, resulting in the curve not being displayed. It's really strange. //+------------------------------------------------------------------+ //|
Does anyone know a MT5 vertions of this MT4 MTF Fibo Channel ? (or a similar MT5 MTF Fibo Channel)
Hi everyone, I need some help with my attempt at coding a custom indicator to help me trading using the Ichimoku Kinko Hyo. The idea is to draw 5 different ZigZag on the chart, all based on the Ichimoku Kinko Hyo. ZigZag 1 = based on the tenkansen line (range of 9 periods/bars) ; everytime the line
Since the values of SSA and SSB are 26 periods in the future, and you cannot access them with say, SSA[-26] or SSB[-26], how do I use those values in an EA? If you just access the values of SSA and SSB, it won't use the values 26 periods ahead but will use the current value of SSA and SSB below the
Hello every one, Happy new year to you all, I find many scripts in the internet like the sample below written in mql and it is somehow converted to be .mq4 indicator file. Please, I need your help to know how to convert these scripts into .mq4 file. I appreciate you help and guidance. Thank you
At the bottom of the screen is a large number that says the spread size and also gives low avg and high range. It says it not working. HOW DO I GET IT TO WORK? Thanks for any help friends... Dazza
[Deleted]
Hello, I don't know if this is the right place to ask but hey. I understand more or less how the codes work in MQL5 but I have a problem and that is that I can't think of how to create something new, that is, I enter the metatrader 5 market and I see many creative ideas about indicators, but I
I managed to plot the Heiken Ash indicator on the RSI window. The thing is, the Heiken output buffers point to the asset price, not the price(location) on the RSI. How is it possible for the indicator to be located on the RSI (see the picture), but the buffer passes values that are not compatible
I want to get an alarm when auto fibo renews itself, is it possible
Hello! When chart scale is set to fixed it is possible to drag the chart up and down, however when changing neighborly timeframes (especially the 1, 3 or 5 minutes) the margin to drag is way too little as it is probably calculated as the possible minimum to show the price action on the current...
For study purposes, I'm trying to create an indicator that draws 4 moving averages : 5, 8, 21 and 73 periods at once. But suddenly, MetaTrader stopped drawing all 4 moving averages. Is it correct to use CopyBuffer in OnCalculate()
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
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