Bug fix in pine script.

Job ID: 34608340

Budget: ₹600 – ₹1,500 INR

On bar replay dashed lines are becoming solid lines.

Ref:- (During the replay mode, following the given barstate.islast condition, line.new() functions are executed multiple times (as each new bar printed during the replay satisfies the condition), hence dashed lines overlap each other which makes them "solid" on the chart. To resolve the issue, instead of created a new line on each bar, use the built-in set of commands to modify the existing lines: line.set_xy1/line.set_xy2. )
Related categories: Pine Script MQL4