NexusFi: Find Your Edge


Home Menu

 





Changing Price Bar Width based on condition


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one 38ksfarmer40 with 2 posts (0 thanks)
    2. looks_two coolhand with 1 posts (0 thanks)
    3. looks_3 with 1 posts (1 thanks)
    4. looks_4 Nube with 1 posts (1 thanks)
    1. trending_up 3,574 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Changing Price Bar Width based on condition

  #1 (permalink)
38ksfarmer40
Spring Hill Kansas
 
Posts: 4 since Jan 2018
Thanks Given: 1
Thanks Received: 1

I am trying to have a script change the width or thickness of a price bar as well as set the color based on signal condition. The script is shown below.
Is this even possible in TOS?
Thanks

Declare upper;
input HiLkBk = 20;
input LoLkBk = 10;

Def Hi = high >= highest(high, HiLkBk) within 2 bars and close < open;
Def Lo = low <= lowest(low, LoLkBk) within 2 bars and close > open;

Def Signal = if hi then 1 else if lo then -1 else 0;

AssignPriceColor(IF signal == 1 then color.YELLOW else
if signal == -1 then color.white else Color.CURRENT);

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - May 2024
Feedback and Announcements
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
25 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #2 (permalink)
StillGoods69
 
Posts: n/a since

I spoke with a TOS thinkscript employee last week. they are working on functionality of making OHLC bars wider via script. Otherwise, there isn't a way. No time frame on this.

Reply With Quote
Thanked by:
  #3 (permalink)
38ksfarmer40
Spring Hill Kansas
 
Posts: 4 since Jan 2018
Thanks Given: 1
Thanks Received: 1


Mark Paul,
Thank you so much for the investigation and the response.
It is really appreciated.
Frank

Reply With Quote
  #4 (permalink)
coolhand
atlanta ga usa
 
Posts: 1 since Jul 2019
Thanks Given: 0
Thanks Received: 0

Any news on ways to make the bars in tos bigger? thanks for your time and any help

Reply With Quote
  #5 (permalink)
Nube
Minneapolis Minnesota
 
Posts: 24 since Jul 2019
Thanks Given: 0
Thanks Received: 13


38ksfarmer40 View Post
I am trying to have a script change the width or thickness of a price bar as well as set the color based on signal condition. The script is shown below.
Is this even possible in TOS?
Thanks

Declare upper;
input HiLkBk = 20;
input LoLkBk = 10;

Def Hi = high >= highest(high, HiLkBk) within 2 bars and close < open;
Def Lo = low <= lowest(low, LoLkBk) within 2 bars and close > open;

Def Signal = if hi then 1 else if lo then -1 else 0;

AssignPriceColor(IF signal == 1 then color.YELLOW else
if signal == -1 then color.white else Color.CURRENT);

There is no control over the width of the bar in ThinkScript

Reply With Quote
Thanked by:
  #6 (permalink)
mino
madrid
 
Posts: 4 since Feb 2021
Thanks Given: 0
Thanks Received: 1

any news in changing the width of price bars in TOS

Reply With Quote




Last Updated on February 27, 2021


© 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