NexusFi: Find Your Edge


Home Menu

 





TOS plotting horizontal line for open in renko chart


Discussion in ThinkOrSwim

Updated
    1. trending_up 3,159 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
takingprofits
costa mesa, ca usa
 
Posts: 3 since Jan 2021
Thanks Given: 0
Thanks Received: 0

is it possible to write code to show the /es rth open as a horizontal line on a renko chart with a line 6pts above the open and a third line 6 pts below the open? Thank you!


have tried this and it does print rth open print except for in renko charts!

def Time =
GetTime()
;
def Start =
RegularTradingStart(GetyYYYMMDD())
;
def First =
Time > Start and Time[1] <= Start
;
def Opening =
if First then Open
else Opening[1]
;
plot Line = Opening;
Line.setPaintingStrategy(paintingStrategy.HORIZONTAL);


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Second Night of US Strikes Crushes Iran June 15 to 3.6% …
Prediction Markets & Event Contracts
$500M Riding on World Cup 2026: France/Spain Co-Favored …
Prediction Markets & Event Contracts
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
 
  #2 (permalink)
ColoradoCliff
Parker CO/USA
 
Posts: 22 since Jun 2017
Thanks Given: 0
Thanks Received: 5


takingprofits View Post
is it possible to write code to show the /es rth open as a horizontal line on a renko chart with a line 6pts above the open and a third line 6 pts below the open? Thank you!


have tried this and it does print rth open print except for in renko charts!

def Time =
GetTime()
;
def Start =
RegularTradingStart(GetyYYYMMDD())
;
def First =
Time > Start and Time[1] <= Start
;
def Opening =
if First then Open
else Opening[1]
;
plot Line = Opening;
Line.setPaintingStrategy(paintingStrategy.HORIZONTAL);


Renko with Lines


Not sure why you couldn't see the lines. I took you code and was able to see the line on a Renko chart. My time setting is 1 year 10 ticks so each bar represents a 2.5 point move. Unfortunately, I can't post the picture of my chart....but I assure you that the lines are on my chart.

Here's my code. The only think I added as the code to draw the +- 6 point lines

# Begin code

def Time =
GetTime()
;
def Start =
RegularTradingStart(GetyYYYMMDD())
;
def First =
Time > Start and Time[1] <= Start
;
def Opening =
if First then Open
else Opening[1]
;
plot aLine = Opening;
aLine.setPaintingStrategy(paintingStrategy.HORIZONTAL);

plot bLine = Opening + 6;
bLine.setPaintingStrategy(paintingStrategy.HORIZONTAL);

plot cLine = Opening - 6;
cLine.setPaintingStrategy(paintingStrategy.HORIZONTAL);
# End code


Attached Thumbnails
Click image for larger version

Name:	Renko with Lines.png
Views:	194
Size:	61.1 KB
ID:	319018  
Reply With Quote




Last Updated on October 24, 2021


© 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