Indicator forcing NinjaTrader to close / shutdown - NinjaTrader Programming | futures io social day trading
futures io futures trading


Indicator forcing NinjaTrader to close / shutdown
Updated: Views / Replies:2,814 / 14
Created: by dsraider Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 2  
 
Thread Tools Search this Thread
 

Indicator forcing NinjaTrader to close / shutdown

  #1 (permalink)
Trading for Fun
New York, NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES
 
Posts: 142 since Dec 2009
Thanks: 41 given, 83 received

Indicator forcing NinjaTrader to close / shutdown

Hey All,

I took NT's OBV indicator and added an SMA of the OBV itself, as I've seen in Quotetracker. All was fine and dandy until I added code to have the cross of those two lines paint the candles above. Now, no matter what I do, it shuts NT down when I try and apply it to a chart. I've done this to other indicators so I can't figure out why this one hates me. IF I can get this fixed, I plan on posting it here (along with several others I'm developing) as I like it for a long term trend indicator.

If anyone can tell me what's causing this close to happen, I would greatly appreciate it.

Dave

Attached Files
Register to download File Type: zip RaiderOBV.zip (3.9 KB, 23 views)
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Near the BEuTiFULL Horse Shoe
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: MBTrading Dukascopy ZenFire
Favorite Futures: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 176 received


Dave,

Does it do more than just shut NT down? (windows still working?)

What version NT ??

I am going to image my drive before I try this ...

TJ

Reply With Quote
The following user says Thank You to Trader.Jon for this post:
 
  #4 (permalink)
Trading for Fun
New York, NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES
 
Posts: 142 since Dec 2009
Thanks: 41 given, 83 received

Hey Jon,

I'm using 6.5 and it just shuts down Ninja. Everything else still works fine. My other candlestick-bar-painting indicators work, which just makes this even stranger. Good luck, sir. I hope you can figure it out. Again, it works fine if the painting code is commented out but won't work with it in there, even if you choose NOT to paint the bars in the options window.

Thanks,
Dave

Reply With Quote
 
  #5 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 786 received

Maybe try adding a bunch of try/catch blocks around your if/else statements to try and isolate which one(s) is the source of the problem? If its trashing Ninja there is an unhandled exception somewhere.

Reply With Quote
The following user says Thank You to MXASJ for this post:
 
  #6 (permalink)
Trading for Fun
New York, NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES
 
Posts: 142 since Dec 2009
Thanks: 41 given, 83 received

MXASJ,

Thanks for the tip. I think the issue has to do with how I'm calling the SMA line:

if(OBV[0] > SMA(Close, Period)[0]) works but obviously isn't correct. Looks like I just don't know how to call my own indicator .

Reply With Quote
 
  #7 (permalink)
 Vendor: www.traderwerks.com 
Taipei Taiwan
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Optimus
Favorite Futures: TW
 
Posts: 693 since Jun 2009
Thanks: 440 given, 440 received


Quoting 
if(RaiderOBV(Close, Period)[0] > SMA(Close, Period)[0])

Just glancing at the code, inside RaiderOBV calling this is not a good idea.


See Recursion


Reply With Quote
The following user says Thank You to traderwerks for this post:
 
  #8 (permalink)
Elite Member
Near the BEuTiFULL Horse Shoe
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: MBTrading Dukascopy ZenFire
Favorite Futures: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 176 received

Dave,

Havent looked at yours yet: I looked at the NT OBV in the Srategy Wizard ouputted code, and this is what I see:
// Condition set 1
if ( OBV()[0] < Close[0])

Looks like there are brackets added after the OBV ??!! .. When I use the NT's OBV it has values plotted in panel 2 that dont ever do a crossup/down as the values are MANY multiples of the chart in panel 1

Jon

ps: traderwerks has a good catch! AND I am no programmer, but I dont think you can make your own dataseries have the same name as an indicator that already exists ..


Last edited by Trader.Jon; July 25th, 2010 at 10:53 PM. Reason: looked at the code
Reply With Quote
The following 2 users say Thank You to Trader.Jon for this post:
 
  #9 (permalink)
Trading for Fun
New York, NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES
 
Posts: 142 since Dec 2009
Thanks: 41 given, 83 received

You. Guys. Rock.

A night's sleep helped me digest everything you were saying. One or too minor touches, and I'll post.

Thanks again,
Dave

Attached Thumbnails
Indicator forcing NinjaTrader to close / shutdown-obv.jpg  
Reply With Quote
 
  #10 (permalink)
Elite Member
Near the BEuTiFULL Horse Shoe
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: MBTrading Dukascopy ZenFire
Favorite Futures: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 176 received


Dave,

Looks very nice ... I love the way it paints, and I dont normally go in for bar painting options

Jon

Reply With Quote

Reply



futures io > > > > > Indicator forcing NinjaTrader to close / shutdown

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing display of an indicator in a strategy as Type=logarithmic nanobiotech NinjaTrader Programming 5 January 8th, 2013 03:08 PM
HFT Forcing Traders to Become More Sophisticated Big Mike Traders Hideout 5 August 14th, 2012 02:16 PM
THE GLOBAL RISK APPETITE INDICATOR – CLOSE TO PANIC LEVELS kbit News and Current Events 0 June 3rd, 2011 07:03 PM
Volitility indicator question - Open - Open / open - close / close to open andresimon NinjaTrader 2 September 27th, 2010 01:33 AM
Close[0] not waiting until bar close dsraider NinjaTrader Programming 4 February 11th, 2010 06:49 PM


All times are GMT -4. The time now is 09:25 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-14 in 0.13 seconds with 20 queries on phoenix via your IP 54.82.56.95