In the specific case of magik, it is better to put the modifier sinput in front of it. It means that the variable will also be available in the list of input parameters, it will participate in the optimization but its value cannot be optimized.
In general, there is documentation. In the compiler select word input and press F1. There are examples there.
Tell me why in debugging EA I can check values of variables and functions that are only in OneInit()? Let's say I want to check a bar or tick processing condition in OneTick() how can I do that?
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.
Bullshit
Sorry, didn't specify the platform, I have mql4,"POSITION_PROFIT" is not in the help, could it be " OrderProfit" ?
(Please insert a picture this way:forum: how to insert picture. - OK)Hello ! I found one code in kodobase and a question to it I can't find the answer to ,
at the beginning of the code
Why do I use macro expansion (#define)? These variables are not available in the settings
and how to make it possible to check them with optimization
https://www.mql5.com/ru/code/viewcode/244/53730/grr-al__3.mq5
Hello ! I found one code in kodobase and a question to it I can't find the answer to ,
at the beginning of the code
Why do I use macro expansion (#define)? These variables are not available in the settings
and how to make it possible to check them with optimization
https://www.mql5.com/ru/code/viewcode/244/53730/grr-al__3.mq5
Make them input variables.
in the sense of
#inputMAGIC_NUMBER 12937; so
in the sense of
#inputMAGIC_NUMBER 12937; so
Modifier input, placed in front of the variable type, means that the variable will be available in the list of input parameters of the Expert Advisor.
In the specific case of magik, it is better to put the modifier sinput in front of it. It means that the variable will also be available in the list of input parameters, it will participate in the optimization but its value cannot be optimized.
In general, there is documentation. In the compiler select word input and press F1. There are examples there.
Wrote my first crooked EA on slips. Tell me why it doesn't send orders?