Questions from Beginners MQL5 MT5 MetaTrader 5 - page 169
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
Declare the array to be static, of size 1:
One line appears after compilation, which is the same as in this and last version. Here is the whole code:
Hello.
I have decided to learn MQL5, I have read articles about how to generate EAs in MetaEditor, everything is clear but how to make indicators that are part of EAs to trade by your rules, for example CCI indicator does not do what I want; how to make a buy order open at crossing 100 and close it at the crossing 100 from upside down; the same for sell. I have also been working on this for a while now and I dont know how to do it.
Hello.
I have decided to learn MQL5, I have read articles about how to generate EAs in MetaEditor, everything is clear but how to make indicators that are part of EAs to trade by your rules, for example CCI indicator does not do what I want; how to make a buy order open at crossing 100 and close it at the crossing 100 from upside down; the same for sell. I have also been working on this for a while now and I dont know how to do it.
Working code.
no way
then safely forget about the code generator.
Open a standard example from the delivery of MA or MACD
Change the indicator to CCI
and go
Hello!
Sorry for the, in my opinion, stupid question:
I wrote an EA on mql5, loaded it properly, tested it, tried it on a demo on my home laptop and now the demo is running on VPS.
I uninstalled it from my laptop. Tweaked something on the source on VPS.
Tried to load from VPS to laptop - does not see it MQL5!!! W7 Explorer has it where it should be, but MQL5 has not.
Metaeditor via Open file finds, edits and saves it.
When I try to compile it, the error cannot create interface of MQL compiler in the first line. What is this error?
What do I do?
Could you please advise how to get the current price in the indicator code and compare it with another indicator to draw a line?
I get the current price in the Expert Advisor:
But how do I get it in the indicator?Could you please advise how to get the current price in the indicator code and compare it with another indicator to draw a line?
In the EA I get the current price as follows:
But how do I get it in the indicator?