Like i said, use the search function of this forum and you will find a thread where a
pinescript has been posted. Its in german but like me u could use google translate
when you got a problem and the answer is in a language which is not your main language.
But in order not to be a complete ******* in your mind i'll post you the thread in here: