![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Jan 2010
Posts: 273
Thanks: 15
Thanked 4 times in 3 posts
|
Hi,
I'm developing a multi-instrument stocks 5m intraday strategy on US session. I want to find out for each instrument the High/Low points since the session start. For example for stocks XYZ 2 hours from the start of the trading day(9:30EST) I want to know what was the High point and the low point. I thought about using the Max/Min function and to give them the number of bars since the session started something like that: Code:
max = MAX(Highs[5], BarsSinceSession)[0]; What do you think is the best approach to solve this? TX, Roy |
|
|
|
|
|
#2 | |
|
Senior Member
|
Quote:
Using a BarsInProgess filter when needed: http://www.ninjatrader.com/support/h...inprogress.htm, or by specifying the bar series with an index: http://www.ninjatrader.com/support/h...html?highs.htm |
|
|
|
|
|
The following user says thank you to koganam for this post: |
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2010
Posts: 273
Thanks: 15
Thanked 4 times in 3 posts
|
If I understood what you meant the BarsSinceSession is tight to the BIP the called the OnBarUpdate(), am I correct?
|
|
|
|
|
|
#4 | |
|
Senior Member
|
Quote:
The BarsInProgress will filter calculations to the instrument which matches its BarsInProgress index, and exclude the other instruments. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Resetting the Swing High/Low Indicator on New Session | MJUK10 | Strategy Development | 23 | 06-08-2011 05:11 AM |
| Displayng chart betw session low & high | Art09 | Suggestions And Feedback | 1 | 03-09-2011 09:03 AM |
| Display the chart betw session high & low... | Art09 | Charting | 3 | 03-02-2011 12:02 PM |
| High and low for the session differ on range compared to minute charts | suprsnipes | Charting | 11 | 03-24-2010 12:53 PM |
| Can 15-Minute Bar Backtest bars start on 7:20AM Session Start instead of 7:15 AM? | ChiTrader2000 | Strategy Development | 5 | 01-30-2009 10:29 AM |