Need help for Time or bar feature

 

Hi guys,

for my expert i want to know on which bar the last trade took place, 

and additionally i use a parobilc sar as an indikator and there i want to know

on which bar the SAR changed the direction.

In which way could i get the correct BAR-Number or the number of bars in the past.

Explanation:

I want to change trade parameters if the current direction has been a special number of

bars (SAR or Trade-Start)


Ty

Ralf