NexusFi: Find Your Edge


Home Menu

 





True High and True Low


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

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

Can you help answer these questions
from other members on NexusFi?
Topstep Acquires The Futures Desk -- Prop Firm Consolida …
Funded Trading Evaluation Firms
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
February NFP Preview -- Why This Mornings Jobs Number Co …
Traders Hideout
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
  #2 (permalink)
Eloy
Moscow
 
Posts: 12 since Jan 2010
Thanks Given: 1
Thanks Received: 8

Like this?
Export Version 6.5.1000.14


Attached Files
Elite Membership required to download: THTL.zip
Reply With Quote
  #3 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7


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
  #4 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

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


Attached Files
Elite Membership required to download: kythtl.zip
Reply With Quote
  #5 (permalink)
Eloy
Moscow
 
Posts: 12 since Jan 2010
Thanks Given: 1
Thanks Received: 8


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
Elite Membership required to download: THTL.zip
Reply With Quote
Thanked by:




Last Updated on January 20, 2010


© 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