Forum

Constructor of a structure object is being called inside a working indicator and I'm not asking for that.

Hello. So I have an indicator and a structure I'm using in it. In OnChartEvent() function I call for some function of the structure. This function changes some variables inside the structure object. It works for the first time, and for the second one constructor of the structure object is called for

The distance between the frame and the main line in the default Regression Channel

No response in Questions from Beginners thread so I'll create a new one, sorry for that! Hi. Tell me, please, how is the distance between the borders and the regression line calculated in the default Regression Channel in Metatrader ? Yeah, I know, it is said clearly in the documentation : >The

Data randomly appears in empty variables and Alert() in structure affects calculations.

Hi. So I'm writing the script. I declare a variable (type double) and do not use it in the code before checking - and it has some random data. If I restart the MT5 - for the first time it stores zero as it should, for the next ones - some random value. Or, the code with a structure does not work. I