NexusFi: Find Your Edge


Home Menu

 





AddLabel formula question


Discussion in ThinkOrSwim

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




 
Search this Thread

AddLabel formula question

  #1 (permalink)
byront
Brooklyn, NY
 
Posts: 6 since Apr 2019
Thanks Given: 3
Thanks Received: 6

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

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Are there any eval firms that allow you to sink to your …
Traders Hideout
Exit Strategy
NinjaTrader
Futures True Range Report
The Elite Circle
 
  #2 (permalink)
 
numberjuani's Avatar
 numberjuani 
Agoura Hills, CA USA
 
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102


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 NexusFi mobile app

Reply With Quote
Thanked by:
  #3 (permalink)
 
kareem40's Avatar
 kareem40 
Dallas, TX
Legendary TradeTheBar
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
Posts: 708 since May 2010
Thanks Given: 1,887
Thanks Received: 903



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 NexusFi 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 NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 
numberjuani's Avatar
 numberjuani 
Agoura Hills, CA USA
 
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102


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 NexusFi mobile app

Reply With Quote
Thanked by:
  #5 (permalink)
 
kareem40's Avatar
 kareem40 
Dallas, TX
Legendary TradeTheBar
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
Posts: 708 since May 2010
Thanks Given: 1,887
Thanks Received: 903


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


Sent using the NexusFi mobile app

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

Thanks,
K

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 
kareem40's Avatar
 kareem40 
Dallas, TX
Legendary TradeTheBar
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
Posts: 708 since May 2010
Thanks Given: 1,887
Thanks Received: 903


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


Sent using the NexusFi 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 NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 
numberjuani's Avatar
 numberjuani 
Agoura Hills, CA USA
 
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102


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
Elite Membership required to download: MARKET INTERNALS.ELD
Elite Membership required to download: Market Internals.tsw
Reply With Quote
Thanked by:
  #8 (permalink)
 AndrewQ 
Seattle, WA
 
Experience: Beginner
Platform: Thinkorswim, NinjaTrader
Trading: Micros
Posts: 4 since Nov 2018
Thanks Given: 3
Thanks Received: 7

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
Thanked by:
  #9 (permalink)
byront
Brooklyn, NY
 
Posts: 6 since Apr 2019
Thanks Given: 3
Thanks Received: 6


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)
byront
Brooklyn, NY
 
Posts: 6 since Apr 2019
Thanks Given: 3
Thanks Received: 6



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




Last Updated on August 14, 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