NexusFi: Find Your Edge


Home Menu

 





SPY open price line and a whole dollar line


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
Papapaa
New Milford, NJ
 
Posts: 2 since Dec 2022
Thanks Given: 0
Thanks Received: 0

Hi,

Is there a script to plot a line from 9:30 AM open price and a whole dollar from the open price on Thinkorswim?
Thanks.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Thursday May 28: GDP + Core PCE + Jobless Claims All at …
Traders Hideout
Iran Deal "In Review" at 87% on Deadline Day - …
Prediction Markets & Event Contracts
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
 
  #2 (permalink)
ColoradoCliff
Parker CO/USA
 
Posts: 22 since Jun 2017
Thanks Given: 0
Thanks Received: 5

Here's an extremely basic script that can accomplish what you want. It should work on any intra-day timeframe. You will want to adjust the color and the PaintingStrategy to match your preferences. Note that if you use an intra-day timeframe > 30 mins that the Open price may not match the open price of your first bar. That's expected since your first bar won't start at the same time as the actual open time.

------------------------
input offset = 1.0;
def aggPeriod = AggregationPeriod.DAY;
def openPrice = open(period = aggPeriod);

plot Data = openPrice;
Data.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
#Data.SetStyle(Curve.LONG_DASH);
Data.AssignValueColor(Color.LIGHT_RED);

plot Data2 = openPrice + offset;
Data2.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
#Data2.SetStyle(Curve.LONG_DASH);
Data2.AssignValueColor(Color.LIGHT_GREEN);
-----------------------------


Papapaa View Post
Hi,

Is there a script to plot a line from 9:30 AM open price and a whole dollar from the open price on Thinkorswim?
Thanks.


Reply With Quote
  #3 (permalink)
Papapaa
New Milford, NJ
 
Posts: 2 since Dec 2022
Thanks Given: 0
Thanks Received: 0


Thank you.


Reply With Quote




Last Updated on December 20, 2022


© 2026 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 - Downloads - Top
no new posts