NexusFi: Find Your Edge


Home Menu

 





TOS plotting horizontal line for open in renko chart


Discussion in ThinkOrSwim

Updated
    1. trending_up 3,246 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?
No book, only a stair: journaling fills where price move …
Cryptocurrency
[WTS] ATAS Lifetime ULTRA license – EU buyers only – …
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
EA
Platforms and Indicators
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Would you consider buying or leasing an algo?
6 thanks
Trading Journal (Neural Network Production Pipeline Mode …
4 thanks
Trading psychology articles
4 thanks
Big Mike in Ecuador
3 thanks
The Scalpers Journey
2 thanks
  #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:	214
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