Please can someone help me

 
Does anyone have the answer to this one?

I have an indicator that shows up and down arrows and I want to use it in an EA, but I only get a signal when there is a new arrow, so when you first load the EA you have to wait for the next arrow for it to initiate a buy or sell trade.

How do I read icustom backwards in a loop to find the position of the last arrow in the indicator when the EA first starts?
Reason: