NexusFi: Find Your Edge


Home Menu

 





TS Shading Session Different Colors


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one hectormas with 2 posts (0 thanks)
    2. looks_two dougrkyle with 1 posts (0 thanks)
    3. looks_3 Albnd with 1 posts (0 thanks)
    4. looks_4 ABCTG with 1 posts (0 thanks)
    1. trending_up 5,319 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

TS Shading Session Different Colors

  #1 (permalink)
 hectormas 
Charlotte, NC
 
Experience: Intermediate
Platform: Tradestation, Ninja Trader
Trading: Forex
Posts: 34 since Sep 2012
Thanks Given: 25
Thanks Received: 54

Hello,

Does anyone know how can I make certain hrs of the day a different color from the other. EI Cash hours different to Globex hrs.

TradeStation doesnt seem to have setting for it. Maybe there is an indicator ?

Thanks

Hector

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
Albnd
Rome, Italy
 
Posts: 62 since Feb 2012
Thanks Given: 27
Thanks Received: 28

You may want to use a paintbar:

 
Code
inputs: opentime(1535), closetime(2200);

If Time < opentime or Time > closetime then 
    PlotPB(High, Low, Open, Close, "OutOfSession", darkgray);

Reply With Quote
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627


Like Albnd mentioned, paintbars will do the trick. Either color the price bars or the chart background.

For the latter you can slightly modify the posted code to:
 
Code
inputs: opentime(1535), closetime(2200), BgrdColor(yellow);

Variables:
HighVal(0),
LowVal(0);
once 
begin
HighVal = Close * 3;
LowVal = Close * .33;
end;

If Time < opentime or Time > closetime then 
begin
    Plot1(HighVal, "OutOfSession", BgrdColor);
    Plot2(LowVal, "OutOfSession", BgrdColor);
end;
Make sure to format Plot1 as Bar High and Plot as Bar Low in TS.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
  #4 (permalink)
 hectormas 
Charlotte, NC
 
Experience: Intermediate
Platform: Tradestation, Ninja Trader
Trading: Forex
Posts: 34 since Sep 2012
Thanks Given: 25
Thanks Received: 54

That is what I was looking for. I am working the indicator, when I have it ready I will post it here for anyone that may want to use it.

Started this thread Reply With Quote
  #5 (permalink)
dougrkyle
indianapolis in usa
 
Posts: 16 since Aug 2013
Thanks Given: 0
Thanks Received: 3

Did you ever put together this indicator?

Reply With Quote




Last Updated on March 3, 2014


© 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