CME Open
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Unown

//@version=5
indicator(title='CME Open', shorttitle='CME Open', overlay=true)

plotCME = input.bool(false, title="CME Open Line")
UTCTimeInput = input.string('0620-0621', title='SET TIME MANUALLY', tooltip='Write or Copy/Paste the correct time into the text box from the list of brokers provided below\nCheck the broker hovering on the info icon')

br1 = input.string('0620-0621', title='List 1', tooltip='OANDA\nFOREX.COM\nSAXO\nGLOBALPRIME\nVANTAGE\nEASYMARKETS\nPHILLIPNOVA\nFXCM\nCURRENCYCOM\nCAPITALCOM')
br2 = input.string('1020-1021', title='List 3', tooltip='PEPPERSTONE\nSKILLING\nIDC')
br3 = input.string('1320-1321', title='List 4', tooltip='EIGHTCAP\nBLACKBULL\nFXOPEN')

OpenValueTime = time('1', UTCTimeInput)

var OpenPA = 0.0
if OpenValueTime
    if not OpenValueTime[1]
        OpenPA := open
        OpenPA

plot(plotCME and not OpenValueTime ? OpenPA : na, title='CME Line', color=color.new(color.blue, 0), linewidth=1, style=plot.style_linebr)

