NexusFi: Find Your Edge


Home Menu

 





ThinkScript -- Time of Day variables


Discussion in ThinkOrSwim

Updated
    1. trending_up 2,098 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments




 
Search this Thread

ThinkScript -- Time of Day variables

  #1 (permalink)
ldrider000
Rigby, Idaho
 
Posts: 1 since Jan 2016
Thanks Given: 0
Thanks Received: 0

Hello All,
I've been using TOS for years now but have only recently begun writing my own Thinkscript strategies. I'm looking for a way to add a time-of-day type condition to a strategy. For example...

close all open positions at the market close, or

only enter a position between 9am and 11am.

I used to be a decent programmer and I understand the basics of using studies and opening and closing orders, but I can't get my pointy little head wrapped around how to play with time. Any help would be greatly appreciated. Thanks so much.

Reply With Quote




Last Updated on January 11, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts