Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Adding Constant Line Indicator to Another Indicator
Updated September 23, 2011
Adding Constant Line Indicator to Another Indicator
September 19th, 2011, 12:52 AM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
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!
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
September 19th, 2011, 05:19 AM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
ceramictilepro
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.
September 21st, 2011, 09:48 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
Fat Tails
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
Attached Files
Elite Membership required to download: aRSIv4.zip
September 22nd, 2011, 12:03 AM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
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
Elite Membership required to download: RSIv4test.txt
September 22nd, 2011, 06:00 AM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
ceramictilepro
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.
September 22nd, 2011, 02:24 PM
france
Experience: Beginner
Platform: nt
Posts: 201 since Oct 2009
Thanks Given: 1,776
Thanks Received: 56
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 .
September 22nd, 2011, 04:19 PM
Hartford, CT. USA
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787
ceramictilepro
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
September 22nd, 2011, 08:25 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
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
September 22nd, 2011, 10:43 PM
Roseville CA
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21
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
Elite Membership required to download: aRSIv4test.zip
Last Updated on September 22, 2011