line for opening - ThinkOrSwim Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim Programming

line for opening
Started:March 7th, 2014 (12:03 PM) by Depiero Views / Replies:343 / 0
Last Reply:March 7th, 2014 (12:03 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

line for opening

Old March 7th, 2014, 12:03 PM   #1 (permalink)
Trading Apprentice
Charlotte, nc
Futures Experience: Intermediate
Platform: TOR
Favorite Futures: Forex
Posts: 8 since Feb 2014
Thanks: 0 given, 0 received

line for opening

I have this little code that shows a green line with previous day closing stock price,
I would like to know how can I make a line like this based on a time format..
from 9.30am to 4:15pm so exactly at 9:30am the line shows up at the current stock price..
how can I do this?

input aggregationPeriod = AggregationPeriod.DAY;
input length = 1;
input displace = -1;
plot PrevDayClose;
PrevDayClose = Highest(close(period = aggregationPeriod)[-displace], length);


AddChartBubble(GetYYYYMMDD() != GetYYYYMMDD()[1], high, "Day: " + GetDayofWeek(GetYYYYMMDD()) + " - Close: " + PrevDayClose, Color.Green, yes);

Last edited by Depiero; March 7th, 2014 at 12:34 PM.
Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim Programming > line for opening

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Fill in the Space between the CCI Value Line and the Zero Line jdrower Sierra Chart Programming 5 January 23rd, 2014 09:00 AM
Posting an order before the opening ? firefly NinjaTrader 3 September 3rd, 2012 11:36 AM
Opening Call. Is it still available? kalalex Traders Hideout 4 July 14th, 2012 07:34 AM
Opening Types omni72 Terms (Glossary) 0 April 27th, 2012 09:21 PM
Opening Bell Program spinnybobo NinjaTrader Programming 5 July 28th, 2010 04:42 PM

All times are GMT -4. The time now is 05:28 PM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-26 in 0.06 seconds with 19 queries on phoenix via your IP