NexusFi: Find Your Edge


Home Menu

 





TOS plotting horizontal line for open in renko chart


Discussion in ThinkOrSwim

Updated
    1. trending_up 3,075 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?
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
Ceasefire in Name Only: Three Numbers That Define the Ir …
Prediction Markets & Event Contracts
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 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:	183
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