How to check if trendline already exist on the chart and if is do not draw another one
-
So I made this system in which a condition block checks for a trendline by its number and takes price level as value.
when I make a condition block to compare that value to the price that is true BY THE LOGIC the block should say no. Because if the first value is empty and it's set to check if its == to the true value of where it should be it should say no.
But, the block does not give you either yes or no. It simply does not do anything. I check it with activity tracking. Tried spamming numbers if one or the other would be true but nothing.
So what I simply want to do is to draw a trendline at the specific price if there is none. If there is already a trendline do not draw another. But I cant find a way to check if there is or there is no trendline on the chart.
anyone knows how?
Thanks in advance!
-
@william29 Try under the block that's creating the trend line turning a flag false, when you need turn the flag back to true, maybe delete the line.
-
hmm maybe, I dont really know how the flags work though but I'll give it a go.