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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.
Thanks in advance for your help!