NexusFi: Find Your Edge


Home Menu

 





Thinkorswim Gap indicator intraday


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one Massive l with 2 posts (2 thanks)
    2. looks_two devildriver6 with 1 posts (0 thanks)
    3. looks_3 homes650 with 1 posts (0 thanks)
    4. looks_4 kjhosken with 1 posts (0 thanks)
    1. trending_up 3,660 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
homes650
Washington
 
Posts: 1 since Mar 2019
Thanks Given: 0
Thanks Received: 0

Hello all,

I have a simple code I use to mark the opening gap while looking at the 1 minute chart.
The problem is with premarket. I do not want to see the "addcloud" in premarket.
Any help is appreciated!



input start = 0930;
input price= open;
input start1 = 1600;
input price1= close;


rec my_open = if(secondstilltime(start) == 0, price, my_open[1]);
plot my_current_open = if(my_open == 0, double.nan, my_open);
my_current_open.SetDefaultColor(color.gray);

rec my_close = if(secondsTillTime(start1) == 0, close[1], my_close[1]);
plot my_prior_close = if(my_close == 0, double.nan, my_close);
my_prior_close.SetDefaultColor(color.gray);


AddCloud(my_current_open, my_prior_close,Color.dark_green,Color.dark_RED);


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Strike Pause Holds, Oil Erases Monday Spike -- May CPI W …
Traders Hideout
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
Rubios Good News Within Hours and the 30-Day Math: Why H …
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)
 
Massive l's Avatar
 Massive l 
OR/USA
Legendary /NQ Trader
 
Experience: None
Posts: 2,129 since Mar 2011
Thanks Given: 1,859
Thanks Received: 5,108

if it were me I'd just make the red cloud black


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
Massive l's Avatar
 Massive l 
OR/USA
Legendary /NQ Trader
 
Experience: None
Posts: 2,129 since Mar 2011
Thanks Given: 1,859
Thanks Received: 5,108


@homes650 Basically, you're not going to be able to code the cloud on only one condition.

You can make the lines black and the red cloud black. Spend more time on making money and less on aesthetics. Have you started a journal?


Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
devildriver6
Dallas, Texas
 
Posts: 43 since Jun 2015
Thanks Given: 2
Thanks Received: 32


homes650 View Post
Hello all,

I have a simple code I use to mark the opening gap while looking at the 1 minute chart.
The problem is with premarket. I do not want to see the "addcloud" in premarket.
Any help is appreciated!



What you need to do is make two sets of lines.
The first set only exists during the period of time you DO want clouds.
The other set exists only when you DO NOT want clouds.
Both are essentially the same code you already have, each are just defined by different sets of time.

Add clouds to the first set, so not add clouds to the second.


Reply With Quote
  #5 (permalink)
 kjhosken 
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
Posts: 96 since Sep 2016
Thanks Given: 7
Thanks Received: 35

You could always just turn off the pre and post market, but I'm guessing that's not what you want. Otherwise, as mentioned by Massive above simply change the word red to black


Follow me on X Reply With Quote




Last Updated on June 23, 2019


© 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