Contract Move Track
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © knoxbide

//@version=4
study(title = "Viince", overlay=true)

strike_price        = input(defval = 500 , title = "Strike Price", type=input.float)
entry_price		    = input(defval = 50, title = "Entry Price", type=input.float)

strike_line_color   = input(defval = color.lime, title = "Strike Line", type = input.color)
verticale_color     = input(defval = color.lime, title = "End Line", type = input.color)
box_colox           = input(defval = color.navy, title = "Box Color", type = input.color)

startDate		    = input(defval=timestamp("20 May 2022 02:00"), type=input.time, title="Start Location")
endDate			    = input(defval=timestamp("25 May 2022 02:00"), type=input.time, title="End Location")


sp_max = strike_price + entry_price
sp_min = strike_price - entry_price


box.new(startDate, sp_max, endDate, sp_min, color.blue, 3, line.style_solid, extend.none, xloc.bar_time, box_colox)
barre_horizontale = line.new(startDate, strike_price, endDate, strike_price, xloc.bar_time, extend.none, strike_line_color)
barre_verticale = line.new(endDate, low * .9999, endDate, high * 1.0001, xloc.bar_time, extend.both, verticale_color, line.style_solid, 3)

