NexusFi: Find Your Edge


Home Menu

 





SPY open price line and a whole dollar line


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,639 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?
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 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