Hi to all,
Trying to code a strategy with ability to open positions for many pairs, at some point I have to check is the spread is below the acceptable value, but could not find any way.
Since spread is very usable info there should be some variables holding this data in real time for all pairs !!? ( like MT4 marketinfo(pair,spread) function)
Have an idea of coding an array in "onTick" which subtracts Ask and Bid prices and holds it in the array, but the idea of continuously taking cpu time and my level of java dont let me do it

Can you share your ideas or better code examples for spread ?
Thanks alot.