[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 212

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
It is possible to remember the previous value of sig1and only open an order when the current value is permissive and the previous value was prohibitive.
I don't get it.
Get to know the flags.
If you mean false true, then I do not understand how it is possible to open exactly one order.
If it already exists, then don't open it.
If there is no position of this type in the market, then open it.
Well, along with this check, some other conditions can be checked. For example: if there is already such a position, but a given amount of time has passed after it was opened, another position can be opened... etc. etc. ...
Can you tell me how an EA opens a grid of orders? I have written a function which determines the order with the highest price and the lowest one. But I need more information about the second order with the lowest price or the highest. Here in general the 2nd and not the last. tell me the function.
Cycle through all the orders and store them in a two-dimensional array. In the first dimension of the array, record the time the order was placed, and in the second dimension, record its ticket. Sort the array by the order placing date (by the first dimension) in descending order. The second element of the array in the first dimension will contain the date of installation of the penultimate order (the second from the end), and the second dimension will contain the ticket of the necessary order. You select the order by this ticket and... You may do whatever you want with it.
Once I wrote a function for calculating Breakeven for the N-th amount of last positions for a custom EA. The calculation should be done for the last several positions, starting from the penultimate one. You may look how it is implemented and get something out of it:
If you mean false true, I don't see how you can open just one order at a time.
Yeah. That's what I mean. See the tutorial here. You will have some more conditions, as you write: "Attention question!) And how to make it open once for (sig1) it may be so sig1-open BAY, the next command, sig0-admit inclusion. trall (not important), the next command again, sig1-open second BAY." - is it not a lot of times? It seems that you do not need it ... In general, play with flags.
Yes. I mean them. See the tutorial here. You will have some more conditions, as you write: "Attention question!) And how to make it open once for (sig1) while it may be so sig1-open BAY, the next command, sig0-admit on. trawl (it does not matter), the next command again, sig1-open second BAY" - is not it many times? It seems that you do not need it ... In general, play with flags.
Does Kim I.V. happen to have a suitable function? So as not to clutter up the program. I want him to open an order and relax, because he "opens a thousand" in one second.