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 2,875 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 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 Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
[WTS] ATAS Lifetime ULTRA license – EU buyers only – …
Platforms and Indicators
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
AI for Traders — Agents, Memory, Tools & Real-Worl …
Elite Quantitative GenAI/LLM
 
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117



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?


Reply With Quote
  #4 (permalink)
 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 Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


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.


Reply With Quote
Thanked by:
  #6 (permalink)
 
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


Reply With Quote
Thanked by:
  #7 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


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.


Reply With Quote




Last Updated on January 7, 2012


© 2026 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 - Downloads - Top
no new posts