Binary Signals - Mnetf
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © mhlangasimile

//@version=4
study("Binary Signals", overlay=true, scale=scale.left)
   
vixClose= security("TVC:VIX", "1", close[1])
vixOpen= security("TVC:VIX", "1", open[1])



if(vixOpen < vixClose)
    //strategy.entry(id="Entry Long", long=true)
    x = bar_index
    y = close
    txt = 'S'
    sellLabel = label.new(x, y, txt) 
    label.set_color(id=sellLabel, color=color.red)
    alert("NASDAQ Put Option")
    

   
if(vixOpen > vixClose)
    //strategy.entry(id="Entry Short", long=false)
    x = bar_index
    y = close
    txt = 'B'
    buyLabel = label.new(x, y, txt) 
    label.set_color(id=buyLabel, color=color.blue)
    alert("NASDAQ Call Option")



    







