NexusFi: Find Your Edge


Home Menu

 





Question for MC users - coloring OHLC bars


Discussion in MultiCharts

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




 
Search this Thread

Question for MC users - coloring OHLC bars

  #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?
Cheap historycal L1 data for stocks
Stocks and ETFs
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Footprint for strategy Builder
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
68 thanks
Spoo-nalysis ES e-mini futures S&P 500
21 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Trading with Intuition
15 thanks
The Trading Pit "Futures VIP" Account Journal
15 thanks
  #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


© 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