![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Market Analyzer Support for the NinjaTrader Market Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2010
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
morning all,
I am using the above indicator but am having a few problems getting the blue and red dots to appear in the MA. All I want it to is display a cell alert when the dot is red, and another when the dot is blue. I think it is something to do with the the "Plot", where it has squeeze and squeeze on, and setting the cell conditions accordingly. I have played about with it but can't get the dots on the chart to correspond to the cell alerts in the MA. I have attached a screen shot so you can see what I am on about. thanks in advance, David |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
|
David, we would unfortunately not know how the indicator you refer to would be created, but you cannot access the dots plotted on the chart directly in the MA. For this to work the indicator would need to expose a signal, so for example if this reads +1, you could go ahead and create a cell condition to flag a certain pattern was found. If the indicator would not offer this for access, it would need to be recoded to work as desired in your MA.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2007
Posts: 22
Thanks: 1
Thanked 0 times in 0 posts
|
Does anyone know of an example of the code that is described by Bertrand?
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
If needed you can contact one of our NinjaScript consultants to assist you with coding this.
NinjaScript Consultants: http://www.ninjatrader.com/partners#...pt-Consultants
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#5 | |
|
Senior Member
Join Date: Oct 2007
Posts: 1,829
Thanks: 12
Thanked 83 times in 67 posts
|
Quote:
the RSqueeze was originally coded for NinjaTrader 6.5. The actual source is here http://www.tradingstudies.com/Downloads/Squeeze.aspx The indicator comes with a collection of squeezes, BB Squeeze - a modified Bollinger Band squeeze PBFSqueeze - a MACD type oscillator based on Gaussian filters Countertrend - PBFSqueeze, which use a CCI for coloring the indicators bars As far as I understand you only wish to use the BBSqueeze. Then you should not use the RSqueeze for the following reasons -> The RSqueeze does not use genuine Keltner Channels but a modified Keltner version based on ATR, this modified version does not produce genuine squeeze dots -> The RSqueeze does not properly serialize the parameters, so you cannot access them via a strategy or another indicator. -> Only 10% of the code refers to the BBSqueeze, the remainder is needed for the two oscillators The BBSqueeze that comes with the RSqueeze is not the squeeze that should be used. The ATR uses Wilder's smoothing with a smoothing constant of 1/N as opposed to 2/(n+1) which is used for an EMA. The fact that the ATR is used instead of the range means that the period used for the smoothing is not appropriate and makes the RSqueeze in my opinion unusable as tool for a Bollinger Squeeze. If you want a genuine BBSqueeze, you would need to use the simple range instead of the average true range. The BBSqueeze is one of the simplest indicators to code for NinjaTrader. No need to use a tank, if a knife can do. The version I have coded is a simplified version, which only compares a multiple of the standard deviation to a multiple of the range, but does not take into account that classical Bollinger Bands calculate the SMA by using the close price, while the midband of the Keltner Channels is calculated from the typical price. The chart below shows genuine Bollinger Band and Keltner Channels. If have used the NinjaTrader default indicators, which are correctly implemented. The "Squeeze" is on, when the Bollinger Bands are inside the Keltner Channels. Please compare the dots produced by the two indicators, and you will immediately understand that the RSqueeze produces different dots. Please use the indicator attached instead. ![]() By the way, here is a little discussion on the RSqueeze ..... http://www.bigmiketrading.com/ninjat...eeze-work.html
Last edited by Harry; 08-16-2012 at 02:58 PM.
|
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: May 2007
Posts: 22
Thanks: 1
Thanked 0 times in 0 posts
|
Harry, thank you very much for the clarification on RSqueeze. I have downloaded your new Squeeze indicator and it plots fine.
In ref to MLTDINO’s question , I am able to get TrendStrength to print values in Market Analyzer, but not “SqueezeDots” i.e. is there a way for the Market Analyzer to indicate that a squeeze is on? Thanks again. |
|
|
|
|
|
#7 | |
|
Senior Member
Join Date: Oct 2007
Posts: 1,829
Thanks: 12
Thanked 83 times in 67 posts
|
Quote:
I have also modified the code to allow for a displacement of the indicator. I have updated the indicator file in post #5. Please let me know, whether this is what you needed.
Last edited by Harry; 08-16-2012 at 09:48 AM.
|
|
|
|
|
|
|
#8 |
|
Junior Member
Join Date: May 2007
Posts: 22
Thanks: 1
Thanked 0 times in 0 posts
|
Harry, thanks for the reply, my knowledge of C# is very limited. I am not clear on how BoolSeries true or false can be accessed to appear in Market Analyzer. i.e. do I have to add a statement somewhere ?
|
|
|
|
|
|
#9 | |
|
Senior Member
Join Date: Oct 2007
Posts: 1,829
Thanks: 12
Thanked 83 times in 67 posts
|
Quote:
I have now set an arbitrary value to the Squeeze Dots. If the squeeze is on the dots will have the value = 0. If the value is > 0 this means no squeeze. In the market analyzer you would have to check the squeeze dots for equality with 0. I have updated the indicator file in post #5. Please let me know, whether it works. |
|
|
|
|
|
The following user says thank you to Harry for this post: |
|
|
|
#10 |
|
Junior Member
Join Date: May 2007
Posts: 22
Thanks: 1
Thanked 0 times in 0 posts
|
Thanks Harry, that did it. Market Analyzer is reporting fine now =0,>0. Good luck in your trading, and thanks again for your patience and help.
|
|
|
|
|
|
#11 | |
|
Senior Member
Join Date: Nov 2008
Posts: 186
Thanks: 38
Thanked 32 times in 26 posts
|
Quote:
This will serve as a good starting point. Wish it was in the Shared file section so it would be easier to find. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| indicator in MA | astrolobe | Market Analyzer | 1 | 08-16-2011 02:06 AM |
| MA cross indicator | billr | Indicator Development | 5 | 07-03-2010 03:31 AM |
| RSqueeze and Strategy Wizard | 123r34 | Automated Trading | 0 | 06-10-2009 01:25 PM |
| need help with bbsqueeze indicator | iangohye | Indicator Development | 1 | 09-03-2008 08:36 AM |
| Indicator in MA and updates | svrz | Market Analyzer | 11 | 05-30-2008 09:58 PM |