Professional Documents
Culture Documents
// Gann 45 degrees 45
///////////////////////////////////
// ---------------------------
// -- User Inputs --
// ---------------------------
iMode = "Both"
fTime = "Future"
var iPrice = input.price(5000, "Price", group = "Price & Time")
iFullRev = input.float(270, "Full Revolution Value", group = "Price & Time")
pLen = input.int(120, "Price Lines", maxval = 100000, minval = 1, group = "Lines")
tLen = 2
iPriceDegree = 45
iTimeDegree = 45
tPrice = true
cPrice = input.color(color.rgb(27, 251, 2), "Price Color", group = "Customization")
cTime = color.teal
cMidLine = color.yellow
iPriceStyle = input.string("Dashed", "Price Line Style", options = ["Dotted",
"Solid", "Dashed"], group = "Customization")
iTimeStyle = "Dotted"
// ----------------------------
// -- Time to Unix --
// ----------------------------
// ---------------------------
// -- Initializer --
// ---------------------------
// Initialize arrays
pLowValues = array.new_float()
pHighValues = array.new_float()
tValues = array.new_float()
// ------------------------------
// -- Plotting Lines --
// ------------------------------
///////////////////////////////////
// Gann 45 degrees 90
///////////////////////////////////
// ---------------------------
// -- User Inputs --
// ---------------------------
dopen = request.security(syminfo.tickerid,"D",open)
iMode1 = "Both"
fTime1 = "Future"
custom = input.bool(true,title="custom price for gann ?")
iPrice1 = custom ? input.price(5000, "Price", group = "Price & Time") : dopen
iTime1 = "D"
iFullRev1 = input.float(90, "Full Revolution Value", group = "Price & Time")
pLen1 = input.int(100, "Price Lines", maxval = 100000, minval = 1, group = "Lines")
tLen1 = input.int(2, "Time Lines", maxval = 500, minval = 1, group = "Lines")
iPriceDegree1 = 45
iTimeDegree1 = 45
tPrice1 = input.bool(true, "Toggle Price", group = "Customization")
cPrice1 = input.color(color.rgb(252, 148, 2), "Price Color", group =
"Customization")
cTime1 = color.teal
cMidLine1 = color.yellow
iPriceStyle1 = input.string("Dashed", "Price Line Style", options = ["Dotted",
"Solid", "Dashed"], group = "Customization")
iTimeStyle1 = "Dotted"
// ----------------------------
// -- Time to Unix --
// ----------------------------
// ---------------------------
// -- Initializer --
// ---------------------------
// Initialize arrays
pLowValues1 = array.new_float()
pHighValues1 = array.new_float()
tValues1 = array.new_float()
// ------------------------------
// -- Plotting Lines --
// ------------------------------