Gann Calculator
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © akshayshinde73997

//@version=5
indicator("Gann Calculator", overlay=true)

toadd = 0.
incval = 0.
selectedprice = 0.

selectedprice := input(defval=9500.0, title="Type Your Start Price Here")
incval := input(defval=31.5, title="Increment Value")
toadd := incval

line.new(bar_index, selectedprice, bar_index[376], selectedprice, width = 1, color=color.white)
for i = 0 to 10
    line.new(bar_index, selectedprice+(toadd*i), bar_index[376], selectedprice+(toadd*i), width = 1, style=line.style_solid)
    
    line.new(bar_index, selectedprice-(toadd*i), bar_index[376], selectedprice-(toadd*i), width = 1, style=line.style_solid)
