hi
the code you posted is evolved from concept by markus,(Rockwell trading)a senior trader.
he uses RANGE BARS. Setting of rangebar i 10 to 12% of daily ADR over 5 days. ADR is avrage daiuly range ,daily range = high - low on that day.

He uses bollinger bands 12-2,Macd,Rsi(7).

THE BAR COLOR IS FROM MACD.
when macd>0 and macd>signal, bar gets green color
if macd<0 and macd<signal, bar gets red color

when RSI(7)>70,YOU GET BUY GREEN ARROWS UP
when RSI(7)<30,YOU GET SELL RED COLOR DOWN ARROWS
When upper bband(12,2) starts rising,it is uptrend.
when lower bband starts falling it is downtrend.

Bar color by MACD, ARROW COLOR BY RSI(7).
WHAT RIBBON YOU WANT FROM WHICH PART?

hi
RSI has no meaning in your code.
the ribbon and bar color is based on macd.

then it has only half power.
rsi up has to be green up arrow,rsi downhas to red down arrow.
replace shapenone with arrows.
then you can see macd and rsi on the same chart.
macd is not ok to trade on by itself.
it needs filters.
when you follow rockwell code you need to follow it fully or else you dont any result.
good luck.

Indemnity, Disclaimer & Disclosure
Notice:
• By visiting Traderji.com you automatically indicate that you agree to our Forum Rules, Indemnity, Disclaimer & Disclosure Notice and General Content Disclaimer Notice and indemnify Traderji.com, its
associates and related parties of all claims howsoever resulting from
the usage of the forum/site.
• Disclaimer: Trading or investing in stocks & commodities
is a high risk activity. Any action you choose to take in the markets
is totally your own responsibility. You are recommended to make appropriate enquiries and seek appropriate advise before sending money, incurring any expenses, acting on recommendations or entering into any commitment in relation to any advertisement published here. Traderji.com does not vouch for any claims made by the advertisers of products and services. Traderji.com will not be held liable for any consequences in the event such claims are not honoured by the advertisers. Traderji.com will not be liable for
any, direct or indirect, consequential or incidental damages or loss arising out of the use of any information by anybody mentioned anywhere on this site.
• Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein.
The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy or legality of any information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. Although we constantly delete all irrelevant content and/or SPAM, if you should find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.