~~Title: OANDA~~
{{tag>guides}}
==== Example Syntax for OANDA ====
It is always recommended to use testnet/sandbox first!
### OANDA Long/Short ###
# Uncomment this to set exchange & symbol (if different from your chart/alert!)
#exchange=oanda-sandbox symbol=eurusd
# Uncomment this for multi accounts (and fill in your accounts)
#parallel=acc1,acc2,acc3
# Uncomment this to skip entry if ANY position is already open
#ifpos=abort
# Close open positions on the opposite side at market
# ..if no matching position is found, skip the delay and jump to main order
close=[!side] type=market ifnone=main
# Give closing order time to execute
delay=2s
# Place main position order at market
# error=abort : Abort/skip rest on error (after retries)
# retries=3 : Give up after 3 retries in case of overload
:main
cancel # cancel any open order/stop first
[side]=YOUR_BUY_IN% leverage=YOUR_LEVERAGE stoploss=[-]YOUR_STOP_LOSS% takeprofit=[+]YOUR_TAKE_PROFIT% type=market error=abort retries=3 ~~codedoc:clean:#notify=discord:1~~
''Quantity, leverage, stoploss and takeprofit have to be adjusted to your strategy / personal needs!''
=== Attention ===
Always double check that you are using the right syntax/alert!