NexusFi: Find Your Edge


Home Menu

 





Adding Constant Line Indicator to Another Indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one ceramictilepro with 6 posts (2 thanks)
    2. looks_two Fat Tails with 2 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 RJay with 1 posts (4 thanks)
    1. trending_up 5,813 views
    2. thumb_up 6 thanks given
    3. group 2 followers
    1. forum 9 posts
    2. attach_file 5 attachments




 
 

Adding Constant Line Indicator to Another Indicator

 
 ceramictilepro 
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!

Started this thread

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
Quant vue
Trading Reviews and Vendors
 
 
 
Fat Tails's Avatar
 Fat Tails 
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 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.

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

Name:	RSIv4.jpg
Views:	334
Size:	115.9 KB
ID:	49894  
Attached Files
Elite Membership required to download: aRSIv4.zip
Started this thread
 
 ceramictilepro 
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
Started this thread
 
 
Fat Tails's Avatar
 Fat Tails 
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 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.

 
 
mea109's Avatar
 mea109 
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.

 
 
RJay's Avatar
 RJay 
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 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

 
 ceramictilepro 
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

Attached Thumbnails
Click image for larger version

Name:	adding indicator error.jpg
Views:	220
Size:	102.3 KB
ID:	50014  
Started this thread
 
 ceramictilepro 
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
Started this thread
Thanked by:

 



Last Updated on September 22, 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