Hi,
So you didnt implement a buffer for it,you should define a buffer,then spend the variance value into the buffer,or you could do it via global variables.
Or you could do this formula directly into your EA:
double spread = (MarketInfo("XBRUSD",MODE_ASK) - MarketInfo("XTIUSD",MODE_BID)) / Point/divider;
Mehrdad Jeddi:
Hi,
So you didnt implement a buffer for it,you should define a buffer,then spend the variance value into the buffer,or you could do it via global variables.
Or you could do this formula directly into your EA:
I put the code as suggested into the EA & disabled the indicator. EA now works fine. Many thanks Mehrdad.
wsandy59:
I put the code as suggested into the EA & disabled the indicator. EA now works fine. Many thanks Mehrdad.
OK,Good,You're welcome,
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm trying to develop a simple indicator that tells me the difference between 2 similar products eg. UK & US Oil. The indicator correctly displays variance on a chart but does not send the same value to my EA.
Any help would be appreciated.