AddLabel formula question - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


AddLabel formula question
Updated: Views / Replies:125 / 11
Created: by byront Attachments:3

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 3  
 
Thread Tools Search this Thread
 

AddLabel formula question

  #1 (permalink)
Brooklyn, NY
 
 
Posts: 6 since Apr 2019
Thanks: 3 given, 3 received

AddLabel formula question

I'm looking to add labels that act as alerts on my trading screen with the following criteria:

- Display numbers as ratios compared to previous bar
- Color (green or red) dependent on positive or negative value

I intend to use these market internals:

- SP Internals Volume: $VOLSPD > or < $VOLSPD previous 3m bar
- SP Internals Shares: $ADSPD > or < $ADSPD previous 3m bar
- SP Internals Ticks: $TIKSP > or < $TIKSP previous 3m bar

I'd also like to display a separate alert when all three cross a certain threshold (2x previous bar value).

Any help appreciated!


Example can be found here: youtube.com/watch?v=h9oXCuA4ffU


Last edited by byront; August 14th, 2019 at 05:20 PM.
Reply With Quote
The following user says Thank You to byront for this post:
 
  #2 (permalink)
Agoura Hills, CA USA
 
Trading Experience: Intermediate
Platform: Tradestation
Broker/Data: TradeStation
Favorite Futures: Futures & Equities
 
Posts: 20 since Apr 2019
Thanks: 3 given, 18 received


byront View Post
I'm looking to add labels that act as alerts on my trading screen with the following criteria:

- Display numbers as ratios compared to previous bar
- Color (green or red) dependent on positive or negative value

I intend to use these market internals:

- SP Internals Volume: $VOLSPD > or < $VOLSPD previous 3m bar
- SP Internals Shares: $ADSPD > or < $ADSPD previous 3m bar
- SP Internals Ticks: $TIKSP > or < $TIKSP previous 3m bar

I'd also like to display a separate alert when all three cross a certain threshold (2x previous bar value).

Any help appreciated!


Example can be found here: youtube.com/watch?v=h9oXCuA4ffU



What platform do you want this for? Thatís an easy coding job I can help out if itís easylanguage


Sent using the futures.io mobile app

Follow me on Twitter Reply With Quote
The following user says Thank You to numberjuani for this post:
 
  #3 (permalink)
Legendary Market Wizard
Dallas, TX
 
Trading Experience: Intermediate
Platform: NT, TS
Broker/Data: IB, Oanda
Favorite Futures: ES, MES, MNQ, MYM
 
kareem40's Avatar
 
Posts: 522 since May 2010
Thanks: 886 given, 541 received



numberjuani View Post
What platform do you want this for? Thatís an easy coding job I can help out if itís easylanguage


Sent using the futures.io mobile app

I think TOS, since its in the section. But it would be nice if you can please do one in NT8.

Thanks
K

Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
  #4 (permalink)
Agoura Hills, CA USA
 
Trading Experience: Intermediate
Platform: Tradestation
Broker/Data: TradeStation
Favorite Futures: Futures & Equities
 
Posts: 20 since Apr 2019
Thanks: 3 given, 18 received


kareem40 View Post
I think TOS, since its in the section. But it would be nice if you can please do one in NT8.



Thanks

K



Lol sorry count me out then Easylanguage is only good for tradestation or multicharts.


Sent using the futures.io mobile app

Follow me on Twitter Reply With Quote
The following user says Thank You to numberjuani for this post:
 
  #5 (permalink)
Legendary Market Wizard
Dallas, TX
 
Trading Experience: Intermediate
Platform: NT, TS
Broker/Data: IB, Oanda
Favorite Futures: ES, MES, MNQ, MYM
 
kareem40's Avatar
 
Posts: 522 since May 2010
Thanks: 886 given, 541 received


numberjuani View Post
Lol sorry count me out then Easylanguage is only good for tradestation or multicharts.


Sent using the futures.io mobile app

Got one of those ( TS) as well! if you can and when you have time, please. Looks interesting.

Thanks,
K


Last edited by kareem40; August 14th, 2019 at 06:28 PM. Reason: Tradestation
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
  #6 (permalink)
Legendary Market Wizard
Dallas, TX
 
Trading Experience: Intermediate
Platform: NT, TS
Broker/Data: IB, Oanda
Favorite Futures: ES, MES, MNQ, MYM
 
kareem40's Avatar
 
Posts: 522 since May 2010
Thanks: 886 given, 541 received


numberjuani View Post
Lol sorry count me out then Easylanguage is only good for tradestation or multicharts.


Sent using the futures.io mobile app

BTW, I have been to Agoura Hills recently. Nice area, very nice homes on the way there! My company HQ is there.
Thanks,
K

Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
  #7 (permalink)
Agoura Hills, CA USA
 
Trading Experience: Intermediate
Platform: Tradestation
Broker/Data: TradeStation
Favorite Futures: Futures & Equities
 
Posts: 20 since Apr 2019
Thanks: 3 given, 18 received


kareem40 View Post
BTW, I have been to Agoura Hills recently. Nice area, very nice homes on the way there! My company HQ is there.
Thanks,
K

Yeah I like it here love california. here's your indicator. So I made it so that each internal has a color and is plotted as a dot percent of the previous bar, or you can change that in the Lookback input, to say, 2 or x bars ago. you can also choose what level triggers the alert in terms of percentage. so its defaulting to two, which is 200 percent of the previous bar value, and for
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Attached Files
Register to download File Type: eld MARKET INTERNALS.ELD (13.1 KB, 2 views)
Register to download File Type: tsw Market Internals.tsw (96.0 KB, 4 views)
Follow me on Twitter Reply With Quote
The following user says Thank You to numberjuani for this post:
 
  #8 (permalink)
Seattle, WA
 
Trading Experience: Beginner
Platform: Thinkorswim, NinjaTrader
Favorite Futures: Micros
 
Posts: 3 since Nov 2018
Thanks: 1 given, 3 received

Let me know if this helps. Would work on 3min candles.

def Advancing = close("$ADSPD");
def AdvRatio = Advancing/Advancing[1];

AddLabel(yes, Round(AdvRatio) + " AdvRatio", if AdvRatio>=1 then Color.UPTICK else Color.DOWNTICK);

Reply With Quote
The following user says Thank You to AndrewQ for this post:
 
  #9 (permalink)
Brooklyn, NY
 
 
Posts: 6 since Apr 2019
Thanks: 3 given, 3 received


numberjuani View Post
Yeah I like it here love california. here's your indicator. So I made it so that each internal has a color and is plotted as a dot percent of the previous bar, or you can change that in the Lookback input, to say, 2 or x bars ago. you can also choose what level triggers the alert in terms of percentage. so its defaulting to two, which is 200 percent of the previous bar value, and for
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Seems like this is great - but yes, I need one for TOS. Would it be possible for you to post the code as a snippet so I can see your logic? Thanks

Reply With Quote
 
  #10 (permalink)
Brooklyn, NY
 
 
Posts: 6 since Apr 2019
Thanks: 3 given, 3 received



AndrewQ View Post
Let me know if this helps. Would work on 3min candles.

def Advancing = close("$ADSPD");
def AdvRatio = Advancing/Advancing[1];

AddLabel(yes, Round(AdvRatio) + " AdvRatio", if AdvRatio>=1 then Color.UPTICK else Color.DOWNTICK);

Thanks, I'll check this out tomorrow on market open.

Reply With Quote

Reply



futures io > > > > > AddLabel formula question




Upcoming Webinars and Events (4:30PM ET unless noted)
 

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$1,000 in Amazon Gift Cards being given away right now from GFF Brokers

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Show us your trading desks and win over $5,000 in prizes w/Jigsaw Trading

August
 

Webinar: Suri Duddella (TBA)

Elite only
 

Webinar: Richard Bailey (TBA)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula 1 JohnnyAustin Off-Topic 73 April 15th, 2015 07:08 PM
Cannot use decimal in RSI formula sqadri NinjaTrader Programming 3 October 22nd, 2011 09:01 AM
HELP with understanding this FORMULA plz.... mdsvtr Currency Futures 1 February 11th, 2011 09:11 PM
NT Rising / Falling formula diverdan Traders Hideout 7 November 1st, 2010 07:45 AM
color bars formula code in ninja or tradestation ford7k Traders Hideout 2 September 11th, 2010 10:34 AM


All times are GMT -4. The time now is 11:25 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts