Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 560
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
Guys, how do you interpret this warning?
Thank you.
function must be set to a variable
for example bool closee=OrderClose...........
To avoid such warnings, return to the variable must be specified explicitly
for example like this:
Good afternoon. Can you tell me if it's possible to determine or calculate the width/height on a graph of an OBJ_TEXT object?
How to calculate the number of characters, + font size or something like that?
How to find the OrderOpenPrice of the very first open order if known:
1.Symbol
2.BUY orders can be open from one to many
3.Magic
4.Differences between orders, probably by ticket - find the smallest ticket.
Read the article about creating an EA: https://book.mql4.com/ru/samples/expert
Can you tell me how to open a deal on one bar and close it when the next bar appears?
1. When opening a deal, remember the time of the bar
like this:
outside the start:
int timeopen;
at the start where you have a trade open:
Closing like this:
Please tell me. How can I find out the number of open orders for a given symbol, without loops...
There is no way to do it without a cycle.
Dear, I need your help.
I'm optimising an EA using an indicator, the code of the indicator is below.
Optimization is slow, I have made a code in the EA to recalculate the indicator on a new bar, which is not quite suitable.
Please see the code of the indicator, what can be done in it to make the recalculation happen faster.
where can i read about classes in mt4?
I read the help, but it doesn't explain what the following lines mean
where to read about variable initialization...
function must be set variable
e.g. bool closee=OrderClose...........
To avoid such warnings, return to the variable must be specified explicitly
like this:
Thank you. It worked without any warnings:
Guided by an example from the handbook :-)
OrderDelete
Deletes a previously placed pending order.
bool OrderDelete(
int ticket, //order number
color arrow_color // colour
);
Parameters
ticket
[Unique serial number of the order.
arrow_color
[in] Color of the arrow on the chart. If this parameter is missing or its value is CLR_NONE, the arrow is not shown in the chart.
Returned value
Returns true if function completed successfully or false if there was an error. To get the error information, call GetLastError().
Example:
if(Ask>var1)
{
OrderDelete(order_ticket);
return(0);
}
Dear, I need your help.
I'm optimizing my Expert Advisor by the indicator, the code of the indicator is below.
Optimization is slow, I have made a code in the EA to recalculate the indicator on a new bar, which is not quite suitable.
Please see the code of the indicator, what can be done in it to make the recalculation happen faster.
why did you think it was the indicator's fault?