Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
RSI on smoothed price
Collapse
X
-
I did the following:
myDataSeries.Set((Close[0] + 2*Close[1])/3);
Plot0.Set(RSI(myDataSeries, p, 0)[0]);
It compiles, but it doesn't plot anything!
Thank you
Leave a comment:
-
Help Guide Typo, I will fix it.
Should be
myDataSeries.Set(High[0] - Low[0]);
Leave a comment:
-
I tried the example in the link and it doesn't work either!
myDataSeries.Set(High - Low)[0];
"operator - cannot be applied"
Leave a comment:
-
I introduced myDataSeries and then I typed:
myDataSeries.Set((Close[0] + 2*Close[1]/3);
Plot0.Set(RSI(myDataSeries, 2, 0));
I get "error overload" and "cannot convert indicator RSI to double".
Leave a comment:
-
You can not pass in a double value into any indicator method. You have to pass in any object which implements the IDataSeries interface.
The DataSeries object does this.
Here are some references -
- http://www.ninjatrader-support.com/H...iesObject.html
- http://www.ninjatrader-support.com/v...ead.php?t=7299
Leave a comment:
-
RSI on smoothed price
Hi everyone
I want to calculate the RSI on a smoothed price.
I did the following:
double smooth = ... ;
Output.Set(RSI(smooth, p, 0)) ;
Why it doesn't work?
Thank youTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by robforee2, Today, 01:05 PM
|
1 response
7 views
0 likes
|
Last Post
|
||
Started by SpikeLGWG, Today, 12:35 PM
|
1 response
11 views
0 likes
|
Last Post
|
||
Started by Kaalhus, Today, 12:47 PM
|
2 responses
26 views
0 likes
|
Last Post
![]()
by Kaalhus
Today, 01:05 PM
|
||
Started by Johnny, Today, 11:55 AM
|
3 responses
21 views
0 likes
|
Last Post
|
||
Started by MGHORBEL, Today, 10:48 AM
|
0 responses
23 views
0 likes
|
Last Post
![]()
by MGHORBEL
Today, 10:48 AM
|
Leave a comment: