This article will elaborate on a few specific commands that will help you avoid common errors when configuring your custom Oanda strategies automation.
Oanda offers a practice exchange as well as the live one. To distinguish the difference between the 2, use the e= parameter respectively.
The symbol on Tradingview does not match what the Oanda API requires. You will want to review this article to make sure you are using the proper symbol value. Instrument not supported
Open with a stop-limit order
t=stop or t=stop,fok or t=stop,ioc
e=oandapractice s=usd/cad b=long t=stop p=10% d=1
e=oandapractice s=usd/cad b=long t=stop,fok p=10% d=1
e=oandapractice s=usd/cad b=long t=stop,ioc p=10% d=1
Take Profit / Stop-Loss / Trailing-Stop
current price + value or fixed price
tp= or ftp=
sl= or fsl=
ts= or fts=
Oanda allows you to place all of these at the same time that you open your trade.
e=oandapractice s=usd/cad b=long tp=10% sl=-10% ts=-5% d=1
e=oandapractice s=usd/cad b=short tp=-10% sl=10% ts=5% d=1
You can add the stops to an existing position using c=position.
You can use the positions average instead of the current price by adding ps=position.
e=oandapractice s=usd/cad b=long c=position ps=position tp=10% d=1
e=oandapractice s=usd/cad b=long c=position ps=position sl=-10% d=1
e=oandapractice s=usd/cad b=long c=position ps=position ts=-1% d=1
You can change the order type to stop-limit by adding t=stop.
e=oandapractice s=eur/usd b=long q=1 t=stop p=10%
Should you have any further questions, please do not to hesitate to contact us directly via email firstname.lastname@example.org or by joining our Discord.
Article is closed for comments.