Alarm for PSAR

 
Hi Friends,
I need some help with setting up an Alert/Alarm when Parabolic SAR changes the direction. Can someone please guide me in the right direction.


Thanks
The_One
 
the_one:
Hi Friends,
I need some help with setting up an Alert/Alarm when Parabolic SAR changes the direction. Can someone please guide me in the right direction.


Thanks
The_One

if(iSAR(NULL,0,0.02,0.2,1)<Low[1] &&
   iSAR(NULL,0,0.02,0.2,0)>High[0])  
{
   Print("Trend down");
} 
 
if(iSAR(NULL,0,0.02,0.2,1)>High[1] &&
   iSAR(NULL,0,0.02,0.2,0)<Low[0])  
{
   Print("Trend up");
}
Reason: