Technical Indicators - page 18

Hi, I don't understand why I'm getting an array error when testing. Can some one tell me whats happening? //+------------------------------------------------------------------+ //| .mq5 | //| Copyright 2010, MetaQuotes
https://www.mql5.com/en/code/39683 this is an awesome indi for my strat as i can use these HTF candles over the top of my LTF chart However i need to know whether the HTF candle is Bull or Bear ... and this just paints it all red i think i need to change these but im not sure what exactly i need to
what do they count? do they count every variation of price on every tick, or on each bar? for example here: #property indicator_separate_window #property indicator_minimum 1 #property indicator_maximum 100 #property indicator_buffers 1 #property indicator_plots 1 //--- plot TII #property
Hi all, I would like to access the source code (mq5) of the indicator iBands (to see its details including the structure of the generated handle) or the source code of any other built-in indicator (to use them properly in a EA). How could I do it? Nb: In the local folder
Hi, Essentially I am using the following RSI periods: 10,14,21 Now I want to create three plots using the averages from the three periods as follows: Values of (10 + 14 + 21) / 3 (For example) Then take the average of this and add it to an array at position [i] This is all relatively straight
Hello everyone, I hope this message finds you well. I'm new to programming and MQL5, and I've been trying to create a smoothed Heiken Ashi indicator. While I have successfully obtained all the required values, I'm encountering a challenge when it comes to plotting the indicator on the chart
[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. //+------------------------------------------------------------------+ //|
  Forecasting indicators  (343   1 2 3 4 5 ... 34 35)
Please find some indicators which are forecasting something. First is i-DRProjections_v.0.1. This indicator shows the support and resistance of current day forecasting on the base of previous day. All the calculation is based on Thomas R. DeMark book "New Science of Technical Analysis".
Does anyone know a MT5 vertions of this MT4 MTF Fibo Channel ? (or a similar MT5 MTF Fibo Channel)
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
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
Hi, I just want to know how does this guy was able to develop such an indicator that can be inserted as an object, and also how can he move the object(volume profile indicator) like this? https://www.youtube.com/watch?v=rH1wUSO1iXo (I know he did it in mt4 but I'm using mt5 and want to do it in mt5)
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