Checking that there is no object on the second bar
How do I check that there are no objects on the ten bars?
If you know how to create the exact name of an object, then there is no point in going through all the objects on the chart. It is enough to go through these (assumed) names.
for(int i=0;i<10;i++)
{
if (ObjectFind(0,"QUADRO"+Time[i])<0)
Print("Нет объекта на баре № ",IntegerToString(i));
elsePrint("Найден oбъект на баре № ",IntegerToString(i));
}
Good evening .What does this piece of code say? When does it appear? All pairs are in the list and all history is loaded .
Investor password?
Good evening. What does this piece of code say? When does it appear? All pairs in the list are there and all history is loaded .
No symbols for trading!the rest is business as usual...
Thank you
Checking that there is no object on the second bar
How do I check that there are no objects on the ten bars?Indicator.
For each bar, calculate the sum of bullish bar sizes and the sum of bearish bar sizes
In the buffer write the difference of these sums.
What is wrong here?
Indicator.
For each bar, calculate the sum of bullish bar sizes and the sum of bearish bar sizes
In the buffer write the difference of these sums.
What is wrong here?
Transfer
inside the first cycle - before announcing the second cycle.
Indicator.
For each bar, calculate the sum of bullish bar sizes and the sum of bearish bar sizes
In the buffer write the difference of these sums.
What is wrong here?
Try to reset the variablesup_sum=0, down_sum=0;
before the second, internal loop.
Like this
Try resettingup_sum=0, down_sum=0;
before the second, internal loop.
Like this
did so, and yes, it makes sense, but now it's no longer displayed at all
Thank you
Checking that there is no object on the second bar
How do I check that there are no objects on the ten bars?If you know how to create the exact name of an object, then there is no point in going through all the objects on the chart.
It is enough to go through these (assumed) names.
I did, and yes, it makes sense, but now it's no longer displayed at all
Yes, also like this, fix it.
In the inner loop