NexusFi: Find Your Edge


Home Menu

 





SPY open price line and a whole dollar line


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,883 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?
[WTS] ATAS Lifetime ULTRA license – EU buyers only – …
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
No book, only a stair: journaling fills where price move …
Cryptocurrency
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
EA
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Would you consider buying or leasing an algo?
6 thanks
Trading psychology articles
4 thanks
Big Mike in Ecuador
2 thanks
Trading Journal (Neural Network Production Pipeline Mode …
2 thanks
The Scalpers Journey
2 thanks
  #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