script to add price lines based on excel data

we7hills

New member
New noob here! Thank you!
I want to create or employ a script that will create multiple price lines on a chart (SPX) at specific times on specific days, based on data from an excel spreadsheet, to visually track the success of the strategies I am testing. Is there an existing thinkscript code, or can someone help me create one to do this: I am currently entering 4 iron condors per day as follows: a $10 and a $5 Bull Put spread AND Bear Call spread, both at 10 am and again at 330 pm, all with next trading day expirations. I track each of the entry times and entry prices on an excel spreadsheet.
Is there any existing script that will allow me to input and employ the excel data to create these eight price lines each day and place them on my charts to visualize and compare their relative performance?
Thank you so much.
 
Last edited:
Solution
there is no provision in thinkScript to input external data. what some have done is to basically write the entire study in Excel (or other tool) and import it. You should review the date and time commands for doing this to locate the start and end of your lines.
there is no provision in thinkScript to input external data. what some have done is to basically write the entire study in Excel (or other tool) and import it. You should review the date and time commands for doing this to locate the start and end of your lines.
 
Solution

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Last edited by a moderator:
you can't import data with thinkscript.

if you already have data in excel, why don't you draw a chart in excel.
use the rtd( ) funtion to read stock data.
https://usethinkscript.com/search/1007605/?q=rtd(&o=date

https://usethinkscript.com/threads/...ta-for-current-trading-day.11923/#post-107504
DUH!!! I never thought of that, but WOW! That's a GREAT IDEA! I really don't care how or where I see the data visualized, so long as I can SEE the data visualized! Thanks so much! I'll be looking for help on that, next!
I'm pretty good with excel, but neve had any formal training,... I'll have to look up the specifics and see if I can make it happen,...
Thanks again! :)
 
Last edited by a moderator:

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
413 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top