Forum

Hiding Issue with a panel

Hello everyone, I have a question regarding Hiden and restoring a panel. When I hide certain objects in my panel and then minimize and restore the panel, all the objects that are supposed to be hidden are shown again. How can I restore the panel so that the objects remain hidden? Is there a

Catch the checkbox event

Hello all, I tried to make a panel with a checkbox, It works well, but how can I catch the checkboxevent (is checked or not) Some advices are apreciated, thank you Greetings //+------------------------------------------------------------------+ //|

MT4 hang after Sleep Mode

Hello at all, I have programmed a quite extensive EA, multicurrency with many built-in indicators and graphical elements . Now it is the case that when the computer switches to sleep mode in between and I reactivate it, the whole MT4 hangs completely. Do you have any tips on what could be causing

Chart data loaded?

How do I know that all chart data is loaded? Sometimes the indicator already starts to calculate although it is still missing a few candles. For example, if you close the terminal in the evening and open it again in the morning. Then it sometimes takes a moment until he has loaded the remaining

higher timframe control in lower timeframe

Hello all, what is the best way to control a higher timeframe in a smaller one. In other words, how can I programmatically determine when a 4H candle ends (or begins) in a lower timeframe? Is this only possible via the time? The reason is the following, I have an EA in M15 and want a display of a

pass struct array by reference

Hello, I want to know how to pass an array which is in another array struct to a function by reference. struct SRLines { string name; double price; }; struct CiCSupAndResLines // Support and Resistance Line from SmartLine Indicator { string symb; SRLines M1[]; SRLines M5[]; SRLines

Difference between terminal start and indicator start

Hell everybody, here is my question: Is there a difference between terminal start (with a chart template which contains my indicator) and an indicator start (drag n drop from indicator list into the chart) ? The background is I made an indicator which should convert the price of a horizontal line in

mini PC for MT4

Hello, I want to run 2 or 3 MT4´s with a minicomputer. Each MT4 should manage 10-15 charts. Each chart has an EA. The idea is, it should run day and night without a monitor. I want to manage it with remotedesktop connection. Right, the same as a VPS server . Only at home. Do anyone have a suggestion

iForce

Hello, I´m experimenting with the iForce indicator. And now I want that mt4 give a signal(arrow) as soon as the iForce indicator reach a defined value. May be 0.2. I tried it with this way. if(iForce(NULL,0,1,0,PRICE_HIGH,1) >= 0.2){ string FR="ArrBuy "+TimeToStr(CurTime());

shorten double

Hello, how can I shorten double values in a reliable way. I want to have double with a max digits of 6. I tried several ways - doubleToString(double,6) - and back to double - NormalizeDouble(double,6) but all ways are not reliable. If there is a double which is 0.69644 and I make NormalizDouble the