NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one forrestang with 21 posts (0 thanks)
    2. looks_two futuretrader with 3 posts (2 thanks)
    3. looks_3 Fat Tails with 3 posts (4 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 8,097 views
    2. thumb_up 6 thanks given
    3. group 3 followers
    1. forum 27 posts
    2. attach_file 13 attachments




 
Search this Thread

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

  #11 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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
Click image for larger version

Name:	Such a Newb1.jpg
Views:	198
Size:	58.8 KB
ID:	43551  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Increase in trading performance by 75%
The Elite Circle
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
11 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
10 thanks
  #12 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

It looks like this is my problem.

Checking for Null References - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

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

Started this thread Reply With Quote
  #13 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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
Click image for larger version

Name:	Prime2011-07-17_011618.jpg
Views:	192
Size:	140.7 KB
ID:	43557  
Started this thread Reply With Quote
  #14 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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
Click image for larger version

Name:	FINALLY.jpg
Views:	187
Size:	416.6 KB
ID:	43569  
Started this thread Reply With Quote
  #15 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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.

Started this thread Reply With Quote
  #16 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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
Click image for larger version

Name:	Prime2011-07-18_030510.jpg
Views:	161
Size:	200.1 KB
ID:	43644  
Started this thread Reply With Quote
  #17 (permalink)
 futuretrader 
Como Italy
 
Experience: Intermediate
Platform: Ninjatrader, customized
Trading: ES
Posts: 525 since Feb 2010
Thanks Given: 471
Thanks Received: 643


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)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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?

Started this thread Reply With Quote
  #19 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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

Started this thread Reply With Quote
  #20 (permalink)
 futuretrader 
Como Italy
 
Experience: Intermediate
Platform: Ninjatrader, customized
Trading: ES
Posts: 525 since Feb 2010
Thanks Given: 471
Thanks Received: 643



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
Click image for larger version

Name:	PAS Speech.PNG
Views:	156
Size:	6.1 KB
ID:	43646  
Reply With Quote




Last Updated on July 19, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts