Find & delete max object in a chart
-
Hi guies
For example we have 5 horizontal line in a chart with different levels as objects and all of the them have the same color.
How can we find the max price level between these objects and delete it.
Thanks -
You need a custom loop with a variable to do that. Are you familiar with them?
-
@l-andorrà
Yes I am. I can find the max level but I can't delete it. -
Easy. Just select the name of the object with that specific level and delete it. Each object should have a unique name to identify it. You can also use number. That make it easier.
-
@l-andorrà said in Find & delete max object in a chart:
select the name of the object with that specific level
how can i select the name/number of the object with that specific level in a chart?
-
Here is a way you can do it, delete rather than draw a line: https://fxdreema.com/shared/6XfjXkn7
-
@vahidelon The first part of the loop needs to find the price level you need and then the second part of it needs to store the name of that line. You will need this block:
