Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
If I wanted to find the lowest bar in a series of bars
Collapse
X
-
Originally posted by kaywai View Postand I would like to exclude the current bar from that series, how would i do that?
ref: http://www.ninjatrader.com/support/h...html?swing.htm
-
Hi Koganam,
The swing indicator would only work under certain conditions, no?
If my series of bars are comparing close vs close[bars ago] and i am using those counts to ascertain the lowest low of that series, but wanting to exclude the current bar, would the swing indicator work?
Regards
Kay Wai
Comment
-
Originally posted by kaywai View PostHi Koganam,
The swing indicator would only work under certain conditions, no?
If my series of bars are comparing close vs close[bars ago] and i am using those counts to ascertain the lowest low of that series, but wanting to exclude the current bar, would the swing indicator work?
The lowest low is an absolute, so yes, the swing low point, determined from the Swing indicator, indexed to start at the bar before the current bar, will give you the lowest point in the lookback period, as by indexing to the prior bar, the current bar is automatically excluded.
Comment
-
Hi Koganam,
Sorry for the confusion.
As I am using a quasi-****** indicator which compares Close vs Close[barsago] and using those counts to determine the lowest low in the entire setup. By setting a flag to indicate the end of the setup, and checking for the lowest low based on the setup counts, there have been occassions where the lowest low is the CurrentBar. This is why I asked how could I determine the lowest low of a series of bars which excludes the CurrentBar.
Anyhoo, I have resolved the issue using a series of CurrentBar variables. Thanks for helping though. Appreciate it.
Kay Wai
Comment
-
You are correct on that Koganam. I'm doing so to decide which trades to enter and which trades to ignore and it's not really related to the TDST line....My rules and counts are not conventional, which is why the code is different.
As TD says on occassion, it's not only about the 9s....
Comment
-
Originally posted by kaywai View PostYou are correct on that Koganam. I'm doing so to decide which trades to enter and which trades to ignore and it's not really related to the TDST line....My rules and counts are not conventional, which is why the code is different.
As TD says on occassion, it's not only about the 9s....
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by businessman1929, 04-29-2024, 01:28 PM
|
2 responses
21 views
0 likes
|
Last Post Today, 05:38 PM | ||
Started by bltdavid, 03-27-2023, 05:32 AM
|
18 responses
346 views
0 likes
|
Last Post
by ETFVoyageur
Today, 05:28 PM
|
||
Started by NM_eFe, Today, 05:15 PM
|
0 responses
4 views
0 likes
|
Last Post
by NM_eFe
Today, 05:15 PM
|
||
Started by vitaly_p, Today, 05:09 PM
|
0 responses
4 views
0 likes
|
Last Post
by vitaly_p
Today, 05:09 PM
|
||
Started by cmtjoancolmenero, Today, 05:05 PM
|
0 responses
2 views
0 likes
|
Last Post Today, 05:05 PM |
Comment