Arrow Signal into "Always In" EA

 

Hi All

I am a newbie so bear with me.

I am using an indicator which plots arrows for when to buy or sell.

I have put together an EA which is intended to always be in the market but I have two questions.

1. How do you call the arrow signals from the indicator. Basically I need to know when an arrow is plotted to open an order. The indicator uses 2 buffers, one for buy and one for sell and I can call their values with icustom() but I need to know the exact time when the arrow signal posts so as to open a new order.

2. When the signal arrow is given how do you immediately close the open order and reverse to the opposite position.

Any help or examples would be greatly appreciated.

Thanks in advance for your help!

Reason: