![]() The function as a parameter assumes a variable with data type string, which is a text variable that should contain the name of the object that was clicked by the user. ![]() ![]() The code above checks whether it was our button that was clicked using the function bool Przycisku_czy_jestes_klikniety ( string object_name)that comes from the imported library. Today a new element of the code has appeared // comment. Your function should look almost identical to the function placed below with a small difference. ![]() Open the file Panic Button.mq4 from the catalog Experts and let's take a look at the function OnInit (). Let's go to editing the code of our application from last week. Like any serious button on our planet and ours will have a kind of fuse that will allow you to close the position only when the click is accompanied by pressing a key on keyboard.īe sure to read: MQL Practically. We will make sure that the tool we design is safe and accidental clicks will be unshakeable and stoically calm. We will develop the basic functionality with something else. Our task today is to add what is most important, that is, the function of freeing us from the weight of open positions and freeing us from the constraints of constantly staring at the monitor. Welcome to the second part of Panic Button! This week, we'll look again at the code of our panic button.
0 Comments
Leave a Reply. |