NexusFi: Find Your Edge


Home Menu

 





Plot rectangles on RSI indi


Discussion in NinjaTrader

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




 
 

Plot rectangles on RSI indi

 
 fttrdr 
Lakeland
 
Experience: Beginner
Platform: NinjaTrader
Trading: TF
Posts: 53 since Sep 2011
Thanks Given: 4
Thanks Received: 16

Hey, guys, how do I plot rectangles on a standard RSI indicator like this?


Started this thread

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Futures True Range Report
The Elite Circle
Better Renko Gaps
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
 
 
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,102



fttrdr View Post
Hey, guys, how do I plot rectangles on a standard RSI indicator like this?


I have noticed a grid, colored layers and some small colored spots at the bottom.

Which rectangles are you talking about?

 
 fttrdr 
Lakeland
 
Experience: Beginner
Platform: NinjaTrader
Trading: TF
Posts: 53 since Sep 2011
Thanks Given: 4
Thanks Received: 16

There are standard 30 and 70 lines plotted on RSI.

I used drawing tools and overlayed 2 rectangles, top one starting at 40 Y to 100 Y, bottom one from 60Y to 0Y.

In the source code, it is Plot(New Line.... that plots 30 and 70 lines.

But I cannot find how to plot a rectangle, possibly something like Plot(New Area... - but don't know what that class would be, if any.

That's what I'm asking.

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,102


fttrdr View Post
There are standard 30 and 70 lines plotted on RSI.

I used drawing tools and overlayed 2 rectangles, top one starting at 40 Y to 100 Y, bottom one from 60Y to 0Y.

In the source code, it is Plot(New Line.... that plots 30 and 70 lines.

But I cannot find how to plot a rectangle, possibly something like Plot(New Area... - but don't know what that class would be, if any.

That's what I'm asking.

You can use DrawRectangle().

Search the NinjaTrader help file for "DrawRectangle" and you will find the syntax. For example

 
Code
DrawRectangle("Upper", true, 0, 60, CurrentBar, 100, Color. Red, Color.Red, 4)

should plot you a rectangle for the range 60 to 100.

Thanked by:
 
 
eDanny's Avatar
 eDanny 
East Rochester, NY
 
Experience: Intermediate
Platform: NT
Posts: 329 since Jul 2009
Thanks Given: 18
Thanks Received: 425

Seems DrawRegion() might be a better fit here.

Dan

Thanked by:
 
 
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,102


eDanny View Post
Seems DrawRegion() might be a better fit here.

Dan

@ eDanny:

The problem with DrawRegion is that one of its bounds needs to be an IDataSeries object. The lines of the RSI are not IDataSeries objects, so it will not easily work.

I also prefer DrawRegion() because it paints behind the horizontal lines and not on top.

To use DrawRegion() you would to add an IDataSeries object first. I did not want to make things too complicated, but just suggest a simple solution.


 



Last Updated on January 7, 2012


© 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