NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 11-26-2011, 02:55 PM   #1
qfweiwei
Member
 
Join Date: May 2010
Posts: 30
Thanks: 1
Thanked 10 times in 3 posts
Default A Value Area/Floor/Camarilla indicator plotting by intraday/weekly/monthly sessions

The NinjaTrader built-in pivot point indicator only plots pivots of current session depending on daily, weekly, or monthly data, which is far less than enough. I developed a customized Floor/Camarilla/VA indicator plotting by intraday/weekly/monthly session as attached.

The attached indicator, SessionPivots, which is customized upon NinjaTrader built-in Pivots indicator, plots popular pivots such as Floor pivots, Camarilla pivots, and Value Area pivots session by session.The session can be intraday, weekly, and monthly. Following are some additional features on top of built-in Pivots indicator.

1.Popular pivots of Camarilla and Value Area are supported.Value Area is calculated following the way introduced in Mind over Markets-Power Trading With Market Generated Information.
2.Even for Floor pivots, I added 4 more levels. They are R4, S4, TC(top central pivot), and BC(bottom central pivot).
3.Developing pivots are supported. However, for best performance, they will be only calculated in the last session when IsDPShowing is set to TRUE.
4.Various set of pivots can be shown depending on PivotType, which can be set to Floor, ValueArea, Camarilla, FloorAndVA, CamarillaAndVA, and All.
5.Three profile types, VOC/TPO/VWTPO, are supported for Value Are calculation by setting ProfileType.
6.This indicator is developed for NinjaTrader 7.x.

Attached image is a monthly AMD chart, where you can see Floor and VA pivots are plotted on monthly basis. Showing pivots session by session will be very helpful to analyze relationship and trend of pivots. This could be a big advantage when you make trading decision based on these popular pivots.
Attached Images
File Type: jpg MonthlyAMD.jpg (175.5 KB, 380 views)
Attached Files
File Type: cs SessionPivots.cs (56.0 KB, 344 views)
Last edited by qfweiwei; 11-26-2011 at 06:18 PM.
qfweiwei is offline  
Reply With Quote
The following 8 users say thank you to qfweiwei for this post:
Old 11-26-2011, 03:19 PM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

qfweiwei,

Thanks a bunch for helping to make our developer community one of the best in the business!

You may also want to post this to our downloads section.
NinjaTrader_AdamP is offline  
Reply With Quote
Old 12-09-2011, 02:39 PM   #3
drmax
Junior Member
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default

Is the .cs file the indicator, please?

I thought we could only load zip files into NT under the utilities =>import. Am I wrong about that?

Indicator looks great, looking forward to using it.
Last edited by drmax; 12-09-2011 at 02:41 PM.
drmax is offline  
Reply With Quote
Old 12-09-2011, 02:41 PM   #4
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

drmax,

I am happy to assist you.

This is located in Post number 1 at the bottom of their post in the "Attached Files" box.
NinjaTrader_AdamP is offline  
Reply With Quote
Old 12-09-2011, 11:39 PM   #5
qfweiwei
Member
 
Join Date: May 2010
Posts: 30
Thanks: 1
Thanked 10 times in 3 posts
Default

Hi 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
qfweiwei is offline  
Reply With Quote
Old 12-13-2011, 04:44 PM   #6
kennyz55
Junior Member
 
Join Date: Dec 2011
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default Compiling

Newbie question. I put sessionpivots.cs in the right folder. How do I compile?
Thanks,
Kenny
kennyz55 is offline  
Reply With Quote
Old 12-13-2011, 10:20 PM   #7
qfweiwei
Member
 
Join Date: May 2010
Posts: 30
Thanks: 1
Thanked 10 times in 3 posts
Default

Follow the first image to open any existing strategy.
Then, right click any place in the strategy Editor to open menu shown as the second image.
Compile!

weiwei
Attached Images
File Type: jpg CompileStep1.jpg (72.8 KB, 108 views)
File Type: jpg CompileStep2.jpg (34.3 KB, 100 views)
Last edited by qfweiwei; 12-13-2011 at 10:23 PM.
qfweiwei is offline  
Reply With Quote
The following user says thank you to qfweiwei for this post:
Old 06-13-2013, 09:40 PM   #8
makefortune
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default Pivots shown in this way- camarilla and DWM

Quote:
Originally Posted by qfweiwei View Post
Hi 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
I am attaching screen shots of DWM pivots and camarilla pivots in MT4
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
Attached Images
File Type: png Camarilla_pivot_example.png (29.9 KB, 3 views)
File Type: png DWM_pivots.png (20.9 KB, 4 views)
makefortune is offline  
Reply With Quote
Old 06-14-2013, 01:24 AM   #9
stocktraderbmp
Senior Member
 
Join Date: Jun 2011
Location: Ireland
Posts: 185
Thanks: 33
Thanked 20 times in 19 posts
Default

Not sure what your question is but if you would like some alternatives to the standard indicators, have you tried looking here?

https://www.bigmiketrading.com/downl...-7/indicators/

Search for "sessionpivotsv42"

Good luck.
stocktraderbmp is offline  
Reply With Quote
Old 04-05-2012, 11:09 AM   #10
hughred22
Junior Member
 
