I have a algorithm that I need to get information from the Bid/Ask book from two different stocks to trade them.
The issue is, that I can run that algo in the function OnInit(), which requires me to keep replaying the EA.
I would like to use the function OnBookEvent(), but when I try to use it, it result on a error since I'm trying to get information on two different stocks.
Does someone know how can I make this algo to run automatic throughout the trading hours?
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.
Hey there,
I have a algorithm that I need to get information from the Bid/Ask book from two different stocks to trade them.
The issue is, that I can run that algo in the function OnInit(), which requires me to keep replaying the EA.
I would like to use the function OnBookEvent(), but when I try to use it, it result on a error since I'm trying to get information on two different stocks.
Does someone know how can I make this algo to run automatic throughout the trading hours?
Thank you!