Hi i’ve created a RSI and would like to have the above 7- coloured RED and the below 30 band coloured GREEN instead of the line getting shaded in those colours. I have attached an example.
kind regards
NickleB
For the oversold area (for example), you need to add the levels 0 and 30 to the RETURN function and then fill this space within the indicator parameters window.
Do the same for overbought level.
Nicolas,
I very new to this can you show me a sample of the code ?
so i understand i create a variable like
a=0-30 (0,0,255)
b=70-100 (220,220,0)
RETURN a as “Colour”
i bet this is all wrong but trying to learn
Hi,
You don’t really need to code anything for this, like Nicolas said, the lines between which you want some filling just need to be added in the “return” final line of your indicator. Then you can fill in between them with the PRT built-il tools without needing to code the filling. As you say you’re new, you’ll probable find the following video “chart settings” useful to get the hang of it:
https://www.youtube.com/watch?v=GeVWFNRVP_8&list=PLGw_ZtCHrQ9jQocXP3NwrRlpOx_FKLlSJ
as well as a whole bunch of other help videos for many other platform topics:
https://www.prorealtime.com/en/video-tutorials
These videos are useful additions to the 3 classic PRT manuals from the help menu.
This video in particular from the above PRT list page of videos shows how to add color zones:
https://www.youtube.com/watch?v=NHW3L0rHrOw&list=PLGw_ZtCHrQ9iBm_IX1GelmuToP9aph1ZB
thank you both, i have got this to work as i wanted:-)
thanks for links to videos..very helpful
All prorealtime video tutorials are also available directly here in the blog, here is the link for the full articles list:
http://www.prorealcode.com/blog-list-view/