Bars repainting - futures io
futures io



Bars repainting


Discussion in ThinkOrSwim

Updated
    1. trending_up 686 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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)

 
Search this Thread
 

Bars repainting

(login for full post details)
  #1 (permalink)
 lukeskywalker1 
Los Angeles (CA)
 
Experience: Master
Platform: ThinkOrSwim
Trading: Currency Future, Stocks
 
lukeskywalker1's Avatar
 
Posts: 34 since Apr 2019
Thanks: 1 given, 27 received

From time to time I come across a question why when using bars their color differs from candles. The point is that the color of the bar depends on the price in relation to the price of the previous close. And the color of the candlestick depends on the price in relation to the opening price. Therefore, for those who want to use bars on charts, but are used to candlestick coloring, I made a simple script for repainting bars. The script works on both light and dark backgrounds, on any timeframes.

#bars repainting
#

def c = close;
def o = open;
AssignPriceColor(if c > o then Color.uptick else if c < o then Color.downtick else color.gray);

Visit my futures io Trade Journal Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > Bars repainting


Last Updated on June 28, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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