Option Chain Column For ThinkOrSwim

HumbledTrader

New member
@rad14733 what your looking at is it, and yes you can do a custom column by editing the script in the custom extras custom 1-whatever amount they give you, in fact, what your looking at is real it is not mine to give as i need permission, but it slows the system and i have a decent computer i beleive

Yes Please if you can help?
 

rad14733

Well-known member
VIP
what your looking at is it, and yes you can do a custom column by editing the script in the custom extras custom 1-whatever amount they give you, in fact, what your looking at is real it is not mine to give as i need permission, but it slows my computer
Yes, this is a new feature... I created a custom column but it isn't populating... All I get is "loading"...
 

HumbledTrader

New member
@rad14733 @BenTen I was given permission to share and improve this code if you can tell me how we can get it that it wouldn't be a lag on TOS

Code:
plot OI_NetChg = open_interest() - open_interest()[1]; OI_NetChg.SetDefaultColor(color.black); AssignBackgroundColor(if OI_NetChg > 0 then color.GREEN else if OI_NetChg < 0 then color.PINK else color.GRAY);

oi2.png
 

rad14733

Well-known member
VIP
I added two columns I had wanted a while ago but the Custom Columns slow down the Option Chain so much I had to remove them... There really is no way to speed things up because Custom Columns are a low priority so they only calculate when the servers can get to them... It's unfortunate but that's how TOS works and we can't change the platform...
 

HumbledTrader

New member
I added two columns I had wanted a while ago but the Custom Columns slow down the Option Chain so much I had to remove them... There really is no way to speed things up because Custom Columns are a low priority so they only calculate when the servers can get to them... It's unfortunate but that's how TOS works and we can't change the platform...
First thank you for trying i appreciate it , Its a shame this is very useful was considering just running that on one computer
but i assume that would not help
 

rad14733

Well-known member
VIP
First thank you for trying i appreciate it , Its a shame this is very useful was considering just running that on one computer
but i assume that would not help
It would definitely help... I have used almost every Custom Column and that further hinders my refresh rate... The more cells that need to be updated, the worse the update lag gets...

Oh, and you're very welcome... ;) (y)
 

HumbledTrader

New member
It would definitely help... I have used almost every Custom Column and that further hinders my refresh rate... The more cells that need to be updated, the worse the update lag gets...

Oh, and you're very welcome... ;) (y)
May I ask let's say i ran the options chain with just this and OI would that help, like this i can run one just look up thoughts?
 

rad14733

Well-known member
VIP
May I ask let's say i ran the options chain with just this and OI would that help, like this i can run one just look up thoughts?
Yes... The fewer the cells requiring calculation the better... I mean ALL cells, whether Option Chain, Watchlists, etc... So if you have another system with a stripped down setup it should improve performance to some extent... I just mentioned the other day how I've switched my systems around so that my active trades are monitored and made on a "clean" system and my research and potential trade monitoring is done on another...
 

XeoNoX

Well-known member
VIP
Heres one i use for V:OI. It blacks out the (in my opinion ) irrelevant data.

Code:
#Column for Volume to OI (open interest)
def x = (volume / open_interest)*100;
AddLabel(yes,  + Round(x , 0) + "%",color.black);
assignBackgroundColor (if  x > 150 and volume is greater than 100 then color.orange else if x > 75 and volume is greater than 90 then color.LIGHT_GRAY else  if x >= 0 then color.black else color.black);
 

3Aces

New member
I was looking for a way to add an OI column to the Time and sales list,,but this could be handy. Im new and I wonder what do I do with this code to get it to work? I watched a youtube video that had me add it to the "edit studies" section but I didnt notice anything different.
 

XeoNoX

Well-known member
VIP
I was looking for a way to add an OI column to the Time and sales list,,but this could be handy. Im new and I wonder what do I do with this code to get it to work? I watched a youtube video that had me add it to the "edit studies" section but I didnt notice anything different.
time and sales can not currently have columns added to them, you can call TD Ameritrade and request the feature, if enough people call they may add.
 

jngy2k

Member
So this code tells me change in open interest but is there a way to know how many contracts(open interest) were closed?

Todays Open interest represents OI=OI[1]+volume[1]-closedOI

So is there a way to take yesterdays open interest at the beginning of the day and subtract that from end of the day open interest?
so OIchange=OI[start of day]-OI[end of day]

@HumbledTrader @XeoNoX It will help find out if the Market Makers are closing their bearish or bullish sentiment of the underlying since most contracts are written by market makers who have more intel than the average trader.
 

Similar threads

Top