NexusFi: Find Your Edge


Home Menu

 





Bars repainting


Discussion in ThinkOrSwim

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




 
Search this Thread

Bars repainting

  #1 (permalink)
 
lukeskywalker1's Avatar
 lukeskywalker1 
Los Angeles (CA)
 
Experience: Master
Platform: ThinkOrSwim
Trading: Currency Future, Stocks
Posts: 34 since Apr 2019
Thanks Given: 1
Thanks Received: 40

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 NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on June 28, 2021


© 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