Adding Constant Line Indicator to Another Indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading


Adding Constant Line Indicator to Another Indicator
Updated: Views / Replies:3,181 / 9
Created: by ceramictilepro Attachments:5

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

Adding Constant Line Indicator to Another Indicator

  #1 (permalink)
Elite Member
Roseville CA
 
Futures Experience: Advanced
Platform: N7
Broker/Data: Amp Futures/CQG
Favorite Futures: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 19 received

Adding Constant Line Indicator to Another Indicator

Hello,

I was trying to Add the Constant Line Indicator into a RSI Indicator.

I did not want to use the Add(new Line... due to the lack of features.

I am currently using the Constant Line Indicator and plotting it on the same panel as the RSI but would to incorporate the two.

Any Ideas?

Thank You!

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,651 since Mar 2010
Thanks: 4,226 given, 25,600 received
Forum Reputation: Legendary



ceramictilepro View Post
Hello,

I was trying to Add the Constant Line Indicator into a RSI Indicator.

I did not want to use the Add(new Line... due to the lack of features.

I am currently using the Constant Line Indicator and plotting it on the same panel as the RSI but would to incorporate the two.

Any Ideas?

Thank You!

You need to blend the code of the ConstantLines indicator into the RSI indicator. Copy and paste, then change some of the indices.

Reply With Quote
 
  #4 (permalink)
Elite Member
Roseville CA
 
Futures Experience: Advanced
Platform: N7
Broker/Data: Amp Futures/CQG
Favorite Futures: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 19 received


Fat Tails View Post
You need to blend the code of the ConstantLines indicator into the RSI indicator. Copy and paste, then change some of the indices.

ok, i'm moving forward with this but had a question on price markers and if it was possible to show some and hide others within the indicator.

The attached pic may be easier to understand. Thank You!

Also I will attach the indicator!

Attached Thumbnails
Adding Constant Line Indicator to Another Indicator-rsiv4.jpg  
Attached Files
Register to download File Type: zip aRSIv4.zip (12.1 KB, 31 views)
Reply With Quote
 
  #5 (permalink)
Elite Member
Roseville CA
 
Futures Experience: Advanced
Platform: N7
Broker/Data: Amp Futures/CQG
Favorite Futures: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 19 received

can someone please look at the attached notepad file and tell me why I can't seem to incorporate the CMO indicator into this RSI indicator?

any help would be much appreciated

I get confused with what DataSeries actually do and how they are linked with the properties area of the indicator too.

Attached Files
Register to download File Type: txt RSIv4test.txt (14.0 KB, 27 views)
Reply With Quote
 
  #6 (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,600 received
Forum Reputation: Legendary


ceramictilepro View Post
ok, i'm moving forward with this but had a question on price markers and if it was possible to show some and hide others within the indicator.

The attached pic may be easier to understand. Thank You!

Also I will attach the indicator!

It is possible to code, but rather complex.

You would need to override FormatPriceMarker() and then use different rules for different plots.

Reply With Quote
 
  #7 (permalink)
Elite Member
france
 
Futures Experience: Beginner
Platform: nt
 
mea109's Avatar
 
Posts: 201 since Oct 2009
Thanks: 1,776 given, 50 received

As an alternative you can detect last bar and color it selectively with Color.Transparent on the last bar only.
Then draw lines to fill the gap.


Last edited by mea109; September 22nd, 2011 at 03:58 PM.
Reply With Quote
 
  #8 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received


ceramictilepro View Post
Hello,

I was trying to Add the Constant Line Indicator into a RSI Indicator.

I did not want to use the Add(new Line... due to the lack of features.

I am currently using the Constant Line Indicator and plotting it on the same panel as the RSI but would to incorporate the two.

Any Ideas?

Thank You!

Hi ceramictilepro,

I see you have already made progress here.

There is a simple way to get code that feeds one indicator from the output of another indicator.

Open Strategy Analyser and select new strategy.

Construct a condition in new strategy where you select the target indicator on one side of the equation.

Select its input field and select the source indicator from the drop down list.

Now select == and add anything to complete the right side of the equation.

Compile, then select "View Code".

The correct code to feed the source indicator to the target indicator will be there.

Copy/paste what you need.

Repeat for each indicator you need data from.

RJay

Reply With Quote
The following 3 users say Thank You to RJay for this post:
 
  #9 (permalink)
Elite Member
Roseville CA
 
Futures Experience: Advanced
Platform: N7
Broker/Data: Amp Futures/CQG
Favorite Futures: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 19 received

Thanks Rjay,

I tried to add an indicator via the strategy and got 2 errors. The only place where I saw code was under Initialize.

Am I missing something?

Thanks

Attached Thumbnails
Adding Constant Line Indicator to Another Indicator-adding-indicator-error.jpg  
Reply With Quote
 
  #10 (permalink)
Elite Member
Roseville CA
 
Futures Experience: Advanced
Platform: N7
Broker/Data: Amp Futures/CQG
Favorite Futures: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 19 received


I think I did it!

Can anyone (Fat Tails...lol) check this for me please

My goal was to incorporate the following into a single indicator:

Constant Lines
CMO
RSI (modified by Fat Tails)

Question: is the order of the plots important in the Initialize section? Seems that I just needed to put the:

Add(new Plot(Color.Blue, "CMO Line"));
Add(
new Plot(Color.Black, "aRSIv4test"));


in this order for each line to plot on the chart.

Attached Files
Register to download File Type: zip aRSIv4test.zip (12.4 KB, 30 views)
Reply With Quote
The following 2 users say Thank You to ceramictilepro for this post:

Reply



futures io > > > > > Adding Constant Line Indicator to Another Indicator

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
Help please - moving spreadsheet values into constant lines indicator aquarian1 NinjaTrader Programming 34 November 30th, 2016 10:51 AM
Al Brooks Indicator adding an alert fossil NinjaTrader Programming 1 February 22nd, 2011 01:27 PM
Adding alert to NT indicator cihde NinjaTrader Programming 5 February 15th, 2011 08:45 PM
Adding sound files to indicator desander NinjaTrader Programming 2 November 16th, 2009 01:17 PM
Adding a Auto Fib Retracement to an indicator vast NinjaTrader 0 July 4th, 2009 08:31 AM


All times are GMT -4. The time now is 02:50 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-12-12 in 0.13 seconds with 20 queries on phoenix via your IP 54.90.207.75