PDA

View Full Version : MulticolorEMA indicator


CS1LVA
02-16-2008, 11:51 AM
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

thrunner
02-16-2008, 12:42 PM
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?

CS1LVA
02-16-2008, 05:04 PM
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

thrunner
02-16-2008, 06:48 PM
http://www.ninjatrader-support.com/vb/showthread.php?t=5175&highlight=slope+function
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));

CS1LVA
02-16-2008, 11:20 PM
Thank You thrunner, it worked like a charm.
:)
C