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 4,968 views
    2. thumb_up 8 thanks given
    3. group 4 followers
    1. forum 11 posts
    2. attach_file 3 attachments




 
Search this Thread
  #11 (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
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

Heres the code:

Inputs:
LookBack(1),
AlertValue(200),
VOLSPD_Color(White),
ADSPD_Color(Blue),
TIKSP_Color(Yellow);

Variables:
Data2Ratio(0),
Data3Ratio(0),
Data4Ratio(0);

Data2Ratio = 100*(C/C[LookBack]) data2;
Data3Ratio = 100*(C/C[LookBack]) data3;
Data4Ratio = 100*(C/C[LookBack]) data4;

Plot1(Data2Ratio, "$VOLSPD Ratio", VOLSPD_Color);
Plot2(Data3Ratio, "$ADSPD Ratio", ADSPD_Color);
Plot3(Data4Ratio, "$TIKSP Ratio", TIKSP_Color);
Plot4(100, "Balance Line", White);
Plot5(AlertValue, " Bullish Area", Green);
Plot6((100/AlertValue)*100, "Bearish Area", Red);

If Data2Ratio > AlertValue and Data3Ratio > AlertValue and Data4Ratio > AlertValue then
Alert("Bullish Flow");

If Data2Ratio < (100/AlertValue) and Data3Ratio < (100/AlertValue) and Data4Ratio < (100/AlertValue) then
Alert("Bearish Flow");


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #12 (permalink)
 
kareem40's Avatar
 kareem40 
Dallas, TX
Legendary Trade Garlic
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
Posts: 745 since May 2010
Thanks Given: 1,950
Thanks Received: 934


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.

Wow, that was very fast. Nice work. I will try it out tomorrow and thank you very much.

K


Follow me on X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on August 14, 2019


© 2026 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 - Downloads - Top
no new posts