NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 02-16-2008, 11:51 AM   #1
CS1LVA
Junior Member
 
Join Date: May 2007
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default MulticolorEMA indicator

I used 6.5 for a while and the multicolor indicator worked fine.
I downloaded 6.5009 and now when I try to bring up that indicator and a few others i set up they just show blank on the chart panel?
any suggestions, I removed reinstalled , re wrote indicator nothing works, but note the indicators that are built in to 6.5009 work

thanks
Carlos
CS1LVA is offline  
Reply With Quote
Old 02-16-2008, 12:42 PM   #2
thrunner
Member
 
Join Date: May 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

Check the control center, log (tab) and see if there are any errors (yellow lines). Is the new beta is picking up some array bound errors from the older indicators?
Last edited by thrunner; 02-17-2008 at 09:06 PM.
thrunner is offline  
Reply With Quote
Old 02-16-2008, 05:04 PM   #3
CS1LVA
Junior Member
 
Join Date: May 2007
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

checked the log it has a yellow line that says : Error on calling the 'OnBarUpdate' method for indicator 'EMA34Slope' on bar0: Slope() method 'startBarsAgo' parameter can not be less than EndBarsAgo Parameter.
this is how I have it that worked on the previous beta 6.5 :
Plot0.Set (Sloper(EMA(34),CurrentBar -1, CurrentBar));

it worked last time on 6.6.04
Thanks in advance
C
CS1LVA is offline  
Reply With Quote
Old 02-16-2008, 06:48 PM   #4
thrunner
Member
 
Join Date: May 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

http://www.ninjatrader-support.com/v...slope+function
Quote:
slope() function changed in 6.507
just a note to whoever is using slope, now it works with relative bar numbers... absolute bar numbers aren't necessary anymore. Nice change -(although not on the changelist)
I didn't look at the code but you could probably go from:
Plot0.Set (Slope(EMA(34),CurrentBar -1, CurrentBar)); ---->
Plot0.Set (Slope(EMA(34), 1, 0));
thrunner is offline  
Reply With Quote
Old 02-16-2008, 11:20 PM   #5
CS1LVA
Junior Member
 
Join Date: May 2007
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank You thrunner, it worked like a charm.

C
CS1LVA 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
Indicator: Removing and Custom Formatting an Indicator’s Chart Label NinjaTrader_Josh Reference Samples 0 12-30-2007 06:49 PM


All times are GMT -6. The time now is 06:37 AM.