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

  #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?
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
Increase in trading performance by 75%
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Spoo-nalysis ES e-mini futures S&P 500
14 thanks
  #12 (permalink)
 
kareem40's Avatar
 kareem40 
Dallas, TX
Legendary TradeTheBar
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
Posts: 725 since May 2010
Thanks Given: 1,947
Thanks Received: 921


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 Twitter Visit my NexusFi Trade Journal 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