Errors, bugs, questions - page 2964
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
Replace the structure with a single variable ))
Not transferable.
It's not being transferred.
Did you remember to import the function in the Expert Advisor?
I updated the example for the structure, it was not much wrong there.
In general, if you work with a structure, think how to declare a structure object, globally or locally.
And for one variable, all this is not needed, just return the variable and that's all.
Did you remember to import the function into the EA?
Can you provide the source code of the indicator and EA for your idea or not?
Can you provide the source code of the indicator and EA for your idea or not?
Yes, it's strange. Export for functions in mql4 does not want to work for some reason.
I do not get any results from library or indicator. However, I have seen functions in dependencies.
An example for the library
An indicator that sets a value
An Expert Advisor that should get a value through a function but it doesn't work
I send ticks from the indicator via this: sparam contains MqlTick, lparam - tick number.
The Expert Advisor catches these ticks in OnChartEvent. And it needs to understand if the current tick is the most actual one or not? I.e., is there a queue of ticks or is it empty?
For this, it reads the number (the task is to read this number) of the latest tick sent by the indicator. If the tick has the same number - the queue is empty, and it's possible to start working with ticks.
And during the operation of OnTick, after OrderSend it's necessary to check if the indicator has sent more ticks. For this, we again need to read the number from the indicator. And there can be more than a hundred of such checks during one OnTick. That's why we need to read it quickly.
If the Expert Advisor is taking the ticks through the CopyTicks, why does it need to know that the queue is empty?
Let it work on each of the events, and skip the events, which have less time than already processed.
If my Expert Advisor is still taking ticks via CopyTicks, why does it need to know that the queue is empty?
Forum on trading, automated trading systems and trading strategies testing
Errors, bugs, questions
fxsaber, 2021.02.17 21:26
Please share my thoughts on this issue(MT4):
would something like this help?
https://www.mql5.com/ru/code/818
would something like this help?
https://www.mql5.com/ru/code/818
A quick WinAPI option was suggested above.
A quick WinAPI option was suggested above.
this option is more dangerous and difficult to implement
this option is more dangerous and difficult to implement
Waiting for this one.