Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1377
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I myself did not understand, Alexey, where he dug up this currency pair )))
It happens... Thought about one thing, wrote about another... Same thing myself.........)))
Either skis are bad... I can't find any mention of this pair in Michail_David's posts... Everywhere it says USDJPY
Wrong track )))) Me ;) I got it wrong.
But in fact - the pair is a string and no inverted commas should be put in it.
@Michail_David
vlt - the pair you're looking for (or a bit of it :)))
Wrong track )))) Me ;) I got it wrong.
But in essence - a pair is a string and no inverted commas should be put into it.
@Michail_David
vlt - sought pair (or part of it :)))
Sergey, thank you. I understand the idea.
Hello. Please advise.
1. An EA will trade a series of orders (buy-sell-buy-sell-...). The series will end with the order which closed with a profit. How to implement it?
2. The next problem. The first series has not yet been completed (we have not had a profit order), and the second one is already started. How to "split" them for the Expert Advisor?
Thank you.
Hello. Please advise.
1. An EA will trade a series of orders (buy-sell-buy-sell-...). The series will end with the order which closed with a profit. How to implement it?
2. The next problem. The first series has not yet been completed (we have not had a profit order), and the second one is already started. How to "split" them for the Expert Advisor?
Thank you.
1 The condition is too vague to help...
2 Use different "magiks"
Good afternoon, everyone. Continuing to saw the Grail MachineJ. I have to redo the code with a bias towards using functions, because I'm sick of scrolling through a ton of code. I want to move the functions to separate include files. I have created function for getting signal by ao indicator in EA's file for trial and it works fine.
My robot even opens trades. But if I create a plugin file SIGNALS_INDIKATOR. I connect it in my Expert Advisor like this.
I also write my function for getting signals by this type of attachment, but this function doesn't show my external variables which I have easily passed to the EA itself. The function of getting indicator's value in my EA is like this.
If this function is in the EA file below the tick and the timer, the variables that are declared as externs are clearly visible in this function. But if I completely copy and paste this function into a include file, the external variables are not visible in the function.
The question is, what should I do to make external variables be visible in the functions in the include file, as well as these variables are visible in the EA functions, which I write below the timer?
Good afternoon, everyone. Continuing to saw the Grail MachineJ. I have to redo the code with a focus on using functions, because I'm sick of scrolling through a ton of code. I want to move the functions to separate include files. I have created function for getting signal by ao indicator in EA's file for trial and it works fine.
My robot even opens trades. But if I create a plugin file SIGNALS_INDIKATOR. I connect it in my Expert Advisor like this.
I also write my function for getting signals by this type of attachment, but this function doesn't show my external variables which I have easily passed to the EA itself. The function of getting indicator's value in my EA is like this.
If this function is in the EA file below the tick and the timer, the variables that are declared as externs are clearly visible in this function. But if I completely copy and paste this function into a include file, the external variables are not visible in the function.
The question is, what should I do to make external variables be visible in the functions in the include file, as well as these variables are visible in the EA functions, which I write below the timer?
external variables - what are they?
I will insert a piece of code with them-
I have highlighted the external variables in yellow. These variables are displayed when the EA is attached to the chart in the input parameters tab
I will insert a piece of code with them-
I have highlighted the external variables in yellow. These variables are displayed when the EA is attached to the chart in the input parameters tab
Now they use "input" instead of "extern".
You also need to move your "extern variables" to the SIGNALS_INDIKATOR.mqh library
I will insert a piece of code with them-
The global variables in the EA body are only visible to the EA and not to the plugins,
but global variables in the body of the plugin are visible everywhere.