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 kjhosken with 1 posts (0 thanks)
    3. looks_3 devildriver6 with 1 posts (0 thanks)
    4. looks_4 homes650 with 1 posts (0 thanks)
    1. trending_up 2,859 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread

Thinkorswim Gap indicator intraday

  #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?
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 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,106

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,106


@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 Twitter Reply With Quote




Last Updated on June 23, 2019


© 2024 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 - Privacy Policy - Downloads - Top
no new posts