Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
A Floor/Camarilla/VA indicator plotting by intraday/weekly/monthly sessions
Collapse
X
-
The SessionPivotsV42 can also be download from this forum.
Pivots can be displayed as
- daily, weekly, monthly pivots
- ETH (extended trading hour) pivots (requires ETH session template)
- RTH (regular trading hour) pivots (requires RTH session template or ETH segmented session template)
- pivots calculated from daily data (depends on your data supplier)
- for futures with the options to calculate them from settlement price (requires daily data)
- as floor pivots
- as wide floor pivots (different formula for R3, R4, S3 and S4)
- as Camarilla pivots
- as Fibonacci pivots
- as Jackson Zones
The indicator further allows to display the pivot range (see Mark Fisher's Logical Trader). You can select to display or not to display the pivots for the prior days.
This indicator is much more sophisticated than any MetaTrader pivots indicator that is available. If you need any recommendations on the use of session templates, do not hesitate to come back. As a rule the session template for each instrument should reflect the contractual trading times and be established in the time zone of the exchange. You should then save the session template under instrument settings and only open charts with <instrument settings>. This is a general rule, which is independent from any indicators.
The sample chart below shows original daily and weekly floor pivots for CL 07-13 and the pivot ranges
-> chart session template is ETH (6:00 PM EST - 9:00 AM EST/ 9:00 AM EST - 2:30 PM EST / 2:30 PM EST - 5:15 PM EST) in line with trading hours of NYMEX energy futures
-> indicator setting is RTH
-> the settlement price (taken from daily data) is used instead of the close
-> daily and monthly pivot range are based on RTH data
-> yesterday's regular high and low, prior week's high are shown
-> the pivots for yesterday have been unselected
*) CME does not publish a last traded price, but the settlement price which is the volume weighted average price determined during the daily settlement period prior to 2:30 PM EST)Last edited by Harry; 06-14-2013, 09:24 AM.
-
Pivots shown in this way- camarilla and DWM
I am attaching screen shots of DWM pivots and camarilla pivots in MT4Originally posted by qfweiwei View PostHi drmax,
If you are running Windows 7, put the attached C# file into following default folder:
C:\Users\YOUR USERNAME\Documents\NinjaTrader 7\bin\Custom\Indicator
Then compile in NinjaTrader as usually you do.
Please let me know if you need more help.
Thanks,
weiwei
Can you please modify your pivots in the manner shown.
I find it too distracting to show pivots of the past data and the two that I have attached has worked well for me. Now I am trying Ninjatrader and would hope someone can do the same. If there exist such indicators already, please attach to the reply.
Appreciate very much.
Manfred
Leave a comment:
-
Switched to "CalcfromIntradaydate" and that seems to have stabilized it
Leave a comment:
-
Camarilla Pivots / Session Pivots
I guess I have the default indicator being there seems to be more then one version Here.
A Simple Refresh of the chart changes all the values. How can you trust an indicator when that happens.
Happens on Time charts or Volume charts.
I have a custom Session from 6:30 AM to 6:30 AM PT.
Had high hopes for this indicator, not so sure now ?
Leave a comment:
-
Oops. You are quite right that you need the parameter list. I have corrected the original post to show that.Originally posted by Saxo_ View PostWhen I write:
myhist = MySessionPivots.HIST[0];
I get upon compile:
'NinjaTrader.Indicator.Indicator.MySessionPivots(b ool, NinjaTrader.Data.PivotRange, NinjaTrader.Data.HLCCalculationMode, double, double, double)' is a 'method', which is not valid in the given context
When I write:
myhist = MySessionPivots(false,PivotRange.Daily, HLCCalculationMode.DailyBars ,0,0,0).HIST[0];
Print(myhist);
- I always get '0' for HIST[0] (although I can see that it is calculated in the MySessionPivots indicator) and I don't like that I have to hard code the arguments to MySessionPivots, because I would want the MyPrivotRangeHistogram to use whatever parameters I use for MySessionPivots. Furthermore it seems that I repeat the calculation (by calling the method) instead of reusing HIST-series already build up in MySessionPivots. I must be doing something wrong ...
You will have to jump through quite a few hoops if you want to read the parameters of one indicator and pass those to another one. Perhaps the simplest way is to use static variables to hold the values you want to reference, and then have all the indicators read and use those values. Caution: Always, always be leery of using static variables. They can really bite you in the rear end.Last edited by koganam; 07-22-2012, 09:41 PM.
Leave a comment:
-
When I write:
myhist = MySessionPivots.HIST[0];
I get upon compile:
'NinjaTrader.Indicator.Indicator.MySessionPivots(b ool, NinjaTrader.Data.PivotRange, NinjaTrader.Data.HLCCalculationMode, double, double, double)' is a 'method', which is not valid in the given context
When I write:
myhist = MySessionPivots(false,PivotRange.Daily, HLCCalculationMode.DailyBars ,0,0,0).HIST[0];
Print(myhist);
- I always get '0' for HIST[0] (although I can see that it is calculated in the MySessionPivots indicator) and I don't like that I have to hard code the arguments to MySessionPivots, because I would want the MyPrivotRangeHistogram to use whatever parameters I use for MySessionPivots. Furthermore it seems that I repeat the calculation (by calling the method) instead of reusing HIST-series already build up in MySessionPivots. I must be doing something wrong ...Last edited by Saxo_; 07-22-2012, 01:01 PM.
Leave a comment:
-
The purpose of exposing variables using public Properties, is so that those values can be accessed by other classes. All Plots, just by the way that we MUST code them in NinjaScript, are publicly accessible. You just have to call them by the correct syntax.Originally posted by Saxo_ View PostOK - so you can have an indicator that plots in the price chart OR you can have an indicator that plots in an indicator panel - but you can't have an indicator that plots in the price chart and in indicator panel at the same time. This means that I would have to define HIST and RELS as separate indicators and load them like the VOL or RSI indicators. But this still leaves me with the question, how do I pass on HIST and RELS from MySessionPivots to the separate indicators, to have the series plotted there ... unless I have to duplicate the code across all 3 indicators and only plot the specific serie(s) in each indicator (which I would really like to avoid). Can I share data series across indicators or do I have to duplicate code?
If you have indicatorA that exposes a Plot called HIST, then if you want to reference HIST from indicatorB, the syntax will be:
Code:private double varOfInterest;
where ndx is the index that you want to query (for CurrentBar, this is 0).Code:varOfInterest = indicatorA([]parameter_list).HIST[ndx];
Intellisense will help here, because as soon as you put that period behind the text "indicatorA", you will get a dropdown list of the entities that can follow.
ref: http://www.ninjatrader.com/support/h..._on_indica.htmLast edited by koganam; 07-22-2012, 09:29 PM. Reason: Corrected calling syntax to show parameter list required
Leave a comment:
-
OK - so you can have an indicator that plots in the price chart OR you can have an indicator that plots in an indicator panel - but you can't have an indicator that plots in the price chart and in indicator panel at the same time. This means that I would have to define HIST and RELS as separate indicators and load them like the VOL or RSI indicators. But this still leaves me with the question, how do I pass on HIST and RELS from MySessionPivots to the separate indicators, to have the series plotted there ... unless I have to duplicate the code across all 3 indicators and only plot the specific serie(s) in each indicator (which I would really like to avoid). Can I share data series across indicators or do I have to duplicate code?Originally posted by koganam View PostI must not have been clear. The only supported way to get an indicator's Plot into a panel is to load the indicator into that panel.
Furthermore, I'm trying to have the last e.g. R1-value appear in indicator column in a Market Analyzer grid. I can make a value appear - but it is not R1. If change the value to be display to R2 I get the same value - and is seems to the the latest price. What I'm I doing wrong here?
Finally, I just noticed this morning that the pivot points for the last 2 days (Friday and Thursday) in the chart are display identical (although the price chart looks okay) - no matter what instrument I load. This was not the case yesterday evening when the markets were still open. Can anybody verify/dismiss this?
Leave a comment:
-
I must not have been clear. The only supported way to get an indicator's Plot into a panel is to load the indicator into that panel.Originally posted by Saxo_ View PostOk - thanks for the explanation, koganam. I want RELS and HIST in separate indicator panels inside MySessionPivots-indicator - but I don't know how to make these indicator panels appear.
Leave a comment:
-
Ok - thanks for the explanation, koganam. I want RELS and HIST in separate indicator panels inside MySessionPivots-indicator - but I don't know how to make these indicator panels appear.Originally posted by koganam View PostYou can only Plot in the panel that an indicator occupies; you can Draw in either the price panel or the indicator panel. Your entities are Plots. If you want them in separate panels, you will have to load them in those panels.Last edited by Saxo_; 07-20-2012, 09:58 AM.
Leave a comment:
-
You can only Plot in the panel that an indicator occupies; you can Draw in either the price panel or the indicator panel. Your entities are Plots. If you want them in separate panels, you will have to load them in those panels.Originally posted by Saxo_ View PostHi,
I'm still stuck trying to plot the HIST- and the RELS-series in 2 separate panels beneath the price chart. Besides the panels not being drawn, I don't see how I can control what is drawn in which panel just by flipping the 'DrawOnPricePanel'-property (when doing the initialize and just before the draw takes place). Perhaps the solution would be to introduce HIST and RELS as seperate indicators that would then have to be fed with TC-, PP- and BC-series from the main indicator script (i.e. 'MySessionPivots')? But how to pass on series from one script to another (and make sure that it is only these 'sub' indicators that link to the main indicator) seems even more complicated. Any help will be appreciated.
Best regards,
Saxo
Leave a comment:
-
Hi,
I'm still stuck trying to plot the HIST- and the RELS-series in 2 separate panels beneath the price chart. Besides the panels not being drawn, I don't see how I can control what is drawn in which panel just by flipping the 'DrawOnPricePanel'-property (when doing the initialize and just before the draw takes place). Perhaps the solution would be to introduce HIST and RELS as seperate indicators that would then have to be fed with TC-, PP- and BC-series from the main indicator script (i.e. 'MySessionPivots')? But how to pass on series from one script to another (and make sure that it is only these 'sub' indicators that link to the main indicator) seems even more complicated. Any help will be appreciated.
Best regards,
Saxo
Leave a comment:
-
Thanks Koganam - any help will be appreciated
I have (hopefully) attached a modified version of qfweiwei's 'SessionPivots', that only contains Floor Pivots - which is what I focus on.
The 'Two-Day Pivot Relationship' I have tried to put into the HIST-serie, and the 'Pivot Range Histogram' I have put into the RELS-serie. Any ideas on how to make the RELS-serie appear more meaningful in the indicator panel (i.e. currently it only holds a number from 1 to 7) would be appreciated. Would it be possible to write a text per day e.g. 'Bullish' or 'Moderately Bullish' in the indicator panel?
Longterm I dream about being able to display weekly and monthly pivot points at the same time (qfweiwei's code supports showing weekly or monthly on the daily chart which is great - but not at the same time and not at the same time as the daily pivots) together with the daily pivot points and be able to filter them, so that I per time frame can decide to only focus on S1, PP and R2 when market is in an uptrend - and only focus on S2, PP and R1 when the market is a downtrend. This will allow me to check for confluence, where pivot points from different time frames identify the same levels. For me - at the current stage - this seems as a rather big and advanced development - so any hints would be appreciated. I have just recently discovered NinjaTrader and I'm truely impressed with all the possibilities it offers - but I have a long way before I will master it.
Best regards,
SaxoAttached Files
Leave a comment:
-
Maybe if you showed what you have written so far, we might be able to help correct it, or provide you pointers if you would rather wish to discover things for yourself?Originally posted by Saxo_ View Postqfweiwei, thank you very much for providing these indicators!
I have been reading Franklin O. Ochoa's "Secrets of a Pivot Boss" and I'm trying to plot the pivot range histogram ((TC - BC) / PP) x 100 below the price panel - but I haven't succeeded so far :-(
I have tried to set 'DrawOnPricePanel = false' after I have added the series I want to plot (in Initialize()) - but nothing happens. I also tried to change 'Overlay' to 'false' inside the script - no effect.
Furthermore I would like to introduce a second indicator panel, where I outline the two-day pivot range relationship (i.e. higher value=bullish (i.e. BC(0)>TC(1)); overlapping higher value=moderate bullish; lower value=bearish; overlapping lower value=moderately bearish; unchanged value=sideways/breakout; outside value=sideways, and inside value=breakout) - but I haven't quite figured out how to diplay this information in the panel. So the solution needs to be able to show and update 2 indicator panels below the main price panel.
Hope someone can help me with this newbie indicator panel problem.
Best regards,
Saxo_
Leave a comment:
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
59 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Leave a comment: