Mr.Narayan
Yes there are multiple situations,Wanted a sample so that i can tweak
There can be more than 2 situations , as follows :The day's Open is above the Pivot Point , and the day's Current is also above the Pivot Point
If the current price is above the pivot it will be green and in case drops below the pivot it becomes RED.
The day's Open is above the Pivot Point , but the day's Current drops below the Pivot Point
if the current price goes up the pivot and drops down then it has to red.
The day's Open is below the Pivot Point , but the day's Current rises above the Pivot Point
if the current price is abobe pivot it changes to green
The day's Open is below the Pivot Point , and the day's Current also remains below the Pivot Point
then the CP will be red
Hope i have clarified.Thanks for your time
Suresh