tradingmarkets4pips:
I'm an amateur coder. I'm having issues getting my indicator to work properly. The following is a RSI based momentum indicator that paints candlesticks based on RSI level + Inside Bar and Pin Bar patterns.
The indicator looks like it works. However, the [0] or [i] bar repaints to normal candle color when working out side of range of the compiled bar's range. And every bar after that doesn't paint at all or it's distorted. I've looked over my code and can't find the issue. Here is the code.
I'm an amateur coder. I'm having issues getting my indicator to work properly. The following is a RSI based momentum indicator that paints candlesticks based on RSI level + Inside Bar and Pin Bar patterns.
The indicator looks like it works. However, the [0] or [i] bar repaints to normal candle color when working out side of range of the compiled bar's range. And every bar after that doesn't paint at all or it's distorted. I've looked over my code and can't find the issue. Here is the code.
Try these changes:
if (prev_calculated == 0) limit = 1;prev_calculated + handle_RSI + 1; else limit = prev_calculated - 1; for(int i=limit;i<=rates_total;i++)
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
The indicator looks like it works. However, the [0] or [i] bar repaints to normal candle color when working out side of range of the compiled bar's range. And every bar after that doesn't paint at all or it's distorted. I've looked over my code and can't find the issue. Here is the code.