Need info on coding a reference to another indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading


Need info on coding a reference to another indicator
Updated: Views / Replies:2,648 / 8
Created: by Saroj 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
 

Need info on coding a reference to another indicator

  #1 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received

Need info on coding a reference to another indicator

whether a plot or a value calculated within the external indicator...

I've seen something either here or in NT forum, but can't find it in either forum nor in the Help Guide.

TIA, Saroj

Reply With Quote
 
  #2 (permalink)
Trading for Fun
Here, GA
 
Futures Experience: Intermediate
Platform: Ninja
 
Posts: 146 since Jun 2009
Thanks: 1 given, 72 received


Saroj View Post
whether a plot or a value calculated within the external indicator...

I've seen something either here or in NT forum, but can't find it in either forum nor in the Help Guide.

TIA, Saroj

Toss up a little more info on what you are trying to do and I will try to post some code example.

Reply With Quote
 
  #3 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received



Saroj View Post
whether a plot or a value calculated within the external indicator...

I've seen something either here or in NT forum, but can't find it in either forum nor in the Help Guide.

TIA, Saroj

Saroj,

I use three different methods to get the correct plot code/ variable sequence.

--------------------------------------------------------------------------

1 , use Intellisense. In editor, type in the indicator name followed by a curved bracket.

Ex EMA( or T3(

Intellisense will then show you how to sequence the variables.

---------------------------------------------------------------------------

2 , For indicators with multiple outputs, I like to use build an automated strategy using the indicators in question along with the specific plot options.

Then I open the code and help myself to what I want.

--------------------------------------------------------------------------------

3 , If its a specific calculation, Give it its own plot series, then pick it up using instructions from 2.

------------------------------------------------------------------------------



RJay

Reply With Quote
 
  #4 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received


Saroj View Post
whether a plot or a value calculated within the external indicator...

I've seen something either here or in NT forum, but can't find it in either forum nor in the Help Guide.

TIA, Saroj

Thanks, TAJ... I have some examples and finally got my darvas reference to work... but I feel like I'm incorporating a lot of unnecessary crap from copying others code not totally understanding what they are doing so I would like to really understand the essence of refering to a value in another indicator, like does it matter whether or not that indicator is on the chart...

Here's what I used to get 2 values I wanted from the Darvas indicator:

double darvasUpper = Darvas().Upper[0];
double darvasLower = Darvas().Lower[0];
darvasMid = darvasLower + (darvasUpper - darvasLower)/
2;

which was fairly clear because Upper and Lower are plots...

but what about when it is only a variable within the indicator?

I saw this code from something Mike posted...

if (DoubleMA(DMAzlema, NinjaTrader.Indicator.MAV.MAType.ZeroLagEMA, DMAadxvma, NinjaTrader.Indicator.MAV.MAType.ADXVMA).Signal[0] != 0)

why is it necessary to include "NinjaTrader.Indicator." before the indicator name?


Reply With Quote
 
  #5 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received


RJay View Post
Saroj,

I use three different methods to get the correct plot code/ variable sequence.

--------------------------------------------------------------------------

1 , use Intellisense. In editor, type in the indicator name followed by a curved bracket.

Ex EMA( or T3(

Intellisense will then show you how to sequence the variables.

---------------------------------------------------------------------------

2 , For indicators with multiple outputs, I like to use build an automated strategy using the indicators in question along with the specific plot options.

Then I open the code and help myself to what I want.

--------------------------------------------------------------------------------

3 , If its a specific calculation, Give it its own plot series, then pick it up using instructions from 2.

------------------------------------------------------------------------------



RJay

Thanks, RJay... I understand 1 & 2, but not #3... I understand what a plot series is but why that rather than a standard Data Series? Also, my question is how to get values from an existing indicator... what "calculation" are you refering to? one in the external indicator or one that has nothing to do with it...

Reply With Quote
 
  #6 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received


Saroj View Post
Thanks, RJay... I understand 1 & 2, but not #3... I understand what a plot series is but why that rather than a standard Data Series? Also, my question is how to get values from an existing indicator... what "calculation" are you refering to? one in the external indicator or one that has nothing to do with it...

Saroj,

If its a specific calculation in the first indicator, Give it its own plot series in the first indicator.

follow instructions for step 2 to access first indicator from second indicator.

RJay


Last edited by RJay; October 20th, 2009 at 07:13 PM.
Reply With Quote
 
  #7 (permalink)
Trading for Fun
Here, GA
 
Futures Experience: Intermediate
Platform: Ninja
 
Posts: 146 since Jun 2009
Thanks: 1 given, 72 received

Saroj,

Just follow this example for Plots, IntSeries, BoolSeries and Variables. If I recall there are both Strategy Files and Indicator Files within the Zip to demonstrate how they all go together.

Indicator: Exposing indicator values that are not plots - NinjaTrader Support Forum

Reply With Quote
The following user says Thank You to TAJTrades for this post:
 
  #8 (permalink)
 Vendor: www.tradingstudies.com 
Denver, CO
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: TF, ES, CL
 
roonius's Avatar
 
Posts: 132 since Jun 2009
Thanks: 20 given, 272 received


Saroj View Post
if (DoubleMA(DMAzlema, NinjaTrader.Indicator.MAV.MAType.ZeroLagEMA, DMAadxvma, NinjaTrader.Indicator.MAV.MAType.ADXVMA).Signal[0] != 0)

why is it necessary to include "NinjaTrader.Indicator." before the indicator name?


It is not necessary - you can remove it.

Reply With Quote
The following user says Thank You to roonius for this post:
 
  #9 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received


TAJTrades View Post
Saroj,

Just follow this example for Plots, IntSeries, BoolSeries and Variables. If I recall there are both Strategy Files and Indicator Files within the Zip to demonstrate how they all go together.

Indicator: Exposing indicator values that are not plots - NinjaTrader Support Forum

Thanks, TAJ... that's exactly what I was looking for... searched and searched for it in futures.io (formerly BMT) and the NT forum this a.m. Wasn't using the right keywords apparently.

Reply With Quote

Reply



futures io > > > > > Need info on coding a reference to another indicator

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
Help coding DV2 indicator bigAllan NinjaTrader Programming 3 August 22nd, 2014 07:26 PM
Color coding for indicator line help? hector24 NinjaTrader Programming 8 July 13th, 2011 10:10 PM
FisherTransform - able to reference the bars that FisherTransform Indicator produces Zipper Ripper NinjaTrader Programming 5 July 9th, 2011 07:03 PM
Coding Help for Indicator Conversion syxforex NinjaTrader 5 May 15th, 2010 12:23 PM
Question: Turn off indicator titles, info drago1 NinjaTrader Programming 3 April 7th, 2010 11:59 PM


All times are GMT -4. The time now is 03:28 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-13 in 0.15 seconds with 19 queries on phoenix via your IP 54.226.132.197