![]() |
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
|
|||||||
| NinjaScript File Sharing Discussion Discussion for shared NinjaScript files. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Sep 2007
Posts: 201
Thanks: 0
Thanked 0 times in 0 posts
|
A double EMA which changes color and displays an arraw when its trend changes. Thanks to Josh for showing how to draw a multi colored line.
Edit:v1.1 Arrows are now optional, and displacement for the arrows can be specified Edit:v1.2 Arrows are drawn on the chart, dragging is impossible (thanks to Gumphie's ModHeikenAshi) Edit:v1.3 adjusted for intra bar calculation Edit:v1.4 changed to MA on MA
Last edited by Rollins; 02-20-2008 at 05:49 AM.
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Oct 2007
Location: Southy Florida
Posts: 263
Thanks: 16
Thanked 1 time in 1 post
|
Rollins......
Could you please elaborate on the Double EMA? How can you apply this to a strategy? Thanks! |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Sep 2007
Posts: 201
Thanks: 0
Thanked 0 times in 0 posts
|
Hey edgeliner, I'm currently not trading indicators but the person I copied the double EMA from used it to determine trend direction + momentum.
Problem might be that you could miss most of the move buy tops/sell bottoms, but depends mostly on your trading style. This indicator is for charts because it uses 3 different plots, you can easily make your own double EMA for a strategy or use Ray's |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Oct 2007
Location: Southy Florida
Posts: 263
Thanks: 16
Thanked 1 time in 1 post
|
Thanks Rollins!
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2008
Posts: 130
Thanks: 0
Thanked 0 times in 0 posts
|
anyone have a regular EMA that will color itself depending on whether it is going up or down?
|
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
You can accomplish that by following this reference sample: http://www.ninjatrader-support.com/v...ead.php?t=3227
Change the SMA to EMA.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Member
Join Date: Jan 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
Hey Rollins,
Very nice indicator - I like it a lot. Is there a way to make the period "user adjustable"? Thanks, |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Sep 2007
Posts: 201
Thanks: 0
Thanked 0 times in 0 posts
|
Paul,
I haven't looked at the old version in a long time, but imo setting the period has always been supported, so I'm not certain what kind of feature you are looking for. The latest version which I made a couple of months ago, got several improvements. However I'm not in a hurry to make any further updates, since I've got plenty of other more urgent/rewarding things to do. Cheers |
|
|
|
|
|
#9 |
|
Member
Join Date: Jan 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
Hi Rollins,
Sorry for not being clearer - I can input a different period as long as the number is over it's default which is 24, but it will not accept any number below 24 (when I try - it resets back to 24). I'm presently using NT version 6.5 but the same thing happens even with NT version 6.0. You say that it should support any input and you're probably right (since you're the one that made it). It is probably a glitch on my end. I appreciate you reading and replying to my post. Good trading. |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Sep 2007
Posts: 201
Thanks: 0
Thanked 0 times in 0 posts
|
Paul,
I've tested the 1.4 version which I uploaded and it allows the kind of settings you are looking for. As for 1.0, it could be that there was a bug in the code, however no one complained about that before. Cheers |
|
|
|
|
|
#11 | |
|
Member
Join Date: May 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
Code:
[Description("")]
[Category("Parameters")]
public int Period
{
get { return period; }
set { period = Math.Max(24, value); }
}
#endregion
|
|
|
|
|
|
|
#12 |
|
Member
Join Date: Jan 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Rollins.
Thrunner - thanks for the suggestion. |
|
|
|
|
|
#13 |
|
Member
Join Date: Jan 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
WOW Rollins! You outdid yourself!
This one is much better than the old one. MANY THANKS! And happy trading! |
|
|
|
|
|
#14 |
|
Member
Join Date: May 2008
Posts: 39
Thanks: 0
Thanked 0 times in 0 posts
|
and get the chart prices compressed when setting the indicator to false on calculate on bar close ??
|
|
|
|
|
|
#15 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
I am not using this indicator so I do not know, but as a guess try checking your AutoScale settings? If not then it could be a bug in the code.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Colored Support and Resistance Zones | CarlosAlberto | Indicator Development | 20 | 01-28-2009 07:33 AM |
| Indicator: Multi-Colored Plots | NinjaTrader_Josh | Reference Samples | 0 | 09-06-2007 01:28 PM |
| Multi Colored plots. | higler | General Programming | 6 | 05-10-2007 12:05 PM |
| Double moving average ,double time frame | Mauro60 | Indicator Development | 3 | 01-23-2007 02:11 AM |
| Multi strategies, multi superDOM windows | N40K | Miscellaneous Support | 1 | 12-20-2004 01:51 AM |