fbpx

Check exit on ask or bid during bar event in algo trading 

(Last Updated On: December 5, 2017)

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?
https://www.dukascopy.com/client/javadoc/com/dukascopy/api/IStrategy.html
Answer was:
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.
NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Subscribe For Latest Updates

Sign up to best of business news, informed analysis and opinions on what matters to you.
Invalid email address
We promise not to spam you. You can unsubscribe at any time.

New trading technical analysis indicator course  for hot pairs

Scroll to Top