
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
would you please explain this equaiton? in my understanding, the Close[0] might be the chart ask or bid price, so bidAdj might be the off or the off plus the chart spread, thank you
I've noticed this with multiple brokers. Some have the bid-ask spreads tighter than the chart and some set them wider. I'm sure there is a reason, but I can only guess, which is that the chart data is coming from a different server than the broker's actual Bids.
Here's a simple equation to find out how much (if any) your broker chart differs from your actual broker bid. I put this in all of my EAs and use bidAdj whenever I need to compare actual prices to the chart data.
double bidAdj = Close[0] - Bid;
Be careful of the sign. If your broker has narrower spreads than the chart this number will be negative. And if they are wider, it will be positive. Note, this number is to adjust the chart Bid/price only. If you want to know the full chart spread then you should double this number, since I've found that the amount the Bid is off is the same as the amount that the Ask is off, but in the other direction.
Mathematically, you would add bidAdj to convert from (or compare) chart data to actual. Subtract bidAdj to convert from (or compare) actual Bid to chart values.
One more interesting point. During EA testing the chart data is used rather than the brokers actual bid prices. But using this equation results in a 0 difference. Therefore, it's safe to always use this adjustment factor.
Never stop coding!