True High and True Low - futures io
futures io futures trading



True High and True Low


Discussion in NinjaTrader

Updated
    1. trending_up 5,200 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 3 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

True High and True Low

(login for full post details)
  #1 (permalink)
singapore
 
 
Posts: 131 since Nov 2009
Thanks: 11 given, 7 received

I'm trying to create an indicator which requires the use of True High and True Low of the previous day. True High is defined as the higher of yesterday's high and the close 2 days ago while true low is defined as the lower of yesterday's low and the close 2 days ago. Upon calculating that, I'd like to transpose that information (true high and true low) to today's intraday chart. Could someone please help?

Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
111 thanks
Selling Options on Futures?
109 thanks
Rank your Futures vs Stocks trading priority
37 thanks
Want your NinjaTrader indicator created, free?
26 thanks
Bitcoin storage wallet recommendations
18 thanks
 
(login for full post details)
  #2 (permalink)
Moscow
 
 
Posts: 12 since Jan 2010
Thanks: 1 given, 8 received

Like this?
Export Version 6.5.1000.14

Attached Files
Register to download File Type: zip THTL.zip (2.0 KB, 30 views)
Reply With Quote
 
(login for full post details)
  #3 (permalink)
singapore
 
 
Posts: 131 since Nov 2009
Thanks: 11 given, 7 received


Eloy, Thanks for that! I have a few questions though...

1) if DClose2 = DClose1 and Dclose1 = Close[1], then Dclose2 = Close[1], right? This would be the close of 1 bar ago, right?
2) would your script work if I were to use it on intraday charts?

Reply With Quote
 
(login for full post details)
  #4 (permalink)
singapore
 
 
Posts: 131 since Nov 2009
Thanks: 11 given, 7 received

Eloy, this is what I have but I'm not sure whether it works...

Attached Files
Register to download File Type: zip kythtl.zip (6.0 KB, 22 views)
Reply With Quote
 
(login for full post details)
  #5 (permalink)
Moscow
 
 
Posts: 12 since Jan 2010
Thanks: 1 given, 8 received


kaywai View Post
1) if DClose2 = DClose1 and Dclose1 = Close[1], then Dclose2 = Close[1], right? This would be the close of 1 bar ago, right?

DClose2 gets value DClose1 then DClose1 gets new value Close[1] and DClose2 <> Close[1], DClose2 still remain value of DClose1.
It use Bars.SessionBreak (This property returns true if the call to OnBarUpdate() is the first call of the session). So it is a new day and saved DayClose became DayClose 2 day ago. Because first bar of the session, Close[1] (close of 1 bar ago) = yesterday's Close.
So there was a mistake in DClose1 = Close[-1] should be DClose1 = Close[1] of course.


kaywai View Post
2) would your script work if I were to use it on intraday charts?

Yes. Just test it!

Attached Files
Register to download File Type: zip THTL.zip (2.0 KB, 32 views)
Reply With Quote
The following user says Thank You to Eloy for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > True High and True Low


Last Updated on January 20, 2010


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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