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




 
Search this Thread

Plot rectangles on RSI indi

  #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?
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 
  #3 (permalink)
 
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



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


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


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


© 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