Adding Constant Line Indicator to Another Indicator - futures io
futures io futures trading



Adding Constant Line Indicator to Another Indicator


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Adding Constant Line Indicator to Another Indicator

(login for full post details)
  #1 (permalink)
Roseville CA
 
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 20 received

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

Can you help answer these questions
from other members on futures io?
Looking freelancer for MT4 Indicator
Platforms and Indicators
GBP/ARS Pair
Traders Hideout
EQIX - Digital REITs - any experiences?
Stocks and ETFs
T​​​​​​radestation datafeed (real time and historical) to NT8
NinjaTrader
Times and Sales more data to be displayed
TradeStation
 
 
(login for full post details)
  #3 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,839 since Mar 2010
Thanks: 4,238 given, 26,582 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!

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
 
(login for full post details)
  #4 (permalink)
Roseville CA
 
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 20 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
Click image for larger version

Name:	RSIv4.jpg
Views:	164
Size:	115.9 KB
ID:	49894  
Attached Files
Register to download File Type: zip aRSIv4.zip (12.1 KB, 34 views)
Reply With Quote
 
(login for full post details)
  #5 (permalink)
Roseville CA
 
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 20 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, 29 views)
Reply With Quote
 
(login for full post details)
  #6 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,839 since Mar 2010
Thanks: 4,238 given, 26,582 received


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
 
(login for full post details)
  #7 (permalink)
france
 
Experience: Beginner
Platform: nt
 
mea109's Avatar
 
Posts: 201 since Oct 2009
Thanks: 1,776 given, 56 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.

Reply With Quote
 
(login for full post details)
  #8 (permalink)
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
 
RJay's Avatar
 
Posts: 686 since Jun 2009
Thanks: 746 given, 775 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:
 
(login for full post details)
  #9 (permalink)
Roseville CA
 
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 20 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
Click image for larger version

Name:	adding indicator error.jpg
Views:	60
Size:	102.3 KB
ID:	50014  
Reply With Quote
 
(login for full post details)
  #10 (permalink)
Roseville CA
 
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
 
Posts: 124 since Jun 2009
Thanks: 32 given, 20 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, 31 views)
Reply With Quote
The following 2 users say Thank You to ceramictilepro for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > Adding Constant Line Indicator to Another Indicator


September 22, 2011


Upcoming Webinars and Events
 

Getting Comfortable with Price Action Patterns w/Earn2Trade

Aug 4
 

Live Video Panel: Ask Me Anything w/Ironbeam Brokerage

Aug 6
     



Copyright © 2020 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