NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 03-25-2010, 11:25 AM   #1
rtj4201
Senior Member
 
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
Default QQE Indicator

QQE is posted in the Indicator download section.

Can anyone add an UP and DOWN arrow on Panel 1 for an RSI line cross above or below the 50 level in Panel 2?
rtj4201 is offline  
Reply With Quote
Old 03-25-2010, 11:45 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello rtj4201,

Here's a snippet to get you started on this:

Code:
 
if (CrossAbove(RSI(14, 3), 50, 1))
DrawArrowUp("ArrowUp" + CurrentBar, true, 0, Low[0] - TickSize, Color.Red);
That line will draw an up arrow if, within the last bar, the RSI(14,3) Crosses Above 50.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 03-25-2010, 01:44 PM   #3
rtj4201
Senior Member
 
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
Default

Thx for getting me started.

One more question:

QQE allows for input on the RSI period and ATR period. How would I do that without having to go back and change the code every time I redid
the periods?
rtj4201 is offline  
Reply With Quote
Old 03-25-2010, 02:06 PM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

You will need to add code in two places for each input to have public properties you can adjust.

In the "Variables" region (near the top):
Code:
 
private int rsi_Period = 14; //Default setting for rsi_Period
In the "Properties" region (near the bottom):

Code:
 
[Description("")]
[Category("Parameters")]
public int RSI_Period
{
get { return rsi_Period; }
set { rsi_Period = Math.Max(1, value); }
}
You need that entire block above for each input. Note that capitalization is particular. It may be easier to create these inputs using the New Indicator wizard and then copying / pasting into the indicator you would like to change.

Once you have created these public inputs, place "RSI_Period" in place of the number 14. Using the snippet from earlier, it would be:
Code:
 
if (CrossAbove(RSI(RSI_Period, 3), 50, 1))
DrawArrowUp("ArrowUp" + CurrentBar, true, 0, Low[0] - TickSize, Color.Red);
NinjaTrader_RyanM is offline  
Reply With Quote
Old 07-11-2010, 08:26 PM   #5
Wi!s0n
Member
 
Join Date: Mar 2008
Posts: 33
Thanks: 2
Thanked 2 times in 2 posts
Default QQE with 2 ATR plots

How would I add a second ATR value of the RSI and plot it? I sincerely apologize for my obvious lack of programming ability .. working on it. Thanks ever so much.
Wi!s0n is offline  
Reply With Quote
Old 07-12-2010, 08:28 AM   #6
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Wi!s0n,

You can do this in NinjaTrader 7 without custom programming.

When you apply in indicator to a chart you can choose the input series. Simply apply ATR and then specify the input series as RSI.

NinjaTrader 7 can be downloaded here.

If you would like to custom program this in NT6.5, see the following help guide tutorial for creating indicator on indicator.
http://www.ninjatrader-support.com/H...verview22.html
NinjaTrader_RyanM is offline  
Reply With Quote
Old 07-12-2010, 09:03 AM   #7
Wi!s0n
Member
 
Join Date: Mar 2008
Posts: 33
Thanks: 2
Thanked 2 times in 2 posts
Default

Thanks Ryan, however, another version of the QQE had 2 trailing stops of the EMA of the RSI, each a different Fib multiple of the ATR. I was hoping to get directions on how to amend the script to include a second variable/plot for another trailing stop. Instead of just the 4.236 ATR, add a 2.618 ATR of the EMA of the RSI. The parameters would then be an RSI period and 2 smoothing factors, one for each of the ATR Fib multiples.
Wi!s0n is offline  
Reply With Quote
Old 07-12-2010, 09:18 AM   #8
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Wi!son,

You can use the principles from the tutorial to create indicator on indicators. You can also use the Strategy Wizard to create in a point and click interface to help get the right syntax for this.

If you'd like these changes done for you, can consider hiring a 3rd party NinjaScript consultant.

If you'd like some help constructing this, share your progress with us and let us know what it's doing.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 06-12-2012, 08:56 AM   #9
kalwinder
Junior Member
 
Join Date: Feb 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

I had QQE indicator for NT 7, but my system crashed n i lost it. i went to indicator forum to download it but it is not there anymore. I m not a programmer n i dont know how to build an indicator. But i depend on this indicator so much. So my humble request to all the programmers if someone can build this n put this in download forum for me. i ll be hugely thankful to u.
kalwinder is offline  
Reply With Quote
Old 06-12-2012, 02:17 PM   #10
Prov1322
Member
 
Join Date: Feb 2011
Posts: 61
Thanks: 45
Thanked 27 times in 8 posts
Default Qqe

Hope this helps...

QQE.zip
Prov1322 is offline  
Reply With Quote
The following 3 users say thank you to Prov1322 for this post:
Old 06-13-2012, 09:01 AM   #11
kalwinder
Junior Member
 
Join Date: Feb 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks alot!!! this is what i was looking for. again thanks.. you r awesome.
kalwinder 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
QQE Indicator: Color Background rtj4201 Indicator Development 1 03-12-2010 01:30 PM
QQE MT4 vs Ninja 123r34 Indicator Development 10 10-11-2009 11:34 AM
QQE indicator blazer NinjaScript File Sharing Discussion 24 10-07-2009 09:32 AM
Help adding signal to QQE bear296 NinjaScript File Sharing Discussion 2 01-19-2009 08:24 AM
Qqe Indicator blazer Indicator Development 1 11-01-2008 09:48 AM


All times are GMT -6. The time now is 05:25 PM.