Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 12-09-2011, 12:53 PM   #1

Join Date: Feb 2007
Location: Mountain Lakes
Posts: 4
Ignore this user

Thanks: 56
Thanked 2 Times in 2 Posts

Price Oscillator Bands for Ninjatrader (works on Some Charts, but Not on Others)

I recently added new plots to an older pre-existing ninjascript that can be found here in post #3 (ElliotOscillator1.2.zip) :
http://www.ninjatrader.com/support/f...ead.php?t=2681

My modified version of the above indicator is attached here in this post for reference purposes. In the attached picture, one can identify the two new plots which I added by looking for the yellow colored lines in the subgraph.

For testing purposes, I added an input which allows the user to enable or disable the new plots which I added.

When the input called "OSC_strengthband_sho w" is set to false, the code always works and is identical to the older original version from the link above.

When the input called "OSC_strengthband_sho w" is set to true, I have observed that the indicator only works on certain combinations of instrument, resolution, and session but not on others. I suspect that the code is throwing an exception due to a null value or a NaN or something similar which is being generated within the code changes which I added.

My lack of deep experience with ninjascript programming should be noted. If anyone here can offer any ideas on how to fix the attached code, it would be greatly appreciated.
Attached Thumbnails
Price Oscillator Bands for Ninjatrader (works on Some Charts, but Not on Others)-1111207a_test_01.jpg  
Attached Files
File Type: zip ElliotOscBands.zip (3.1 KB, 9 views)
kh_model is offline  
Reply With Quote
The Following User Says Thank You to kh_model For This Useful Post:
NSL (01-08-2012)

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jeff Augen's StdDev Price Change to NinjaTrader diogomattoso Coding Forum 0 03-22-2011 02:26 AM
Best Price Oscillator smuhr Swing Trading and Position Trading 23 01-12-2011 06:37 PM
EW Oscillator Breaking Bands aaa Trading Indicators 6 01-09-2010 04:18 AM
What leverage is??? How it works?? nishant Forex Trading Laboratory 8 06-15-2009 01:25 PM
Charts with Volume by Price bertg Beginners Forum 28 03-31-2009 09:58 PM

All times are GMT -4. The time now is 11:10 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.