Hi everybody!
I'm new in this forum, so the first thing I'd like to say hello and thank you for expending with me this little time.
I have an issue with my script. My buy/sell lines dissapear each time the buy/sell condition happens again, and I want that levels to be static until the price reaches them.
Here that part of the indicator:
if xxxxxx[1]
sellLevel := high + (perc * high)
buyLevel := low - (perc * low)
pos := 0
So the first time that condition happens a buy/sell order is set, but when the condition happens again, the previous buy/sell level dissapears and appears the new one. Do you know how to get those levels to be static until the price reaches them?
Thank you in advance!