Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Draw Region for RSI or Stoch
Collapse
X
-
oldhiker,
I am happy to assist you.
You can add more plots to an indicator. For example, in Initialize()
Add(new Plot(Color.FromKnownColor(KnownColor.Blue), PlotStyle.HLine, "High"));
Then in OnBarUpdate()
High.Set ( 80);
You also need to declare it in the "Properties" section like :
public DataSeries High
{
get { return Values[1]; }
}
Please let me know if I may assist further.Last edited by NinjaTrader_AdamP; 01-15-2012, 07:40 PM.
-
Draw Region for RSI or Stoch
I can follow the DrawRegion coding for Boll Bands, because there are three separate lines, but I cannot make the code to draw over sold / over bought zones on a RSI or Stoch, because it has only the one line plotted.
I would appreciate any assistance on how to colour the regions at the top and bottom of an RSI or Stoch, for example.
Thank you in advance.
Hopefully I can then develop the code to show a 'warning' band and a 'danger' band on similar "single line plots" that oscillate above and below a zero.
Thanks againTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by alifarahani, Today, 09:40 AM
|
6 responses
38 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
||
Started by Waxavi, Today, 02:10 AM
|
1 response
18 views
0 likes
|
Last Post Today, 03:03 PM | ||
Started by Kaledus, Today, 01:29 PM
|
5 responses
15 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by Waxavi, Today, 02:00 AM
|
1 response
12 views
0 likes
|
Last Post Today, 02:53 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
3 responses
17 views
0 likes
|
Last Post Today, 02:41 PM |
Leave a comment: