sanoj
sanoj

Reputation: 43

trading view trendline getting cleared one by one

[![enter image description here][1]][1]I am using the below code to plot a triangle based on fib levels, the lines will be connecting the fib levels of first 5min candle to end of the day fib levels, i am able to plot but it is getting cleared one by one , please see the image

study(title="BreakOut", overlay=true)

up15on = input(true, title="5 Minute Opening Range High")
down15on = input(true, title="5 Minute Opening Range Low")

is_newbar(res) => change(time(res)) != 0 

Upvotes: 0

Views: 104

Answers (1)

Denis T
Denis T

Reputation: 416

Looks like you have reached the maximum number of drawings. From Pine Script v4 User Manual:

Drawing objects consume server resources, which is why there is a limit to the total number of drawings per study or strategy. When too many drawings are created, old ones are automatically deleted by the Pine runtime, in a process referred to as garbage collection.

Upvotes: 1

Related Questions