Support Board
Date/Time: Sat, 11 Jan 2025 10:38:20 +0000
Post From: RSI different from others
[2016-11-16 03:25:46] |
Sierra Chart Engineering - Posts: 104368 |
The Sierra Chart RSI is properly calculated. That you can trust. However, it supports various moving average calculations. For the Average Type study Input, go through each of the available averages to see which one matches. Also you may want to look at the RSI average rather than the raw RSI. Not really sure. You can look at the calculation of it. Here it is: SCFloatArrayRef RSI_S(SCFloatArrayRef In,
SCFloatArrayRef RSIOut, SCFloatArrayRef UpSumsTemp, SCFloatArrayRef DownSumsTemp, SCFloatArrayRef SmoothedUpSumsTemp, SCFloatArrayRef SmoothedDownSumsTemp, int Index, unsigned int AveragingType, int Length) { if (Length < 1 || Index < 1) return RSIOut; // calculate Up/Down sums float PreviousValue = In[Index - 1]; float CurrentValue = In[Index]; if (CurrentValue>PreviousValue) { // upward change UpSumsTemp[Index] = CurrentValue - PreviousValue; DownSumsTemp[Index] = 0; } else { UpSumsTemp[Index] = 0; DownSumsTemp[Index] = PreviousValue - CurrentValue; } // smooth the up/down sums MovingAverage_S(UpSumsTemp, SmoothedUpSumsTemp, AveragingType, Index, Length); MovingAverage_S(DownSumsTemp, SmoothedDownSumsTemp, AveragingType, Index, Length); // compute RSI if (SmoothedDownSumsTemp[Index] != 0.0f) { RSIOut[Index] = 100.0f - 100.0f / (1 + SmoothedUpSumsTemp[Index] / (SmoothedDownSumsTemp[Index]) ); } else { RSIOut[Index] = RSIOut[Index - 1]; } return RSIOut; } Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |