Coding horizontal line at specific bar - ThinkOrSwim | futures io social day trading
futures io futures trading


Coding horizontal line at specific bar
Updated: Views / Replies:146 / 12
Created: by CodingDummy Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 2  
 
Thread Tools Search this Thread
 

Coding horizontal line at specific bar

  #11 (permalink)
Sacramento, California
 
 
Posts: 9 since Sep 2019
Thanks: 6 given, 1 received

Still having a problem with this one. I'm getting a horizontal line on every chart at 0.00 instead of the 16:00 - 16:05 5m candle closing price.

this is what i have inserted from your prior post as the script code....
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).



declare upper;

input PeriodStartTime = 0458;
input PeriodEndTime = 0459;

def Range_Top = if SecondsFromTime(1606) >= 0 then Range_Top[1] else
if SecondsFromTime(1605) == 0 then close else
if SecondsFromTime(1605) < 0 then Double.NaN else
if SecondsFromTime(1605) > 0 and SecondsFromTime(1606) <= 0
and close > Range_Top[1] then close else Range_Top[1];

plot line = Range_Top;

def line_Top = if SecondsFromTime(periodendtime) >= 0 then line_Top[1] else
if SecondsFromTime(PeriodStartTime) == 0 then line[1] else
if SecondsFromTime(PeriodStartTime) < 0 then Double.NaN else
if SecondsFromTime(PeriodStartTime) > 0 and SecondsFromTime(PeriodEndTime) <= 0
and line[1] > line_Top[1] then line[1] else line_Top[1];

plot line2 = line_top;

Reply With Quote
 
  #12 (permalink)
Lenox, Ma
 
Trading Experience: Beginner
Platform: TOS
Favorite Futures: US Equities
 
Posts: 248 since Dec 2018
Thanks: 349 given, 553 received

Coding horizontal line at specific bar

Itís not going to run on a daily chart.

Iím sure there is a way to do exactly what youíre looking for, I am just not sure how to do it!

Visit my futures io Trade Journal Reply With Quote
 
  #13 (permalink)
Sacramento, California
 
 
Posts: 9 since Sep 2019
Thanks: 6 given, 1 received


I wasn't able to get it to work on any time frame, but then i made a small change. all the 1605 i made 1600 and all the 1606 i made 1605 and it worked great. Aqua Blue horizontal line appeared at the close of the candle i want.

However, the aqua line only extends for 5-6 bars. Is there another tweak to get this line to extend through the end of the trading day? so from the close of 16:05 candle yesterday through the end of trading hours today (1559)?

declare upper;

input PeriodStartTime = 0458;
input PeriodEndTime = 0459;

def Range_Top = if SecondsFromTime(1605) >= 0 then Range_Top[1] else
if SecondsFromTime(1600) == 0 then close else
if SecondsFromTime(1600) < 0 then Double.NaN else
if SecondsFromTime(1600) > 0 and SecondsFromTime(1605) <= 0
and close > Range_Top[1] then close else Range_Top[1];

plot line = Range_Top;

def line_Top = if SecondsFromTime(periodendtime) >= 0 then line_Top[1] else
if SecondsFromTime(PeriodStartTime) == 0 then line[1] else
if SecondsFromTime(PeriodStartTime) < 0 then Double.NaN else
if SecondsFromTime(PeriodStartTime) > 0 and SecondsFromTime(PeriodEndTime) <= 0
and line[1] > line_Top[1] then line[1] else line_Top[1];

plot line2 = line_top;

Reply With Quote

Reply



futures io > > > > Coding horizontal line at specific bar

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Show us your trading desks and win over $5,000 in prizes w/Jigsaw Trading

August
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a horizontal priceline indicator that can start a specific time markus3500 The Elite Circle 3 February 14th, 2018 09:08 AM
Range of Bar Indicator with Horizontal Line Added ceramictilepro NinjaTrader 2 January 17th, 2014 11:15 AM
How to step forward bar by bar (F12) with full bar not half bar? mercyman MetaTrader 1 October 23rd, 2012 04:49 PM
Bar back adjusting line coding, is it possible? hector24 NinjaTrader 6 June 24th, 2011 06:40 PM
Horizontal line with text vast NinjaTrader Programming 2 February 4th, 2010 03:46 PM


All times are GMT -4. The time now is 10:52 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts