dsharpeatl
New member
I created the script below to have a dedicated column with the strike price and options type (Call/Put) so I can see what's gaining traction at a quick glance. Hope it's helpful.
Create a custom study column and add the following code:
#created by Dave Sharpe; the study shows a dedicated column with the options strike and options type as a column in the scan section of TOS. For example if the symbol is ".SPXW231115C4550" it will show 4550 CALL in this column.
declare lower;
def strike = GetStrike();
def put = IsPut();
AddLabel(yes, strike + " " + if put then "PUT" else "CALL", if put then color.orange else color.cyan);
Create a custom study column and add the following code:
#created by Dave Sharpe; the study shows a dedicated column with the options strike and options type as a column in the scan section of TOS. For example if the symbol is ".SPXW231115C4550" it will show 4550 CALL in this column.
declare lower;
def strike = GetStrike();
def put = IsPut();
AddLabel(yes, strike + " " + if put then "PUT" else "CALL", if put then color.orange else color.cyan);