Check exit on ask or bid during bar event in algo trading
Question for someone in my Telegram group but this is a influential person so thanks to them
When I check for an exit, I am using bar events (onBar) for each FX pair.
When I check for price action on the price, should I be using ask bar or bid bar close? Or should I use the corresponding mid point of the ask or bid bar?
You buy at the ask and sell at the bid, so the most natural way to handle it is to exit long trades at the bid, and exit short trades at the ask. Alternatively you can use the mid price, but it is really just a matter of preference.FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!