Forum

use of DRAW_NONE from mql4 to mql5

Good evening, I'm in the process of converting my MT4 indicators to MT5. In MT4 I have an indicator that draws 5 lines in M5 en 3 lines in H1. The code I use is: if ( Period () == PERIOD_H1 ) {Show_InnerEnv = false ;} //---- drawing settings MainLines SetIndexStyle( 0 ,Show_OuterEnv

It it possible to move the the folder under Terminal from C:/ to an other disk without breaking MT4 and MT5

Good afternoon, I use two disks in my pc, C:/ for the installation of program's and D:/ for the data. This way I can make and restore a system back-up without losing recent data. Lots of program's allow to move the data folder from C to D without breaking. Can I move the MT4 and MT5 folders from

Is there a way to find the Bar index number of the last bar that crossed a MA

Good afternoon, Is there a way to find the Bar index number of the last bar that crossed a MA? Best Regards, Robert

How to avoid Expert advisor to switching off allow live trading to

Good morning, I made an EA that switches the symbol on my second screen to the most interesting pair if the conditions change. The EA works fine, but every time it makes a switch the EA gets inactive, live trading gets disabled. I'm confident this is a functionality within MT5, but in this case I

Request for help calculating starting point of horizontal grid

Good day to all, I'm using MT4, but I just started to convert my indicators and scripts to MT5, so MT5 is new to me. I'm using the code below which is in principle the same as I used to calculate the starting point of the grid in MT4, but in MT5 LastGloseGridnumber is calculated as zero which is not

Sound alerts are not all coming trough

Good morning all, I have some indicators that generate an alert at the close of a bar, they generate a symbol on the chart and they generate an alert in the alertbox. The indicators work fine, except for the alert in the alertbox, some do appear and some don't. I have 10 charts active and they are

question about ObjectGetString on an other chart

Good morning everyone, I want my code to read the text in a label on other charts in the same workspace. I read this document: https://docs.mql4.com/objects/objectgetstring and I used this line of code: string BiasTextEURAUD = ObjectGetString("EURAUD", "Label_Bias", OBJPROP_TEXT, 0); I expect the

Request for help on enumerations as external variables

Good day everyone, I'm trying to make a simple script that places a label on the chart with two pieces of text, that are defined by external input at the start of the script. The script makes the label, but when I add the external input, based on the example found here

Request for help determining the iHH / iLL

Good evening all, In order to improve the quality of my alerts I need to calculate the Highest High and the Lowest Low on every day starting from Midnight to any bar on any day, so that would be [i]. I found this thread where Whroeder explains how something like this should be done

Request for help on 'break" function

Good afternoon, I have the following question. I want the code to determine the deviation of an envelope line that is between the upper and lower envelopes with different parameters . I used the explanation on this page: https://book.mql4.com/operators/break The code I have compiles without errors