Forum

Why are the ticks not copied to the custom symbol?

I am copying ticks from symbol to Custom symbol. I get holes in history. This is the script. //+------------------------------------------------------------------+ //| script.mq5 | //| Copyright 2021, MetaQuotes

GlobalVariablesDeleteAll time does not work

Run this Expert. It should delete all variables that are older than 60 sec, but it deletes ALL variables. The parameter int GlobalVariablesDeleteAll ( string prefix_name= NULL , // All global variables with names beginning with the prefix datetime limit_data= 0 // All global

Independent scale of indicator in chart main window

Hi, I need to put an indicator in a chart MAIN window, but I don't want it to be related to the Price, I want an independent scale. All I need is histogram, but not in a SEPARATE window, but in a MAIN window. Not linked to the price of the Price

How do I download history from other symbols?

How do I download data from an indicator without an error? i is the loop from Bars-1 to 0 tf = PERIOD_CURRENT ; datetime dt = iTime ( NULL ,tf,i); int shift = iBarShift ( "EURUSD" ,tf,dt, true ); Errors on M1 and H1: EURUSD,M1: Time 2020.04.10 23:58 iBarShift Error: 4051, i = 0, shift = 0 (the bar

Independent scale of indicator buffers in one window

How-to? If one buffer's value is from 0 to 100, it will fill the entire window, if another buffer's value is from 0 to 10, it will be 1/10th of the window. I need the both buffers scale independent from each other

How do I fill existing array with values?

Creating array: string currency[]={ "EURUSD" , "GBPUSD" , "USDCAD" , "USDCHF" , "USDJPY" , "AUDUSD" }; Assigning another values to existing variable: // currency[]={"EURUSD","GBPUSD","USDCAD","USDCHF","USDJPY","AUDUSD"}; ? // error How to

How do I force download history for synthetic symbol and fill the gaps?

Synthetic symbols in MT5 are often not downloading correctly, and may have gaps (missing data). Or the existing data may disappear after you restart MT5. How do I force download history for synthetic symbol and fill the gaps? Please answer if you already tried

How do you detect if chart window is active?

How do you detect if chart window is active? If active chart window is maximized, one may think that all other background windows are maximized too, but actually they become windowed, and their width/height is changed. So if anyone using calculating each tick to place object in center, then, when

Moving Average in two color

Hi, I modified Custom Moving Average to draw in two color, but in displays a gaps when changing direction. How to fix it

indicator is too slow, rewrite the indicator, please

What is the actual reason of "indicator is too slow"? I noticed that adding an artificial delay (10-20 sec) in OnCalculate does not cause the appearance of that "too slow" message, therefore, the reason is not in the long calculation of an indicator