NexusFi: Find Your Edge


Home Menu

 





background color in watchlist


Discussion in ThinkOrSwim

Updated
    1. trending_up 7,989 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
lexion
cedar rapids
 
Posts: 1 since Dec 2014
Thanks Given: 0
Thanks Received: 0

Hello everyone!
New to the forum! Have recently deleted all my platforms and consolidated to TOS. I need help adding the code for background color in my watch list. TOS indicator, TTM wave, would like to have the cell go green when the number is positive and the cell go red when the number is below negative. I've tried, I know its simple but just can't figure it out. Any help would be appreciated!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
30 Sessions
21 thanks
Sober Journey With S&P
21 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
hawkeye33
Independence
 
Posts: 2 since Nov 2016
Thanks Given: 0
Thanks Received: 0

I had a similar question.

Does someone have a script that would provide a background color if price is above a specified moving average?


Reply With Quote
  #3 (permalink)
 Cabalab 
Warner Robins GA/USA
 
Experience: Intermediate
Platform: ToS
Trading: SPX
Posts: 6 since Feb 2014
Thanks Given: 1
Thanks Received: 3


maybe better luck at ThinkScripter Community Forum - Give Help, Get Help, Pay it Forward or www.hahn-tech.com or Robert Payne's Fun with ThinkScript
Good luck.


Reply With Quote
  #4 (permalink)
hawkeye33
Independence
 
Posts: 2 since Nov 2016
Thanks Given: 0
Thanks Received: 0

Thankfully I was able to find out how to do this:

input length = 21;
plot data = close;
def MovAvgExponential = Average(data, length);
AssignBackgroundColor( if data < MovAvgExponential then Color.RED else if data > MovAvgExponential then Color.GREEN else Color.BLACK);


Reply With Quote




Last Updated on January 31, 2017


© 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