Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
How to color OHLC bars?
Updated May 4, 2020
Top Posters
looks_one
SteveJewels
with 3 posts (0 thanks)
looks_two
GoldenRatio
with 2 posts (1 thanks)
looks_3
ABCTG
with 2 posts (3 thanks)
looks_4
kbaker9247
with 1 posts (2 thanks)
trending_up
8,376 views
thumb_up
6 thanks given
group
7 followers
forum
10 posts
attach_file
0 attachments
How to color OHLC bars?
July 20th, 2014, 02:58 PM
Philadelphia, PA
Experience: Advanced
Platform: Matlab, TradeStation
Trading: Stocks
Posts: 211 since Aug 2012
Thanks Given: 5,192
Thanks Received: 296
Is there an easy way to color the OHLC bars in Tradestation?
Thx
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
July 20th, 2014, 03:20 PM
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629
GoldenRatio,
the short answer is yes. It only depends on how you want to color them i.e. what the conditions are.
Tradestation has separate studies that color the bars, they are called Paintbars. I would suggest checking the build in studies out as this should give you a good idea.
Regards,
ABCTG
July 20th, 2014, 10:39 PM
Moline IL USA
Posts: 22 since Jul 2014
GoldenRatio
Is there an easy way to color the OHLC bars in Tradestation?
Thx
Here is the code for easy language
Make it a paint bar indicator. I called it OHLC_Color
If Close < Open then
begin
PlotPB(High,Low,Open,Close,"OHLC",Red);
end
else
begin
PlotPB(High,Low,Open,Close,"OHLC",Green);
end;
July 21st, 2014, 10:04 AM
Philadelphia, PA
Experience: Advanced
Platform: Matlab, TradeStation
Trading: Stocks
Posts: 211 since Aug 2012
Thanks Given: 5,192
Thanks Received: 296
Thank you kbaker9247 & ABCTG!
August 11th, 2015, 08:11 AM
Huntsville Alabama/USA
Posts: 1 since Oct 2014
Thanks Given: 0
Thanks Received: 0
Thank you for the Paintbar script. Is there a way to make the weight of the bars "heavier"? When I do that via Format Symbol, the colors of the script are masked.
August 31st, 2015, 07:03 AM
Bangalore+India
Posts: 40 since Aug 2015
Thanks Given: 5
Thanks Received: 26
Thank you for the script....
September 16th, 2015, 05:32 PM
Bangor, Wales
Posts: 16 since Sep 2015
Thanks Given: 6
Thanks Received: 10
rocketcitytrader
Thank you for the Paintbar script. Is there a way to make the weight of the bars "heavier"? When I do that via Format Symbol, the colors of the script are masked.
Yes - control the width of the (colored) plot through the paintbar EasyLanguage using plot width rather than by formatting the symbol. Hope that helps!
May 3rd, 2020, 04:42 PM
Dayton, OH USA
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: MES
Posts: 38 since Sep 2017
Thanks Given: 10
Thanks Received: 11
I found this old post. I was looking to color OHLC bars so up was green and down was red.
I entered this;
If Close < Open then
begin
PlotPB(High,Low,Open,Close,"OHLC",Red);
end
else
begin
PlotPB(High,Low,Open,Close,"OHLC",Green);
end;
And got this error;
Error 1; Description: Arithmetic (numeric) expression expected here.; Location: OHLC_Color; Line: 11 Error Type (#30157)
This is my first attempt at programming in EL.
May 4th, 2020, 03:56 AM
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629
SteveJewels ,
what platform and study type did you test this in?
Your code compiles without errors for me in a Paintbar study in Tradestation.
Regards,
ABCTG
SteveJewels
I found this old post. I was looking to color OHLC bars so up was green and down was red.
I entered this;
If Close < Open then
begin
PlotPB(High,Low,Open,Close,"OHLC",Red);
end
else
begin
PlotPB(High,Low,Open,Close,"OHLC",Green);
end;
And got this error;
Error 1; Description: Arithmetic (numeric) expression expected here.; Location: OHLC_Color; Line: 11 Error Type (#30157)
This is my first attempt at programming in EL.
May 4th, 2020, 07:04 AM
Dayton, OH USA
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: MES
Posts: 38 since Sep 2017
Thanks Given: 10
Thanks Received: 11
ABCTG
SteveJewels ,
what platform and study type did you test this in?
Your code compiles without errors for me in a Paintbar study in Tradestation.
Regards,
ABCTG
Hello ABCTG,
I hope you are well.
Thank you for replying.
Platform? Tradestation.
I do not understand "test this in".
And now every study, Indicator, ShowMe, PaintBar, ActivityBar and ProbabliltyMap except DIG Keltner Channel shows as "Not Verified".
I have broken TradeStation.
Last Updated on May 4, 2020