ADX dmPlus Inaccessible due to Protection Level - NinjaTrader Programming | futures io social day trading
futures io futures trading


ADX dmPlus Inaccessible due to Protection Level
Updated: Views / Replies:2,048 / 7
Created: by Slipknot511 Attachments:0

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
 
Thread Tools Search this Thread
 

ADX dmPlus Inaccessible due to Protection Level

  #1 (permalink)
Elite Member
Springfield,Missouri, USA
 
Futures Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Favorite Futures: CL, TF, 6E
 
Slipknot511's Avatar
 
Posts: 176 since May 2010
Thanks: 60 given, 312 received

ADX dmPlus Inaccessible due to Protection Level

I'm trying to add a simple condition to a NT7 indicator:

&& (ADX(13).dmPlus[0] >= ADX(13).dmMinus[0])

I get the error "Ninjatrader Indicator ADX.dmPlus is inaccessible due to protection level" & the same for dmMinus.

I'm just getting started with code, so you'll have to dumb down your answers for me please.

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
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received


Try

DM(13).DiPlus[0]

DM(13).DiMinus[0]

Reply With Quote
The following user says Thank You to vegasfoster for this post:
 
  #4 (permalink)
Elite Member
Springfield,Missouri, USA
 
Futures Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Favorite Futures: CL, TF, 6E
 
Slipknot511's Avatar
 
Posts: 176 since May 2010
Thanks: 60 given, 312 received

It compiled. Tomorrow I'll see if the concept is any good.

Thanks

Reply With Quote
 
  #5 (permalink)
Elite Member
Springfield,Missouri, USA
 
Futures Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Favorite Futures: CL, TF, 6E
 
Slipknot511's Avatar
 
Posts: 176 since May 2010
Thanks: 60 given, 312 received

OK, My logic was flawed.

Instead, I just want to modify the stock NT7 DM indicator to add a plot/alert when +DI and -DI cross.

Using my original logic, it will plot on every bar where the conditions are true. Do I need to use "CrossAbove"/"CrossBelow" instead... or is there is proper way to have the alert/plot occur only once when the condition becomes true and not again as long as the condition remains true?
Also, I want a dot to remain once it paints, even if COBC is set to false. Meaning if the lines cross and then uncross before close, the dot will remain. In theory, it could be possible for both buy and sell dots to plot on the same bar as long as other filters aren't added.

Here's what I have & it accomplishes what I want on the first cross, with the exception that it plots EVERY bar thereafter:

 
Code
if ((Close[0] > Open[0])
                && (DM(period).DiPlus[0] > DM(period).DiMinus[0]))

                {
                DrawDot(CurrentBar.ToString() + "dotbuy", true, 0, Low[0] - 5 * TickSize, Color.DarkGreen);
                 Alert("BuyAlert", NinjaTrader.Cbi.Priority.High, "PossibleBuy", "chime_up.wav", 15, Color.Black, Color.Green);
                }
                
            if     ((Close[0] < Open[0])
                && (DM(period).DiPlus[0] < DM(period).DiMinus[0]))
                
                {
                DrawDot(CurrentBar.ToString() + "dotsell", true, 0, High[0] + 5 * TickSize, Color.DarkRed);
                 Alert("SellAlert", NinjaTrader.Cbi.Priority.High, "PossibleSell", "chime_down.wav", 15, Color.Black, Color.Red);
                }


Last edited by Slipknot511; November 21st, 2010 at 11:58 PM.
Reply With Quote
 
  #6 (permalink)
 Vendor: www.integrity-traders.com 
East Rochester, NY
 
Futures Experience: Intermediate
Platform: NT
 
eDanny's Avatar
 
Posts: 327 since Jul 2009
Thanks: 17 given, 419 received

Remember, if you paint a dot that remains after the condition changes it will disappear if you refresh the chart.

Dan

Reply With Quote
 
  #7 (permalink)
Elite Member
Springfield,Missouri, USA
 
Futures Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Favorite Futures: CL, TF, 6E
 
Slipknot511's Avatar
 
Posts: 176 since May 2010
Thanks: 60 given, 312 received


eDanny View Post
Remember, if you paint a dot that remains after the condition changes it will disappear if you refresh the chart.

Dan

Correct, that's why I use market replay to populate the chart rather than just refreshing it. I do that if any of my indicators are set to COBC=false. Using market replay to populate historical charts is the only way to see how indicators really behave.
Thanks.

Reply With Quote
 
  #8 (permalink)
Elite Member
Springfield,Missouri, USA
 
Futures Experience: Advanced
Platform: NinjaTrader (It's a love/hate relationship)
Favorite Futures: CL, TF, 6E
 
Slipknot511's Avatar
 
Posts: 176 since May 2010
Thanks: 60 given, 312 received

OK, I finally got the syntax right for CrossAbove so the indicator is working as expected now.

Reply With Quote

Reply



futures io > > > > > ADX dmPlus Inaccessible due to Protection Level

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Time and Sales - Level I - Level II - tick data trendisyourfriend Traders Hideout 4 August 28th, 2014 01:14 AM
dmplus v3a is there a slope indicator? bobarian NinjaTrader 4 January 11th, 2013 12:09 PM
DMplus - help to make a small change perryg NinjaTrader Programming 8 December 27th, 2011 01:49 PM
Need Level II and Level I realtime or historical data ptd26 Reviews of Brokers and Data Feeds 5 March 26th, 2010 04:27 PM
Just2Trade Level I and Level II Quote Quality? ptd26 Reviews of Brokers and Data Feeds 1 February 10th, 2010 08:15 PM


All times are GMT -4. The time now is 06:31 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-12 in 0.41 seconds with 19 queries on phoenix via your IP 54.145.51.250