This thread has been updated. You can find the code for ThinkorSwim's Bid-Ask Spread Lines down below (post #4)
I tried the above code hoping that it would work on standard stocks in TOS but unfortunately this does not work. I then decided to try my hand at creating my own script (shown below) but can seem to get it to work please can you take a look and advise what Im doing wrong (go easy on my I have just got TOS this month and have been scripting for all of 5 hours )
What Im trying to do is have the Bid Price (Red) & Ask Price (Blue) on the chart with the area in between grey if possible. Similar to what you see on MT4 when trading Forex.
#Plots Bid/Ask Line with spreads shadow that shows the current value on given Ticker input pricea = priceType.ASK; input priceb = priceType.BID; input offset = 0; input length = 300; Plot askp = close(Pricea); Plot BidP = close(Priceb); Askp.SetLineWeight(1); Askp.SetDefaultColor(color.blue); Askp.HideBubble(); AskP.setstyle(curve.short_dash); BidP.SetLineWeight(1); Bidp.SetDefaultColor(color.red); Bidp.HideBubble(); BidP.setstyle(curve.short_dash); AddCloud(AskP, BidP, color.blue, color.red);
P.S I have Implemented you ORB Script and love it! Cant wait to try it out. Thanks
Last edited by a moderator: