Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 121
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
How about this?
My version of the function is shorter ... :)
Maybe so.
It doesn't work either. I had a flaw there. It's like this now:
When there are no orders in the market, the counters don't go zero. This is bullshit. What is wrong here I do not know. I will look at what Artem has written.
It's not working either. I had a flaw there. That's the way it is now:
When there are no orders in the market, the counters don't come up zero. This is bullshit. What is wrong here I do not know. I will look at what Artem has written.
I take it this is the output of the information.Take this out of the loop.
I take it this is the output of the information.Take this out of the loop
Right. (chuckles) Well, what happened to me. Some silly mistakes. I've been digging in C++ for a month. And now I have such silly mistakes in µl. My brain must be burnt out :(
In general, is it OK to search for orders on every tick? Or is it better to execute on every bar? I still do not know what is better in one case and what is better in another.
t is the number of all orders.
p is the number of pending orders
If the condition is true:
is true, then both t and p are incremented, since any order of the type 2 to 5 is both a pending order and an order. This means we should increment both counters. And if the condition is true:
Then there is no pending order but there is a market order. It means we will increase the t counter, i.e. the counter of the total orders number.
And if there is nothing, then we will print that there are no orders
t = OrdersTotal();
why count???? counted???
Hello! Looking for errors in this function.
The idea is that pending orders that have not opened should be deleted two days after they are placed.
min=1440;
Thank you, pako.
Hello! Looking for errors in this function.
The idea is that pending orders that have not opened should be deleted two days after they are placed.
min=1440;