Accessing Hidden Indicator Conditions - NinjaTrader Programming | futures io social day trading
futures io futures trading


Accessing Hidden Indicator Conditions
Updated: Views / Replies:3,669 / 20
Created: by KenB Attachments:1

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

Accessing Hidden Indicator Conditions

  #11 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

BTW - i think that you need a real plot is not 100% right.
the dataseries does it also.

oh sorry, forgot the wizard-aspect - for using it in wizard you need a plot.

max-td

Last edited by max-td; September 28th, 2010 at 10:11 AM.
Reply With Quote
 
  #12 (permalink)
Trading for Fun
Here, GA
 
Futures Experience: Intermediate
Platform: Ninja
 
Posts: 146 since Jun 2009
Thanks: 1 given, 72 received

I may be missing what you are trying to accomplish but there is a sample script on the NT Forum that explains how to expose variables and series that are NOT Plots so that other strategies and indicators can have access to them.. Indicator: Exposing indicator values that are not plots - NinjaTrader Support Forum

I use those concepts in some things I have developed.

Reply With Quote
The following 2 users say Thank You to TAJTrades for this post:
 
  #13 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received


yeah, good example for the bools !
but maybe they are not "wizard-compatibel"

and instead of boolseries you can also use dataseries in the same wy - look at this DMa-code.

it has a dataseries calles Signal, that is used in the way you look for i think.

just search in the code for Signal and you see how its used in each section.

EDIT :
OK -- correction , sorry -- you really have to use plots if you want to use the wizard i think

max-td
Attached Files
Register to download File Type: cs DoubleMA.cs (17.3 KB, 20 views)
Reply With Quote
 
  #14 (permalink)
Just starting out...
Boynton Beach, FL
 
Futures Experience: Intermediate
Platform: NinjaTrader
 
Posts: 9 since Jul 2010
Thanks: 0 given, 1 received

Thanks Max, I appreciate it.

Reply With Quote
 
  #15 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

but hey

if you dont wanna go with plots + you are able to modify your indicators, you are also able to modify your strategy !

you can do the main strat in the wizard but you use a dummy that has a plot instead of the dataseries you like to use later - lets say you use 'EMA(5) as where "Signal" is used later
+ code something like : if EMA5 > 1 --- blabla

then you compile your strategy and later you open it via editing + add your dataseries instead of the ema-dummy !

if your indicator is called kenny01, your Signal-dataseries is called as kenny05(parameters... ) .Signal [x]

thats basicly how it can be done.

the wizard is helpful for some steps, but also blocks some functions -- so mix it !

max-td
Reply With Quote
 
  #16 (permalink)
Just starting out...
Boynton Beach, FL
 
Futures Experience: Intermediate
Platform: NinjaTrader
 
Posts: 9 since Jul 2010
Thanks: 0 given, 1 received

I have read the tutorial on exposing boolseries and have successfully added this procedure to the DoubleMA and used it in one of my strategies. However for me it is too time consumming. I would rather edit an indicator with the Script Editor and add "Plots" so that I can keep using the wizard with my strategy and keep my focus on trading not programing. I'm sure once I learn how to add a plot correctly to the DoubleMA for example I will be able to apply the same principle to other trend indicators.

I understand adding the plot to Initialize(), but not sure about the min/max, or setting the plot value. The DoubleMA is a perfect example.

thanks


Reply With Quote
 
  #17 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

hey ken,
is this a question now or are you done with it ?

if its still a question, please let me know.

max-td
Reply With Quote
 
  #18 (permalink)
Just starting out...
Boynton Beach, FL
 
Futures Experience: Intermediate
Platform: NinjaTrader
 
Posts: 9 since Jul 2010
Thanks: 0 given, 1 received

The question is the same: to access an indicator's (like DoubleMA) trend conditons from the strategy wizard, what plot code needs to be added to Initialize(), OnBarUpdate(), and Properties in the Indicator's code? It's really a pretty simple question. I was at a Ninja strategy development webinar yesterday and it was a frequent question of many people.

Reply With Quote
 
  #19 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

hm - lol - dont know why we dont come to a result ...

NT couldnt answer this ?

try this : http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?Overview21

it goes through some pages with the small arrows upper right corner.

play this tutorial to get the basics about plots.
it gives you a good + simple example. - no frills in there.

if you have this plot working, you have to make some different definition of it - that is whats happening in the OnBarUpdate(),-section.

you want to have 3 different definition (+1 / 0 / -1 ) - this must be made with if .... logics

also maybe move it in panel 2.

try it and post what you have if its not working - that will be a piece we can work on
also post it if its working - its a good example then for others !

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


Going of memory here.

To expose a Series (Int, String, Bool, Data.......)
Pay close attention to the "M" or "m" in the IntSeries midLineDirection.



In Variables Section:
private IntSeries midLineDirection;

In Initialize():
midLineDirection = new IntSeries(this); // 1 = Rising. 0 = Flat, -1 = Falling

In OnBarUpdate:
Perform whatever calcs are needed to set the midLineDirection.Set(-1);


In Properties:
[Browsable(false)]
[XmlIgnore()]
public IntSeries MidLineDirection
{
get { return midLineDirection; }
}

This should allow access the midlinedirection for you to use in the strategy Builder

Reply With Quote

Reply



futures io > > > > > Accessing Hidden Indicator Conditions

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
Accessing another indicator from within an indicator? RambleDog NinjaTrader Programming 7 July 25th, 2012 06:28 PM
Accessing Zigzag swing highs/lows buylosellhi NinjaTrader Programming 3 April 27th, 2011 05:56 PM
Accessing the clipboard from within an indicator Tempo NinjaTrader Programming 4 February 7th, 2011 05:23 PM
Accessing a chart from a strategy richtobey NinjaTrader Programming 3 December 31st, 2010 05:07 AM


All times are GMT -4. The time now is 10:53 PM.

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-11 in 0.14 seconds with 20 queries on phoenix via your IP 54.145.16.43