hi guys, im trying to catch zigzag values for each symbol, but i get the "Array out of range" error on the loop that is using for catching zigzag values. here is the function for catching zigzag: //+--------------------------------------------------------------void zig(string symbol, int Depth,int...
Bill Williams / Profitunity indicators also includes a "squat bar" which is coloured blue. I presume this is based off the MFI so if the MFI bar is blue then the price bar would be blue is there a way to have the candle / price bar turn blue to match the MFI? (tick vol inc MFI dec) The squat bar is...
Hello, I m trying to publish a multi currency dashboard indicator under metatrader 4 experts section. During the validation I receive an error saying " test 30302 Oninit return code is INIT_FAILED cannot initialize indicator disconnected" . So how can i solve this issue ? Can you please advise i...
Hello, How can draw a color dot on the chart to represent maybe my stop loss. I see how to do a cross but I like dots...
I want to add rectangle between particulate two HLINE like R1-R2 and s1-S2. and my HLines are coming on full of chart i need it from yesterdays low or high to current candle only. please help me to do this. #property indicator_chart_window #property strict //---- input parameters extern int GMTshift...
Hi, I am getting this error: '[' -array required I am using ObjectCreate - the documentation is not very clear about the types of params I should be passing. Here is the code: int i = 5; // the following line is throwing the error: ObjectCreate(0,"tr"+string(i),OBJ_TREND,0,Time[1]...
Hi, I am having a few unexpected issues assigning previous values on a buffer. I get the array out of range error. I am sharing the code : for(int i=1;i<Bars(Symbol(),PERIOD_M1)-1;i++) { for(int k=ArraySize(info)-2;k>=0;k--) { // Print("1 ",info[k].symb," 2 ",info[k]...
color assigncolor(double adx_time,double ADX_trend_level,double di_p_time,double di_m_time) { if (adx_time < ADX_trend_level) { return (LightSkyBlue); } else if (di_p_time > di_m_time) { return (Lime); } else {return (Red); } } color assignCCIcolor(double cci_time) { if...
Hi all, I using a very helpful MT5 indicator which I found it free in this website, I use it in my daily trading, but I see it will be great if I can choose which time frame should the indicator collect data from, for example I attach it to daily chart but I want the indicator showing results based
Greetings to all, I am attempting to code an indicator that outputs the moving average based on certain parameters . The field that I am more so interested in changing is the "Apply to" field to create my own. For instance I would like to use an OHCC. Can someone provide a little guidance on this. I
Hi, I am not sure if this question is in the correct space or not (please advise if not). Is it possible to accept the price feed in MQL5 and redraw the bars? I would like to remove the pipette data and have the pricing rounded to pips. This will make the bars a little more blocky but the aim is to
Hi, how can i optimize an indicator in the strategy tester of the MT4? I mean optimize all the parameters like an EA for the best settings and results. Is there any EA where i can put my indicator into ? Sorry, i am not a programmer, so please an easy solution... ;) Thanks !
Hi guys, New here and i'm looking for some information on MVI i'm looking to find out how it is calculated so i can improve the data into excel. Any help would be greatly appreciated. Thanks, adboy14
Hi all, i'm learning MQL5 and i have a problem with a simple indicator. Indicator take the highest value of last 5 (you can change it by input window but it's default value) close candles for each period. Debugging the program show that all variables are correctly calculated but when i add the
Hello, I am trying to export just the today's data from every stock from my watch list (around 250 assets) using the following code (based on https://www.mql5.com/pt/code/1252). void OnStart(){ uint start = GetTickCount();//--- Get symbols from list string strSymbols =...
[Deleted]
datetime openTodayTime=iTime(Symbol(),PERIOD_D1,0); datetime openYesterdayTime=iTime(Symbol(),PERIOD_D1,1); int openTodayBar=iBarShift(Symbol(),PERIOD_M15,openTodayTime);int openYesterdayBar=iBarShift(Symbol(),PERIOD_M15,openYesterdayTime);Print("openTodayBar="...
Hi, I got a csv file with a list of data: Datetime, and values. These are the values of an indicator at certain moments, calculated in excel/mathlab. How can I import these data to appear on my screen (either oin the main window or separate one) ? Thnx in advance for you help ! Twoci
Hello I'm getting confused as how to apply renko to MT4 - I've read quite a lot, but it's not getting through my stupid head :-) Can anyone help please? Is there just an indicator I can drop onto the chart? Thanks so much.
Is it possible to overlay a BB onto the CCI indicator without special/unique coding? My coding skills are rudimentary at best. I thought perhaps it would just drag and drop, but that did not seem to work
Hi, I need help in coding an indicator to show the interest rate chart of 2 different countries eg. Euro interest rate and US interest rate the indicator shall retrieve the date and interest rate from a CSV file. anyone able to help me with this? Thank you very much in advance.
Hi guys, i am using a struct to save DoM data into a file(TXT), but it has a problem, it is for passing a struct object , not a link or a reference. I tried doing that but didnt work. I am sending the code if someone can help. Datefile file; file.symb=_Symbol; file.ask_volume=Ask; file...
Good evening, I created an EA of Long/Short, that consists in buy and sell from two different symbols that have a good correlation. So, I use an indicator with the ratio, average and bollinger bands. The EA works fine, but the indicator sometimes need to be refreshed to show the correct values....
Hello All, I have two codes one Doda stochastic and EMA cross over alert, i have combined both. ( i have set correctly i guess the buffer values, setindex and all but because of two "for loops" i am stuck and two counter in same code), I have modified code as much as i could. (compiled when counter
Hi all, I have been unable so far to figure out the correct (number of ) parameters (value) to be fed into the iCustom helper for this indicator. https://www.mql5.com/en/code/7313 I want to download the data into a csv file with a script (excerpt below). The script currently returns 1, which is...
Hello pro Coders, I got a Problem with Chart Shift functions. Problem: Call Chart_Shift but the Chart is not shifted right away? :) I noticed the ChartShift icon is changed right away after i hit "H" key but the CHart is not??? ... Im new to coding, Please help! ... & have a good day all :D here is...
Hi, Is it possible to gather a number of coomonly used indicators lets say EMA 9 & 23 when this cross over you get a signal on a REST API then ude another platform or system to receive the notification for other purposes
Hi Coders!
I'm working on a simple indicator based on two WMA.
When I attach the indicator to the chart, it is drawn well. Don't know why, but after new bars - sometimes at new ticks - my indicator line flies away as you can see the below picture.
At the new bars the WMA-1 buffer get false data....
I need to get data of candles 0 and candles 1. I get candle 0: double HAOpen = iCustom(NULL,0,"Examples\\Heiken_Ashi", 0, 0);double HAHigh = iCustom(NULL,0,"Examples\\Heiken_Ashi", 1, 0);double HALow = iCustom(NULL,0,"Examples\\Heiken_Ashi", 2, 0);double HAClose = iCustom(NULL,0...
Hi all pro coders, Im trying to code an simple indicator to quickly change chart type between bar charts & candlestick chart when press C key... but something weird happened, my indi seems only work when there is a tick comming, i think it should works right away after I press C key! Dont know what...
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.