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


Can I add existing indicators to an indicator I am creating?
Updated: Views / Replies:2,868 / 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 dont 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?

  #1 (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,036 since Jun 2010
Thanks: 226 given, 684 received

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

Howdy,

I am wanting to create a new indicator that will be referencing some other studies.

Is there a writeup somewhere that explains how I could in a sense ADD these indicators to MY indicator, so that when one puts my indicators on a chart, they could configure all of the settings of the studies my study will be referencing?

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,589 since Mar 2010
Thanks: 4,221 given, 25,295 received
Forum Reputation: Legendary



forrestang View Post
Howdy,

I am wanting to create a new indicator that will be referencing some other studies.

Is there a writeup somewhere that explains how I could in a sense ADD these indicators to MY indicator, so that when one puts my indicators on a chart, they could configure all of the settings of the studies my study will be referencing?

You do not need to add that second indicator. You will simply call it. For clarity, let me describe an example and assume that you want to call the signalline of the MACD and use it as a trendfilter.

You will then call the MACD in OnBarUpdate() to catch the values, for example
 
Code
double signalLine = MACD(Input, fast, slow, smooth).Avg[0];
If you call the MACD, it requires 4 input Parameters:

-> the DataSeries you want to apply it to - this can be "Input", but also another indicator
-> the period of the fast moving average
-> the period of the slow moving average
-> the period of the signalline

The input parameters can only be used, if you have declared the variables, so you need to add them to the Variables section
 
Code
private int fast = 12;
private int slow = 26;
private int smooth = 9;
If you want to make these parameters user accessible in your indicator, you also need to define properties for each of them in the properties section. This will make appear "fast", "slow" and "smooth" in the indicator box of your indicator, so that it can be configured, when your indicator has been put onto a chart.

Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #4 (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,036 since Jun 2010
Thanks: 226 given, 684 received

How would I go about populating an oscilator panel with a color?

Say for example I am able to draw arrows on the price chart with various conditions. How do I instead of doing that.... just draw a switchin color in the oscilator pane.

It would look like the picture below. This is from the PriceActionSwingTrend indicator. I would like to populate mine(3rd pane) like this.

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-howto.jpg  
Reply With Quote
 
  #5 (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,036 since Jun 2010
Thanks: 226 given, 684 received


forrestang View Post
How would I go about populating an oscilator panel with a color?

Say for example I am able to draw arrows on the price chart with various conditions. How do I instead of doing that.... just draw a switchin color in the oscilator pane.

It would look like the picture below. This is from the PriceActionSwingTrend indicator. I would like to populate mine(3rd pane) like this.

Ah, Got it.

Reply With Quote
 
  #6 (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,036 since Jun 2010
Thanks: 226 given, 684 received


forrestang View Post
Ah, Got it.

Jeez I'm such a newb.

Got the first part working. Got to add in some other stuff. Arrows are just there for debugging.

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-suchanewb.jpg  
Reply With Quote
 
  #7 (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,036 since Jun 2010
Thanks: 226 given, 684 received

Moving right along............

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-suchanewb2.jpg  
Reply With Quote
 
  #8 (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,036 since Jun 2010
Thanks: 226 given, 684 received

Please ignore the randomness of these posts...... it's just how I think, and I happen to be thinking out loud

Tracking color changes of IchiCloud, shown by red and green debug arrows.

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-suchanewb3.jpg  
Reply With Quote
 
  #9 (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,036 since Jun 2010
Thanks: 226 given, 684 received

HH/HL above BLUE Cloud = Green

LL/LH below RED Cloud = red

Neither = yellow

Attached Thumbnails
Can I add existing indicators to an indicator I am creating?-suchanewb4.jpg  
Reply With Quote
 
  #10 (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,036 since Jun 2010
Thanks: 226 given, 684 received


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?

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)

July Journal Challenge w/$1100 in prizes from TopstepTrader

July

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help creating a NinjaTrader Indicator jjl1753 NinjaTrader Programming 4 June 13th, 2011 09:26 PM
Help with adding new code to existing oscillator indicator script kendallw4 NinjaTrader Programming 3 June 9th, 2011 06:38 PM
Interested in creating an indicator for me? estrader14 NinjaTrader Programming 2 February 20th, 2011 05:46 PM
Add arrow to any alerts in indicators emini_Holy_Grail NinjaTrader Programming 2 August 29th, 2010 12:02 PM


All times are GMT -4. The time now is 10:01 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-06-24 in 0.12 seconds with 20 queries on phoenix via your IP 54.158.253.14