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
Coming soon - already in development.
1. Refer to the CopyClose() help function.
The function returns the amount of data copied to the array, not the closing price.
2. Are you looking at Close[] value in vtoche?
I'm looking at value of vMA and Close[]. It works fine in the wotch. I tried it this way:
Again I get another error. Maybe there is another way to calculate simple moving average, or to take the iMA handle and CopyBuffer to the right place?
Developers, don't consider me a complete cretin - Why do I need const when declaring functions? As I understand to declare their result as const (just can't understand the need for it).
For example, this declaration in CAccountInfo
Or am I mistaken?
Can you tell me what's wrong with the code?
Thank you
Hello When compiling the EA, I get a note about possible loss of data due to type conversion
Can you tell me what's wrong with the code?
Thank you
... Possible data loss ...
I would check if variable types Podd1 and Megasymbol correspond to parameter types of NormalizeDouble() and SymbolInfoInteger() functions.
Question to the developers regarding "user" events and several experts working on the same terminal.
So I want to ask if I want to make it right or not?
Here is an idea.
In the course of the play we need to inform the "neighbouring" Expert Advisors about some processes that take place.
For example, the following processes should be monitored first:
1. Expert locking;
2. Unloading of the Expert Advisor;
3. Termination of trading operations;
4. Resume trading operations.
Implement
I. Create 4 identifiers of events:
1 - CHARTEVENT_CUSTOM+1//Starting the Expert Advisor
2 - CHARTEVENT_CUSTOM+2//Unloading of the Expert Advisor
3 - CHARTEVENT_CUSTOM+3 //Stop trading operations
4 - CHARTEVENT_CUSTOM+4//Restarting of trading operations
II. Tracking events
When a certain situation happens, the Expert Advisor generates a SPARTEVENT message using EventChartCustom.
At the same time,the Expert Advisor writes in sparam a comment (its name and type of the event, or other information) , andlparam its own chart identifier.
The Expert Advisors on other charts (if they can correctly identify the nature of an event) will respond to this specific EA.
PS
If the idea is good, may be it elaborated and arranged as an article. Or add it to help section dedicated to custom events?
Hello, I get a possible loss of data due to type conversion warning when compiling the EA.
Please tell me what's wrong with the code.
Thanks
I need to explicitly convert the type of information being written to a variable type or function parameter.
In your case, it would probably be like this
PS
But since this is a WARNING and not an error, it can be ignored (at least in most cases).
It'll just be a nuisance and that's all...
... Possible loss of data...
I would check if variable types Podd1 and Megasymbol correspond to parameter types of NormalizeDouble() and SymbolInfoInteger().
The variable Podd1 is double, Megasymbol is string. The meaning: pending order price = resistance level, let's say 1.259756, I want to normalize it to 5 digits (Megasymbol = EURUSD)
The variables are probably OK. Please see my post above...
An explicit conversion of the type of information to be written to a variable type or function parameter is required.
In your case it will most likely be this
PS
But since this is a WARNING and not an error, it can be ignored (at least in most cases).
It will just be a nuisance and that's all...