Join Date: Apr 2012
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default

First, thank you so much to develop this session pivot. This is just what I am looking for. I am a NT noob and try to use this session pivot. But I found some problems. Hope the developer can take the time to fix it. It will be greatly appreciated

Here is what I found:
VAL is plotted different and I believe it is wrong.
I use dVauleArea to compare. First, in the Session Pivot setting, I use intraday, TPO. The POC and VAH are the same as the dVauleArea POC & VAH. But the VAL is different. That is why I think the VAL might be plotted wrong.

Again, I am a noob and I might be wrong. I love this indicator and really want to use it if the above problem can be fixed.
hughred22 is offline  
Reply With Quote
Old 04-05-2012, 12:35 PM   #11
stocktraderbmp
Senior Member
 
Join Date: Jun 2011
Location: Ireland
Posts: 185
Thanks: 33
Thanked 20 times in 19 posts
Default

Quote:
Originally Posted by hughred22 View Post
First, thank you so much to develop this session pivot. This is just what I am looking for. I am a NT noob and try to use this session pivot. But I found some problems. Hope the developer can take the time to fix it. It will be greatly appreciated

Here is what I found:
VAL is plotted different and I believe it is wrong.
I use dVauleArea to compare. First, in the Session Pivot setting, I use intraday, TPO. The POC and VAH are the same as the dVauleArea POC & VAH. But the VAL is different. That is why I think the VAL might be plotted wrong.

Again, I am a noob and I might be wrong. I love this indicator and really want to use it if the above problem can be fixed.
Please follow this link for a working set of full featured pivots. No point re-inventing the wheel is there?

http://www.ninjatrader.com/support/f...catid=4&id=343
stocktraderbmp is offline  
Reply With Quote
Old 04-09-2012, 08:55 PM   #12
hughred22
Junior Member
 
Join Date: Apr 2012
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for the response.
But I prefer this version of pivot rather than the link you just post. This session pivots allow me to see Money Zone, Floor and Camarilla at the same chart.

Here is my question to the developer:
If I trade ES, what session template should I use to make sure the pivot line is correctly plot?

Thanks!
hughred22 is offline  
Reply With Quote
Old 07-14-2012, 03:51 AM   #13
Saxo_
Junior Member
 
Join Date: Jun 2012
Posts: 21
Thanks: 4
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by qfweiwei View Post
The NinjaTrader built-in pivot point indicator only plots pivots of current session depending on daily, weekly, or monthly data, which is far less than enough. I developed a customized Floor/Camarilla/VA indicator plotting by intraday/weekly/monthly session as attached.

The attached indicator, SessionPivots, which is customized upon NinjaTrader built-in Pivots indicator, plots popular pivots such as Floor pivots, Camarilla pivots, and Value Area pivots session by session.The session can be intraday, weekly, and monthly. Following are some additional features on top of built-in Pivots indicator.

1.Popular pivots of Camarilla and Value Area are supported.Value Area is calculated following the way introduced in Mind over Markets-Power Trading With Market Generated Information.
2.Even for Floor pivots, I added 4 more levels. They are R4, S4, TC(top central pivot), and BC(bottom central pivot).
3.Developing pivots are supported. However, for best performance, they will be only calculated in the last session when IsDPShowing is set to TRUE.
4.Various set of pivots can be shown depending on PivotType, which can be set to Floor, ValueArea, Camarilla, FloorAndVA, CamarillaAndVA, and All.
5.Three profile types, VOC/TPO/VWTPO, are supported for Value Are calculation by setting ProfileType.
6.This indicator is developed for NinjaTrader 7.x.

Attached image is a monthly AMD chart, where you can see Floor and VA pivots are plotted on monthly basis. Showing pivots session by session will be very helpful to analyze relationship and trend of pivots. This could be a big advantage when you make trading decision based on these popular pivots.
qfweiwei, 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_
Saxo_ is offline  
Reply With Quote
Old 07-14-2012, 08:13 AM   #14
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,356
Thanks: 24
Thanked 1,304 times in 1,067 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by Saxo_ View Post
qfweiwei, 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_
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?
koganam is offline  
Reply With Quote
Old 07-14-2012, 12:48 PM   #15
Saxo_
Junior Member
 
Join Date: Jun 2012
Posts: 21
Thanks: 4
Thanked 2 times in 2 posts
Default

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,
Saxo
Attached Files
File Type: zip MySessionPivots.zip (7.2 KB, 74 views)
Saxo_ is offline  
Reply With Quote
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
Seperating daily/weekly/monthly time-frame aediaz1 Indicator Development 3 02-02-2011 08:10 AM
Yearly, Monthly, Weekly OHL... Sleeping Troll Indicator Development 3 03-15-2010 12:35 PM
Monthly/Weekly Profit Graph Bug Anagoge Strategy Analyzer 2 10-29-2008 07:48 AM
Can't veiw my daily, weekly and monthly charts....HELP... amaruenterprise Charting 6 05-28-2008 11:22 PM
Weekly and Monthly Pivot points bmaltz Indicator Development 9 06-09-2007 06:24 AM


All times are GMT -6. The time now is 12:16 PM.