I want to code slingshot indicator which will show;
If --- High>High then;
If --- Close<Close .
If --- Low<Low then;
If --- Close>Close.
thanks for helping.
You have not explained how you need help.
It may not be a good idea to use bar in your calculations as the values can change many times until the bar is closed.
I will help and code it for you, if you really believe that bar  can give you the benefit.
Please tell me ¬‿¬)
Thanks you very much for interest guys. I found some slingsjot indicator which better then my formula:):).
Good news \ (•◡•) /