AddLabel formula question - futures io
futures io futures trading



AddLabel formula question


Discussion in ThinkOrSwim

Updated by kareem40
      Top Posters
    1. looks_one numberjuani with 4 posts (5 thanks)
    2. looks_two kareem40 with 4 posts (0 thanks)
    3. looks_3 byront with 3 posts (1 thanks)
    4. looks_4 AndrewQ with 1 posts (2 thanks)
    1. trending_up 593 views
    2. thumb_up 8 thanks given
    3. group 5 followers
    1. forum 11 replies
    2. attach_file 3 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Thread Tools Search this Thread
 

AddLabel formula question

  #1 (permalink)
Brooklyn, NY
 
 
Posts: 6 since Apr 2019
Thanks: 3 given, 5 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:

Can you help answer these questions
from other members on futures io?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
 
  #2 (permalink)
Agoura Hills, CA USA
 
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
 
numberjuani's Avatar
 
Posts: 123 since Apr 2019
Thanks: 9 given, 91 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

Reply With Quote
The following user says Thank You to numberjuani for this post:
 
  #3 (permalink)
Legendary Market Wizard
Dallas, TX
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
 
kareem40's Avatar
 
Posts: 652 since May 2010
Thanks: 1,863 given, 868 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
 
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
 
numberjuani's Avatar
 
Posts: 123 since Apr 2019
Thanks: 9 given, 91 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

Reply With Quote
The following user says Thank You to numberjuani for this post:
 
  #5 (permalink)
Legendary Market Wizard
Dallas, TX
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
 
kareem40's Avatar
 
Posts: 652 since May 2010
Thanks: 1,863 given, 868 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
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
 
kareem40's Avatar
 
Posts: 652 since May 2010
Thanks: 1,863 given, 868 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
 
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
 
numberjuani's Avatar
 
Posts: 123 since Apr 2019
Thanks: 9 given, 91 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 bearish flow, 50% of the previous bar value. if all 3 meet the alert, youll get an alert.

Attached Files
Register to download File Type: eld MARKET INTERNALS.ELD (13.1 KB, 3 views)
Register to download File Type: tsw Market Internals.tsw (96.0 KB, 5 views)
Reply With Quote
The following user says Thank You to numberjuani for this post:
 
  #8 (permalink)
Seattle, WA
 
Experience: Beginner
Platform: Thinkorswim, NinjaTrader
Trading: Micros
 
Posts: 4 since Nov 2018
Thanks: 3 given, 7 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 2 users say Thank You to AndrewQ for this post:
 
  #9 (permalink)
Brooklyn, NY
 
 
Posts: 6 since Apr 2019
Thanks: 3 given, 5 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 bearish flow, 50% of the previous bar value. if all 3 meet the alert, youll get an alert.

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



futures io Trading Community Platforms and Indicators ThinkOrSwim > AddLabel formula question




Upcoming Webinars and Events
 

Free BloodHound Licenses to everyone!

June
 

Every journal equals ten meals for the hungry

June
     



Copyright © 2020 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