Can I add existing indicators to an indicator I am creating? - NinjaTrader Programming | futures io social day trading
futures io futures trading


Can I add existing indicators to an indicator I am creating?
Updated: Views / Replies:3,099 / 27
Created: by forrestang Attachments:13

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

Can I add existing indicators to an indicator I am creating?

  #21 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received


futuretrader View Post
I haven't seen that but it seems a good idea in an indicator that combines several others like yours. Though in your case I doubt anyone would want to play around with the ichi parameters - I think that could drive you mad.

Here is what mine looks like now as I have not cleaned it up yet. So it's rather busy at the moment. But I plan on removing most of those things @ the bottom.

Since I don't have any plot options at the moment, and I'm not sure if I'm going to add them, it is only going to be the different lengths for each indicator available. So it's not very many settings on there.

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-prime2011-07-18_033424.jpg  
Reply With Quote
 
  #22 (permalink)
Elite Member
Milan Italy
 
Futures Experience: Intermediate
Platform: Ninjatrader, Sierra Chart
Favorite Futures: ES
 
Posts: 523 since Feb 2010
Thanks: 470 given, 629 received


forrestang View Post
Just to clarify, do you mean that I can leave my variables the same way they are declared in my 'variables' section up top. And just change the name down at the bottom?

From This:
 
Code
[Browsable(false)]	// this line prevents the data series from being displayed in the indicator properties dialog, do not remove
        [XmlIgnore()]		// this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        public DataSeries TrendState
        {
            get { return trendState; }
        }

To this:
 
Code
[Browsable(false)]	// this line prevents the data series from being displayed in the indicator properties dialog, do not remove
        [XmlIgnore()]		// this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        public DataSeries 1_TrendState
        {
            get { return trendState; }
        }

Didn't see this post. No, you'd need to add the Gui Display name description:

 
Code
        [Category("Speech")]
        [Description("Master:  Enables speech synthesis alerts and installs toolstrip toggle.")]
        [Gui.Design.DisplayName("1. Master for Speech")]
        public bool UseSpeech
        {
            get { return speech; }
            set { speech = value; }
        }

Reply With Quote
The following 2 users say Thank You to futuretrader for this post:
 
  #23 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received



futuretrader View Post
Didn't see this post. No, you'd need to add the Gui Display name description:

 
Code
        [Category("Speech")]
        [Description("Master:  Enables speech synthesis alerts and installs toolstrip toggle.")]
        [Gui.Design.DisplayName("1. Master for Speech")]
        public bool UseSpeech
        {
            get { return speech; }
            set { speech = value; }
        }

Ah cool!

I didn't know about that option. So it's just adding this one line to my parameter blocks for each one I want to rename?
 
Code
 [Gui.Design.DisplayName("1. Master for Speech")]


Last edited by forrestang; July 18th, 2011 at 08:26 AM.
Reply With Quote
 
  #24 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received


forrestang View Post
New idea......

The trading I'm doing is partially dependent on pullbacks to the 13ma. And attached is a picture of what my Market Analyzer looks like now.

Right now I will usually consider a pb complete if price gets a minimum of 2 tics within that ma to begin to look for a trade. So typically once it gets there, I start putting my cross hair on that bar, and looking at the values of the H/L of that bar and the 13ema to see if it's right.

I'm thinking I can add that in the indicator, so that when price is within 2 tics of that ma, I can have it displayed in Market Analyzer.

Then the problem would be if I use a different value for a different instrument. CL for example I would give it 4 tics since it moves faster.

Hmmmm..........?

Idea..... I could just add that condition in the market anaylzer via the 'cell conditions' block by adding the 13 ma as a new column. The problem would be that I coudln't set it for each instruemnt.

Also... it would trigger EVERY time price was near it. Which isn't all bad, but I would like it to feel a bit more 'integrated.'

So I'm thinking the logic will be using a flag to decide when to NOT ignore price being near the 13ema.......

 
Code
If (TrendState == True)   //price makes a New LL/HH beyond the blue/red cloud.  Logic already built
{
   Flag = true  //flag so we know to begin looking for a pb to 13ma.  Logic here already as well
}

If (Flag == true)
{
   If(price == 13ema)   //build in tolerance here as well plus/minus tic size
   {
      pbToEma[0] = true   //This is the alert that I will have built into a dataSeries for Market Analyzer
   }
}

If(pbToEma[0] == true)
{
   If(TrendState == False)   //trend no longer happening, so we no longer care if price approaches ma, and time to reset
   {
      Flag = false   //reset the flag, so we are no longer looking for pb to 13ema
   }
}


Last edited by forrestang; July 18th, 2011 at 08:18 AM.
Reply With Quote
 
  #25 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,599 received
Forum Reputation: Legendary


forrestang View Post
Here is what mine looks like now as I have not cleaned it up yet. So it's rather busy at the moment. But I plan on removing most of those things @ the bottom.

If you serialize the plots by using code, you can remove the original plot options by adding the line

 
Code
PlotsConfigurable = false;
to the Initialize() section.

Reply With Quote
 
  #26 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

@Fat Tails

Would that mean that I couldn't add the configurable option to be able to adjust the plots on the indicator itself at the bottom? I planned on adding that in at some point.

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-prime2011-07-18_061005.jpg  
Reply With Quote
 
  #27 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,599 received
Forum Reputation: Legendary


forrestang View Post
@Fat Tails

Would that mean that I couldn't add the configurable option to be able to adjust the plots on the indicator itself at the bottom? I planned on adding that in at some point.

The PlotsConfigurable option has nothing to do with what will be displayed on your chart.

NinjaTrader has an in-built serialization of plots. This serialization allows you to select the colors, dashstyle and plotstyle of your plots in a way that it can be saved as part of a template or part of a workspace.

However, if you want more options, such as down colors and up colors, you need to do the serialization manually and you do not need the in-built serialization any more. When I code indicators, I

-> either use the in-built serialization (do nothing)
-> or I serialize all plots via code (define properties for up- and down color, plotstyle, dashstyle and plotwidth) and set PlotsConfigurable = false;

Just try and see what happens, your PC will not explode.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #28 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received


forrestang View Post
Ah cool!

I didn't know about that option. So it's just adding this one line to my parameter blocks for each one I want to rename?
 
Code
 [Gui.Design.DisplayName("1. Master for Speech")]

@futuretrader
Didn't do much with my script yesterday. I probably won't till this weekend. But I did add that line in just to try it out.

Added it to the first three user inputs for the part of my script that references the ZZ indicator.

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-prime2011-07-19_022648.jpg  
Reply With Quote

Reply



futures io > > > > > Can I add existing indicators to an indicator I am creating?

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
Please help creating a NinjaTrader Indicator jjl1753 NinjaTrader Programming 4 June 13th, 2011 10:26 PM
Help with adding new code to existing oscillator indicator script kendallw4 NinjaTrader Programming 3 June 9th, 2011 07:38 PM
Interested in creating an indicator for me? estrader14 NinjaTrader Programming 2 February 20th, 2011 06:46 PM
Add arrow to any alerts in indicators emini_Holy_Grail NinjaTrader Programming 2 August 29th, 2010 01:02 PM


All times are GMT -4. The time now is 05:04 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.12 seconds with 20 queries on phoenix via your IP 54.226.132.197