Hi, could you tell me how to pass a structure to a function, so that changes to elements of the structure in the function are stored in the structure created globally?
Кирилл Смирнов: Hi, could you tell me how to pass a structure to a function, so that changes to elements of the structure in the function, are stored in the structure created globally?
Hi all. MT5 is loading gigabytes of data when working with multiple tools. Is there any way to limit it in the settings? I want monthly, weekly and daily charts to be drawn like in MT4, i.e. every bar is (open, high, low, close) without any extra internal history. And already the charts with intraday bars were built according to the current MT5 principle (implementation).
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.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi, could you tell me how to pass a structure to a function, so that changes to elements of the structure in the function, are stored in the structure created globally?
Pass the structure by reference. Example:
Pass the structure by reference. Example:
Thank you! Where did this example come from? I was just looking for something about my question in the help and couldn't find it(((
Thank you! Where did this example come from? I was just looking for something about my question in the help and couldn't find it(((
Real implementation + made up function for example.
Real implementation + made-up function for example.
OK, thanks again!
Real implementation + made-up function for example.
Bad example. A structure, as well as any variable declared globally, is accessible in any part of the program.
It will work this way too.
It is different if a structure variable is declared locally.
How to increase/decrease timeframe with mt5?
Forum on trading, automated trading systems and strategy testing
Indicators: Changing Timeframes with Hotkeys
SanAlex, 2020.08.07 11:59
i think it would be the same for mt4 and mt5
Bad example. A structure, as well as any variable declared globally, is accessible in any part of the program.
This will also work.
It's different if the structure variable is declared locally.
Thank you!!!