Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 75
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
Hi again, can you please tell me where there is a mistake in the following code ?
I call the loop at the moment of "deinit".
It deletes all but the last order.
I think this line is most likely an error >> for (int i=1; i<=OrdersTotal(); i++) <<
However, logically everything seems to be correct... what did I miss ?
Thanks in advance!
Do the loop backwards
Hi again, can you please tell me where there is a mistake in the following code ?
I call the loop at the moment of "deinit".
It deletes all but the last order.
I think this line is most likely an error >> for (int i=1; i<=OrdersTotal(); i++) <<
However, logically everything seems to be correct... what did I miss ?
Thanks in advance!
//-------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
Try it like this:
Good afternoon. a little help is needed. there is a function that closes one of the fattest lots in terms of profit.
I need to loop it.
Please advise how to use this function, for example if my account equity is more than 5 pips then this function should work.
}
Good afternoon. a little help is needed. there is a function that closes one of the fattest lots in terms of profit.
I need to loop it.
Please advise how to use it. For example if my account equity is higher than 5 pips then this function should work.
For example, if account equity is higher than 5 pips (for 4 characters) - in real market, if number of orders is higher than 3-4, they will easily turn to minus (according to results of deletion). :)))
P.S. As far as I understand, you need a ready-made code, while the algorithm for solving such a problem is useless to you!
5 pips (for 4 signs) - in the real market if the number of orders greater than 3-4, it is easy to turn (by results of removal) into minus. :)))
I for one... and I've been paying attention to the gold lately... it's not as fast reacting as I thought it would be
I haven't worked with functions like this yet ... that's why I'm asking for support
Well, I for one... and I've been paying attention to the gold lately... it's not as fast as I thought it would be
I haven't worked with the functions in this form yet ... so here is a request for support
First, you calculate the BU line of an aggregate position for the instrument (it is used to determine the conditions for closing orders when they reach profitability in pips):
Then calculate the difference between the current price and the Breakeven line. If the "difference" is satisfactory, we proceed to the procedure of deleting orders. The first thing to do is to find the Ticket of the most profitable/lossmaking order:
The deletion can be done in either direction. Let us delete:
It's not too difficult to assemble the right unit further: you'll have to do it or go to the job... :)
But for some reason, the price is drawn with a four-digit value at 1.3360
Could you tell me the mistake?
I want to assign a price value to a variable.
But for some reason, the price is drawn with a four-digit value at 1.3360
Can you tell me the error?
Maybe the DC is four-digit? Or output the price without DoubleToStr(YourPrice,5)
Maybe the DC is four-digit? Or display the price without DoubleToStr(YourPrice,5)
The DC is five-digit...
what does it mean WITHOUT DoubleToStr(YourPrice,5) ? I don't have DoubleToStr(YourPrice,5) anywhere