Tag Archives: Check

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

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.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

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!