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 ABCTG with 2 posts (3 thanks)
    3. looks_3 GoldenRatio with 2 posts (1 thanks)
    4. looks_4 rocketcitytrader with 1 posts (0 thanks)
    1. trending_up 8,336 views
    2. thumb_up 6 thanks given
    3. group 7 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread

How to color OHLC bars?

  #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?
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
76 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
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

Follow me on Twitter 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,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 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 Twitter 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


© 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