Indicator forcing NinjaTrader to close / shutdown - futures io
futures io futures trading



Indicator forcing NinjaTrader to close / shutdown


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one dsraider with 8 posts (2 thanks)
    2. looks_two Trader.Jon with 3 posts (3 thanks)
    3. looks_3 max-td with 2 posts (0 thanks)
    4. looks_4 MXASJ with 1 posts (1 thanks)
      Best Posters
    1. looks_one Trader.Jon with 1 thanks per post
    2. looks_two MXASJ with 1 thanks per post
    3. looks_3 traderwerks with 1 thanks per post
    4. looks_4 dsraider with 0.3 thanks per post
    1. trending_up 4,572 views
    2. thumb_up 7 thanks given
    3. group 3 followers
    1. forum 14 posts
    2. attach_file 2 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

Indicator forcing NinjaTrader to close / shutdown

(login for full post details)
  #1 (permalink)
New York, NY
 
 
Posts: 142 since Dec 2009
Thanks: 41 given, 87 received

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, 26 views)
Reply With Quote

Can you help answer these questions
from other members on futures io?
ZigZag with Depth and Backstep
EasyLanguage Programming
Reading A set of Trading Signals
EasyLanguage Programming
Short Interest Ratio indicator?
ThinkOrSwim
EL/PL for FOPs?
EasyLanguage Programming
Neurological explanations for trading Success
Psychology and Money Management
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
124 thanks
Big Mike in Ecuador
61 thanks
Want your NinjaTrader indicator created, free?
28 thanks
If you needed one-on-one help with any trading issue, ho …
26 thanks
Selling Options on Futures?
21 thanks
 
(login for full post details)
  #3 (permalink)
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 183 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:
 
(login for full post details)
  #4 (permalink)
New York, NY
 
 
Posts: 142 since Dec 2009
Thanks: 41 given, 87 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
 
(login for full post details)
  #5 (permalink)
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 799 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:
 
(login for full post details)
  #6 (permalink)
New York, NY
 
 
Posts: 142 since Dec 2009
Thanks: 41 given, 87 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
 
(login for full post details)
  #7 (permalink)
Taipei Taiwan
 
Experience: Advanced
Platform: NinjaTrader
Broker: AMP Clearing
Trading: TW
 
Posts: 693 since Jun 2009
Thanks: 434 given, 464 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:
 
(login for full post details)
  #8 (permalink)
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 183 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 ..

Reply With Quote
The following 2 users say Thank You to Trader.Jon for this post:
 
(login for full post details)
  #9 (permalink)
New York, NY
 
 
Posts: 142 since Dec 2009
Thanks: 41 given, 87 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
Click image for larger version

Name:	OBV.jpg
Views:	88
Size:	50.2 KB
ID:	17471  
Reply With Quote
 
(login for full post details)
  #10 (permalink)
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 183 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
 
(login for full post details)
  #11 (permalink)
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 924 received


traderwerks View Post

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


so calling the indicator inside of itself - was that the real reason of the NT-Crash / forced close now ?

max-td
Reply With Quote
 
(login for full post details)
  #12 (permalink)
New York, NY
 
 
Posts: 142 since Dec 2009
Thanks: 41 given, 87 received

Thanks, Jon. They definitely take getting used to but I'm now at the point where I can't even look at normal candles anymore. Anyway, these tend to (help) keep me out of trouble.

Happy trading,
Dave

Reply With Quote
 
(login for full post details)
  #13 (permalink)
New York, NY
 
 
Posts: 142 since Dec 2009
Thanks: 41 given, 87 received

MAX!!

I guess so. I'm now calling the regular OBV and using OBV as the SMA input and all is well with the world.

Reply With Quote
The following user says Thank You to dsraider for this post:
 
(login for full post details)
  #14 (permalink)
New York, NY
 
 
Posts: 142 since Dec 2009
Thanks: 41 given, 87 received

Almost forgot. In case any of you are interested in the final product, it's now in the download section for 6.5: View Download Details - Big Mike's Day Trading Forum

Thanks again for all the help.

Dave

Reply With Quote
The following user says Thank You to dsraider for this post:
 
(login for full post details)
  #15 (permalink)
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 924 received



max .

max-td
Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Indicator forcing NinjaTrader to close / shutdown


Last Updated on July 27, 2010


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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