
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
まず自分自身に問いかけてください。なぜこれをやりたいのですか?
EAでRSIを計算する際の「負荷」を軽減するためでしょうか?
「はい」の場合、増分計算であることを考慮すると、EMA の使用は完璧な解決策です。 インジケーターを使用する代わりに、EA で RSI を段階的に計算するだけです。
それともこれを望む別の理由がありますか?
Yes, I need it because I want the RSI to use the average of the price movements of each currency pair. However, when I change for(i=pos; i<rates_total;i++) to for(i=pos;i<Max_Bars;i++) in the main loop, the displayed RSI disappears and I am in trouble. The indicator is very heavy when using rates_total, so I want to make it lighter.
What do you think about this code?
I have already explained that the way the RSI is calculated, based on EMA, you can't just reduce the number of bars without greatly affecting the calculations.
You can use SMA instead, but the results will be different. However, you need to understand the maths behind the RSI first, before you can substitute the EMA for SMA.
I have already explained that the way the RSI is calculated, based on EMA, you can't just reduce the number of bars without greatly affecting the calculations.
You can use SMA instead, but the results will be different. However, you need to understand the maths behind the RSI first, before you can substitute the EMA for SMA.
Thank you for your help, Im gonna try it
Realy appreciate
Are you sure you took this into account
before doing this
I would like to display only the specified bars by RSI in order to lighten the indicator, but it is not displayed well. How to display RSI for only specified of bars?
In any case, it's a pointless idea. The depth you are trying to limit is only calculated once after initialization. I think you are trying to save about a few milliseconds not with every tick, but only 1 time when attaching.
It's like trying to turn the ignition key faster in order to drive 1000 kilometers faster.