Can I move the iSAR(...) value to a variable to say the dot is on the Top/Bottom?

 
I'd like a way to move a value into my variable called, "SAR_DIRECTION" so that when the dot is on top of the candle it will move in the value = "TOP" and when it's on the bottom of the candle stick it will move in the value = "BOTTOM". Is there a way to do this?
 

If the value of the sar dot is above price, it is on top, below price, on the bottom

 
phy:

If the value of the sar dot is above price, it is on top, below price, on the bottom

Ok, so when you say price you mean the "Bid" or "Ask" price?


something like this?

double SAR_PRICE = iSAR(NULL,PERIOD_H1,0.02,0.2,0)

double CURRENT_PRICE = Bid;

string SAR_DIRECTION;


if (SAR_PRICE > CURRENT_PRICE)
SAR_DIRECTION = "TOP";
else
SAR_DIRECTION = "BOTTOM";


I also tried this and it's not working correctly...


if(SAR_PRICE > CURRENT_PRICE)
SAR_DIRECTION = "TOP";
if (SAR_PRICE < Ask)
SAR_DIRECTION = "BOTTOM";


Currently it will say, on my comment windows display, "Direction: Top" but it wont change if it moves to the bottom.
Would "Bid" be the correct reserved variable to use?
Reason: