NexusFi: Find Your Edge


Home Menu

 





Counter or Time Clock in TOS?


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one optntdr13 with 3 posts (6 thanks)
    2. looks_two TonyB with 2 posts (0 thanks)
    3. looks_3 uptown with 1 posts (0 thanks)
    4. looks_4 wave3runner with 1 posts (0 thanks)
    1. trending_up 24,660 views
    2. thumb_up 7 thanks given
    3. group 6 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
Search this Thread

Counter or Time Clock in TOS?

  #1 (permalink)
 
plethora's Avatar
 plethora 
Los Angeles, CA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Rithmic
Trading: GC
Posts: 629 since Dec 2010
Thanks Given: 1,174
Thanks Received: 425

I'm wondering if TOS has a similar counter that eSignal has which tells you how much time is remaining before a candle closes. So on a 5-minute chart it would count down from 5 minutes to zero the time remaining before that bar closes. If there is one available in TOS I'm hoping I don't have to program anything as I wouldn't have a clue how to due it.

If worse comes to worst I'll use my cooking timer.

TIA

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
 
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,467 since Jun 2009
Thanks Given: 33,244
Thanks Received: 101,669


plethora View Post
I'm wondering if TOS has a similar counter that eSignal has which tells you how much time is remaining before a candle closes. So on a 5-minute chart it would count down from 5 minutes to zero the time remaining before that bar closes. If there is one available in TOS I'm hoping I don't have to program anything as I wouldn't have a clue how to due it.

If worse comes to worst I'll use my cooking timer.

TIA

Giving you a , I am sure it has to exist...

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
wave3runner
richardson,texas,unitedstatesofamerica
 
Posts: 1 since Dec 2010
Thanks Given: 0
Thanks Received: 0



plethora View Post
I'm wondering if TOS has a similar counter that eSignal has which tells you how much time is remaining before a candle closes. So on a 5-minute chart it would count down from 5 minutes to zero the time remaining before that bar closes. If there is one available in TOS I'm hoping I don't have to program anything as I wouldn't have a clue how to due it.

If worse comes to worst I'll use my cooking timer.

TIA

If your on time charts, thre is a clock in the top right. You have to do your own math. They don't have this or tick counters. You may be able to use the secondsfromtime feature and create a bubble.

Reply With Quote
  #4 (permalink)
 optntdr13 
Glyndon, Maryland, USA
 
Experience: Advanced
Platform: TOS
Trading: options
Posts: 24 since Sep 2010
Thanks Given: 6
Thanks Received: 49

> input StartTime = 930;
> input Interval_In_Minutes = 15;
> input displace = 0.2;
>
> def AftrStartTime = secondsFromTime(StartTime-1)>59;
> def StartPoint = !AftrStartTime[1] and AftrStartTime;
>
> def MinutesGoneBy = if AftrStartTime then secondsFromTime(StartTime)/60 else
0;
>
> def IntervalPast = if AftrStartTime then
> roundDown(MinutesGoneBy/Interval_In_Minutes,0) else 0;
>
> def IntervalPoint=IntervalPast > IntervalPast[1];
>
> rec MinutesPastInterval = if IntervalPoint or StartPoint then 0 else
> MinutesPastInterval[1] + 1;
>
> def OneMinuteLeft = MinutesPastInterval == (Interval_In_Minutes - 1);
>
> plot IntervalGoneBy = if IntervalPoint then high+displace else double.nan;
> IntervalGoneBy.SetStyle(curve.POINTS);
> IntervalGoneBy.SetLineWeight(5);
>
> addChartBubble(OneMinuteLeft,high,"1");
> addChartLabel(OneMinuteLeft,"1 Minute Left");
>
> alert(oneMinuteLeft, concat(getSymbolPart(), " trend line violation"),
alert.BAR, sound.Ring);

Reply With Quote
Thanked by:
  #5 (permalink)
 optntdr13 
Glyndon, Maryland, USA
 
Experience: Advanced
Platform: TOS
Trading: options
Posts: 24 since Sep 2010
Thanks Given: 6
Thanks Received: 49

input StartTime = 930;
input Interval_In_Minutes = 15;
input displace = 0.2;

def AftrStartTime = secondsFromTime(StartTime-1)>59;
def StartPoint = !AftrStartTime[1] and AftrStartTime;

def MinutesGoneBy = if AftrStartTime then secondsFromTime(StartTime)/60 else 0;

def IntervalPast = if AftrStartTime then
roundDown(MinutesGoneBy/Interval_In_Minutes,0) else 0;

def IntervalPoint=IntervalPast > IntervalPast[1];

rec MinutesPastInterval = if IntervalPoint or StartPoint then 0 else
MinutesPastInterval[1] + 1;

def OneMinuteLeft = MinutesPastInterval == (Interval_In_Minutes - 1);

plot IntervalGoneBy = if IntervalPoint then high+displace else double.nan;
IntervalGoneBy.SetStyle(curve.POINTS);
IntervalGoneBy.SetLineWeight(5);

addChartBubble(OneMinuteLeft,high,"1");
addChartLabel(OneMinuteLeft,"1 Minute Left");

alert(oneMinuteLeft, concat(getSymbolPart(), " trend line violation"),
alert.BAR, sound.Ring);

Reply With Quote
  #6 (permalink)
 optntdr13 
Glyndon, Maryland, USA
 
Experience: Advanced
Platform: TOS
Trading: options
Posts: 24 since Sep 2010
Thanks Given: 6
Thanks Received: 49

This code sounds a chime every minute. It is a thinkScript study. You can
change the default to whatever time length you want. I set it to one minute in
order to test it. There are only 4 wav sounds you can play, Bell, Chimes, Ring,
Ding. That is all that thinkScript has available.

input Interval_In_Minutes = 1;
def MinutesGoneBy = secondsFromTime(15)/60;

def IntervalPast = round100(((MinutesGoneBy/Interval_In_Minutes)/100));

def IntervalGoneBy = if IntervalPast > IntervalPast[1] then 1 else 0;

alert(IntervalGoneBy == 1," ",Alert.BAR,sound.chimes);

Reply With Quote
Thanked by:
  #7 (permalink)
 uptown 
ny
 
Experience: Intermediate
Platform: many
Posts: 1 since Sep 2010
Thanks Given: 4
Thanks Received: 1


optntdr13 View Post
This code sounds a chime every minute. It is a thinkScript study. You can
change the default to whatever time length you want. I set it to one minute in
order to test it. There are only 4 wav sounds you can play, Bell, Chimes, Ring,
Ding. That is all that thinkScript has available.

input Interval_In_Minutes = 1;
def MinutesGoneBy = secondsFromTime(15)/60;

def IntervalPast = round100(((MinutesGoneBy/Interval_In_Minutes)/100));

def IntervalGoneBy = if IntervalPast > IntervalPast[1] then 1 else 0;

alert(IntervalGoneBy == 1," ",Alert.BAR,sound.chimes);


thanks, this helps for instance being alerted to when an odd candle will close/open like 3 minute.

Reply With Quote
  #8 (permalink)
 
TonyB's Avatar
 TonyB 
Bay Area, CA - US
 
Experience: Beginner
Platform: TOS, TS & MC
Broker: TDA & TS
Trading: Stock, Options and now Futures (ES)
Posts: 516 since Dec 2010
Thanks Given: 227
Thanks Received: 140

Any new offerings on this front? Just spoke with TOS, and there is indeed nothing native now, but the rep thought there was something he saw on YouTube though. I couldn't find anything though...

Reply With Quote
  #9 (permalink)
 
TonyB's Avatar
 TonyB 
Bay Area, CA - US
 
Experience: Beginner
Platform: TOS, TS & MC
Broker: TDA & TS
Trading: Stock, Options and now Futures (ES)
Posts: 516 since Dec 2010
Thanks Given: 227
Thanks Received: 140

Just found this on this on the web as another attempt at at timer... I've tried playing with it, and I can't get it do what I want though.

# bar timer adds a vertical line 1 min before the interval_In_Minutes in minutes elapses
input StartTime = 0930;
input Interval_In_Minutes = 30;
def AftrStartTime = secondsFromTime(StartTime-1)>59;
def StartPoint = !AftrStartTime[1] and AftrStartTime;
def MinutesGoneBy = if AftrStartTime then secondsFromTime(StartTime)/60 else 0;
def IntervalPast = if AftrStartTime then
roundDown(MinutesGoneBy/Interval_In_Minutes,0) else 0;
def IntervalPoint=IntervalPast > IntervalPast[1];
rec MinutesPastInterval = if IntervalPoint or StartPoint then 0 else
MinutesPastInterval[1] + 1;
AddVerticalLine( intervalpoint , "timealert", Color.CYAN);

Reply With Quote
  #10 (permalink)
 
VegasFlyer's Avatar
 VegasFlyer 
Las Vegas, NV
 
Experience: Intermediate
Platform: TOS, Tradestation, NT
Trading: Futures, Forex, Options
Posts: 16 since Sep 2011
Thanks Given: 17
Thanks Received: 38


TimeLeft - FREE countdown, reminder, clock, alarm clock, tray clock, stopwatch, timer, sticker, auction watch and time synchronization utility.

Found this thread this morning and then found this substitute. Free and customizable.

Reply With Quote




Last Updated on August 3, 2012


© 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