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
Indicator High/Low bar "open" line plot- need programmer help
Collapse
X
-
Just one more thing, if price does later break the lines, the lines still remain, they only drop off when/ if there is a new high and low on day that now replaces it. There will always be 2 lines at the end of day, the day high bar open and the low bar open.
Comment
-
High/Low bar "open" Indicator
Originally posted by ea0680 View PostJust one more thing, if price does later break the lines, the lines still remain, they only drop off when/ if there is a new high and low on day that now replaces it. There will always be 2 lines at the end of day, the day high bar open and the low bar open.
Open an "Output" Window, set the Debug setting to "True" and the Output Window will print out all occurences of the indicator plotting a session High bar Open and a session Low bar Open [see attached screenshots]
The irSessionSupportAndResistance indicator determines the high and low bar of a session and draws rays from the bars open. These rays mark support and resistance areas. They are confirmed when the session ends. Until confirmed the candidate session rays can move if a <= low occurs or a >= high occurs.
The thought behind including the = case is to use the more recent data in the markets memory.
When broken by a bar close, the broken ray is replaced with a line.
// 2015-10-25 Designed to run CalculateOnBarClose = false. (All code runs on FirstTickOfBar so minimal drain on resources.)
// 2015-10-25 Added code snippet and call to FormatPriceMarker within Print statement so when Debug mode enabled then prices will print in 32nds for ZB.
// 2015-10-25 Added boolean switch to turn on/off whether historical data is included in Debug mode.
Trade Well,
Comment
-
Thank you for the work you have done. It looks very close to what I do manually, however, there are filters that I look for as each price bar makes both the high and low of day. I have marked up a snapshot of the indicator plots and where I would manually draw the line . The differences are soley due to the filter of the HOD bar must have its Close > Open ,and LOD bar must have its Close < its Open, then plot that bars open. I do see the value in what you have completed without the filters, but perhaps having choice of turning on or off the filters would be a good option.
Comment
-
Originally posted by ea0680 View PostThank you for the work you have done. It looks very close to what I do manually, however, there are filters that I look for as each price bar makes both the high and low of day. I have marked up a snapshot of the indicator plots and where I would manually draw the line . The differences are soley due to the filter of the HOD bar must have its Close > Open ,and LOD bar must have its Close < its Open, then plot that bars open. I do see the value in what you have completed without the filters, but perhaps having choice of turning on or off the filters would be a good option.
I'll see what I can do, in the mean time maybe you could tell "us" how you actually use this for your trading?
Comment
-
That is correct,most times it will be the Low or High of day bar, but a bar that has already reversed off the high or low closing beyond its open can and does happen, and I just then look at the bar in which it met the filter.
I use these levels several ways. For example, If I see the LOD bar Open line has broken, I then stop trying to get short, or if I am short, I use them as a stop loss. Reverse this for HOD bar/ open line level. Also, if I want to get long, I wait for the LOD open line to break, then come back to it and retest it for a potential long entry. Reverse for HOD open line break, short entry. I do not follow this mechanically and dont suggest anyone should, I look to these levels to see how prices are acting first, watching order flow ,also looking to the bigger picture market structure.
Comment
-
irSessionSupportAndResistance indicator [v2]
Okay, here you go, an updated Zip file is attached;
Resistance levels [red lines] are drawn on "Up close bars",
Support levels [blue lines] are drawn on "Down close bars".
You can still toggle to "Keep Broken Session Rays" True/False
You still have the option to print to the "Output Window" if you want to.
Trade Well,
TGN
Originally posted by ea0680 View PostThat is correct,most times it will be the Low or High of day bar, but a bar that has already reversed off the high or low closing beyond its open can and does happen, and I just then look at the bar in which it met the filter.
I use these levels several ways. For example, If I see the LOD bar Open line has broken, I then stop trying to get short, or if I am short, I use them as a stop loss. Reverse this for HOD bar/ open line level. Also, if I want to get long, I wait for the LOD open line to break, then come back to it and retest it for a potential long entry. Reverse for HOD open line break, short entry. I do not follow this mechanically and dont suggest anyone should, I look to these levels to see how prices are acting first, watching order flow ,also looking to the bigger picture market structure.
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by AaronKoRn, Today, 09:49 PM
|
0 responses
6 views
0 likes
|
Last Post
by AaronKoRn
Today, 09:49 PM
|
||
Started by carnitron, Today, 08:42 PM
|
0 responses
8 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
9 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,975 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
Comment