![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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);
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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 Code:
[Description("")]
[Category("Parameters")]
public int RSI_Period
{
get { return rsi_Period; }
set { rsi_Period = Math.Max(1, value); }
}
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);
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Mar 2008
Posts: 33
Thanks: 2
Thanked 2 times in 2 posts
|
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.
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Member
Join Date: Mar 2008
Posts: 33
Thanks: 2
Thanked 2 times in 2 posts
|
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.
|
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Feb 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#10 |
|
Member
Join Date: Feb 2011
Posts: 61
Thanks: 45
Thanked 27 times in 8 posts
|
|
|
|
|
|
The following 3 users say thank you to Prov1322 for this post: |
|
|
|
#11 |
|
Junior Member
Join Date: Feb 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks alot!!! this is what i was looking for. again thanks.. you r awesome.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |