NexusFi: Find Your Edge


Home Menu

 





How to color OHLC bars?


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one SteveJewels with 3 posts (0 thanks)
    2. looks_two GoldenRatio with 2 posts (1 thanks)
    3. looks_3 ABCTG with 2 posts (3 thanks)
    4. looks_4 kbaker9247 with 1 posts (2 thanks)
    1. trending_up 11,488 views
    2. thumb_up 6 thanks given
    3. group 7 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
GoldenRatio's Avatar
 GoldenRatio 
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


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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


Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
 kbaker9247 
Moline IL USA
 
Posts: 22 since Jul 2014



GoldenRatio View Post
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;


Reply With Quote
  #4 (permalink)
 
GoldenRatio's Avatar
 GoldenRatio 
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!


Started this thread Reply With Quote
Thanked by:
  #5 (permalink)
rocketcitytrader
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.


Reply With Quote
  #6 (permalink)
pavanb15589
Bangalore+India
 
Posts: 40 since Aug 2015
Thanks Given: 5
Thanks Received: 26

Thank you for the script....


Reply With Quote
  #7 (permalink)
DavidCarmichael
Bangor, Wales
 
Posts: 16 since Sep 2015
Thanks Given: 6
Thanks Received: 10


rocketcitytrader View Post
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!


Reply With Quote
  #8 (permalink)
 
SteveJewels's Avatar
 SteveJewels 
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.


Reply With Quote
  #9 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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 View Post
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.


Follow me on X Reply With Quote
Thanked by:
  #10 (permalink)
 
SteveJewels's Avatar
 SteveJewels 
Dayton, OH USA
 
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: MES
Posts: 38 since Sep 2017
Thanks Given: 10
Thanks Received: 11



ABCTG View Post
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.


Reply With Quote




Last Updated on May 4, 2020


© 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