Go Back   NinjaTrader Support Forum > NinjaScript Educational Resources > Reference Samples

Reference Samples Official NinjaScript reference code samples

Reply
 
Thread Tools Display Modes
Old 07-01-2008, 12:22 PM   #1
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,353
Thanks: 10
Thanked 175 times in 103 posts
Default Indicator: Calculating the highest high or lowest low for a specified time range

Determining a high or low value for given time range can be useful.

The attached reference sample demonstrates the following concepts:
  • Converting time to bars ago values
  • Getting the highest high and lowest low values
Important methods and properties of interest include:Import instructions for NinjaTrader 6.5.XXXX.X or greater:
  1. Download the file contained in this thread to your PC desktop
  2. From the Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file
Attached Files
File Type: zip SampleGetHighLowByTimeRange.zip (6.4 KB, 1594 views)
NinjaTrader_Ray is offline  
Reply With Quote
The following 2 users say thank you to NinjaTrader_Ray for this post:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
highest high / lowest low of first hour of trading velocity General Programming 7 06-16-2008 09:07 AM
Highest/Lowest kuroro13 General Programming 1 06-14-2008 12:59 AM
Plans for Highest/Lowest with IDataSeries? mazachan General Programming 8 01-28-2008 08:24 AM
How to correctly use Highest/Lowest in strategy wizard latkinso Strategy Development 6 01-02-2008 03:14 PM
Highest high of a time frame pablo_lasuncion Strategy Development 5 09-04-2007 02:05 PM


All times are GMT -6. The time now is 11:17 AM.

FULL RISK DISCLOSURE: Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.