NexusFi: Find Your Edge


Home Menu

 





Question for MC users - coloring OHLC bars


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
 
sharp2be's Avatar
 sharp2be 
Canada
 
Experience: Advanced
Platform: NT, TS
Broker: Amp
Trading: ES
Posts: 57 since Sep 2009
Thanks Given: 1
Thanks Received: 69

Hi, I would like to paint the OHLC colors in Multicharts red for down days (close < open), I managed to do that using code but I've noticed that the bar gets painted green (default color) and then get's painted red which is kind of annoying when you are watching it in real-time.

Can anyone give a sugesttion on how to work around this problem?

My code
If Close<Open Then
PlotPaintBar(High,Low,Open,Close,"",Red);


Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
EA
Platforms and Indicators
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
My Rant with AMP Futures
Trading Reviews and Vendors
No book, only a stair: journaling fills where price move …
Cryptocurrency
Trump Media to sell instant access to market-moving soci …
Traders Hideout
 
  #2 (permalink)
 ejtrader 
Portland, OR
 
Experience: Intermediate
Platform: Sierra Chart
Trading: ES
Posts: 269 since Jan 2011
Thanks Given: 327
Thanks Received: 180

You can try this code:

 
Code
vars: drawcolor(DarkGray);

drawcolor=iff(open<close,Green,Red);
if open=close then drawcolor=DarkGray;

PlotPaintBar(High,Low,Open,Close,"",drawcolor);


Reply With Quote
Thanked by:




Last Updated on November 15, 2011


© 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