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,098 / 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?

  #11 (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
WTF?

Wanted to change the display name of the indie to something different. Then Bam! All my colors changed, and now nothing shows up in my indie pane. WTF?

I think it's one of those errors due to not having enough data? No compiling errors, but I see this in my output.

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-such-newb1.jpg  
Reply With Quote
 
  #12 (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

It looks like this is my problem.

Checking for Null References - NinjaTrader Support Forum

Some null crap. I don't even know what that means. Aaaaaargh!!!!!!

Reply With Quote
 
  #13 (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


May have gotten somewhere?

Deleted the 'if' statements at the beginning of onBarUpdate and I have my indicator working. Still need to poke around though.

Notice the commented lines. Not sure why that was there originally, but it must have had some purpose?
 
Code
if (CurrentBar < 1)
       {
              //if (swingRelation == null && seeRelation)
               swingRelation = PriceActionSwing(Input, dtbStrength, swingSize, swingType).SwingRelation;
				
              //if (swingTrend == null && !seeRelation)
              swingTrend = PriceActionSwing(Input, dtbStrength, swingSize, swingType).SwingTrend;

Woot!!!

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-prime2011-07-17_011618.jpg  
Reply With Quote
 
  #14 (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

Jeez.....

Finally got this P.O.S. indie doing what I want for the most part!

Also added the necessary dataSeries to get this thing to work with Market Analyzer.

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-finally.jpg  
Reply With Quote
 
  #15 (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

More random thoughts.....

Cleaning up the script. I have stuff everywhere.

Also need to clean up the user input interface..... wtf is there no way to reorder things the way you want other than renaming things so it shows in alphabetical order?

That is kinda annoying.

Reply With Quote
 
  #16 (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

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..........?

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-prime2011-07-18_030510.jpg  
Reply With Quote
 
  #17 (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
More random thoughts.....

Cleaning up the script. I have stuff everywhere.

Also need to clean up the user input interface..... wtf is there no way to reorder things the way you want other than renaming things so it shows in alphabetical order?

That is kinda annoying.

You can use numbers at the start of the Display name.

Reply With Quote
 
  #18 (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
You can use numbers at the start of the Display name.

Good idea. I used the letter "A" in previous studies.... but the numbers are an even better idea.

Here's another thought, something I haven't tried yet but i will later when i shut down my charts.

But you know in the properties when you define the "parameters' block where most things show up. What if you named some parameters to say "Parameters 1" and the others to "Parameters 2?"

And you do this for each different indicator your study references? Say my indicator is based mainly on the ichiCloud and the the ZZ indicator.

So what if I saved one set of parameters as maybe "Parameters-ichi" and the others to "Parameters-ZigZag"

Have you seen this tried before?

Reply With Quote
 
  #19 (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
You can use numbers at the start of the Display name.

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; }
        }

Reply With Quote
 
  #20 (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
Good idea. I used the letter "A" in previous studies.... but the numbers are an even better idea.

Here's another thought, something I haven't tried yet but i will later when i shut down my charts.

But you know in the properties when you define the "parameters' block where most things show up. What if you named some parameters to say "Parameters 1" and the others to "Parameters 2?"

And you do this for each different indicator your study references? Say my indicator is based mainly on the ichiCloud and the the ZZ indicator.

So what if I saved one set of parameters as maybe "Parameters-ichi" and the others to "Parameters-ZigZag"

Have you seen this tried before?

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.

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-pas-speech.png  
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 03:17 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.13 seconds with 20 queries on phoenix via your IP 54.226.172.30