Simple background trading bot for Oanda account (v20 REST API)

Termos de Referência

Title:
Simple background trading bot for my Oanda account (v20 REST API)

Overview

Hi, I need a simple, lightweight event based standalone trading bot that connects directly to my Oanda account using broker’s standard REST API (V20 account) via VPS

The bot just needs to look at group of 5 currency pairs (manually selectable and adjustable) in different 4 baskets, do some basic percentage math every period, and place trades based on a defined trigger. Each basket has manually selectable Ture/False toggle in background file (such as in plain English of Config.imi etc) No change in the coding. No interface is required.

It will run in the background on a small VPS Windows server alongside another script, so the code needs to be highly efficient and use very little memory. You can use whatever programming language you are fastest and most efficient with (like Python, C#, C++, etc.), as long as it runs light.


1. The Math & Rules (with on/off selectable toggle in ANY number of Seconds or Minutes (Own time frame) 

**Flip Prices:** For directionally inverted pairs (like USD/CAD), just flip the price math (1 / Price) so it aligns with the other pairs in the group. Example; (EUR_USD GBP_USD AUD_USD NZD_USD USD_CAD > CAD_USD)

**Find the Center (Median) :** For each group of 5 pairs, calculate individual Periodic percentage move (Current Price - Start Price / Start Price) x 100, sort them percentages from lowest to highest, and pick the middle one (the 3rd pair) as the center anchor (Median)

**The Trigger Rule:** Individual% - Median /SD 
For the numerator, subtract that center anchor (Median) from individual pair's percentage move to get the current residual gap value. (explained in the attached excel sheet as well) 

For the denominator, calculate the standard deviation of that same residual gap calculation in numerator over the past 100 historical periods (rollover of same calculated values)(NOT RAW data)

Divide the individual current residual by this historical residual standard deviation (over 100 periods) to get the final Z-score.

If the result is greater than >2.0 or <2.0, it triggers a trade. 
BUT……… it must validate following sub conditions: 

**The Condition of Number of Pairs that Define Silence Filter:** 
Toggle: Market Volatility Filter: True/False 
(three conditions)
If Leader SD>2 or SD<2 (SD values manually adjustable)
If Follower pairs SD<0.5 or SD>0.5 (SD values manually adjustable) 
IF This NUMBERS of followers SD move in same direction (2,3,4)(manually adjustable) 

Consider RAW data to calculate SD in an individual currency’s co-movement test of Half % in SD that decides Silence in Volatility or otherwise. 

Further explanation of Silence Filter: (To protect against a dead market (or just because of violent spike in One instrument) check link to individual volatility of remaining pairs against their averages. If at least 1 or 2 or 3 or 4 out of the 5 pairs are not moving more than half (0.5x) of their standard historical speed (in the same direction), the bot must instantly declare the group as Silent. The bot will freeze that basket and skip the cycle, ignoring fake signals on background noise. This  SD will be based on RAW data of past 100 selected periods) (deque))

## 2. Keeping the Server Safe & Light
* **Low Memory:** The bot must run quietly in the background as a simple standalone task. Do not use heavy databases or heavy charting platforms (like MetaTrader MT4/MT5), as my VPS server has very tight memory limits. Just use tiny, fast local arrays in RAM to hold the last 100 prices.
* **Timer Delays:** Don't check all currency groups at the exact same millisecond. Space them out by 2 seconds each so the server's CPU stays near 0%.
* **Auto-Reconnect:** If the internet drops for a few seconds, the bot must automatically pause, wait a bit, and reconnect itself safely without freezing up or dying silently.

---

## 3. Safe Trade Execution
* ** True/False: Limit Orders:** To protect account from bad slippage or wide spreads during news, the bot may use Limit Orders set slightly below the price (like -0.1 or -0.2 pips) (pips selection are manually adjustable)
* **15-Second Delete:** If a limit order doesn't get filled within 15 seconds, the bot must automatically cancel it so we don't leave old, stale trades hanging open.
**Timer Reset:** The Periodic countdown (whatever the time frame is selected) resets completely to zero at the start of every new block of time.
* **No Opposite Trades:** If the bot already has a buy trade open on a pair, block it from opening a sell trade on that same pair at the same time (the account runs on Netting Not Hedging) 

* **Manual Close Pause:** If I manually close a trade on my phone app, the bot must notice it, pause for 1 minute, and reset its timer before looking at that group again.

## 4. Settings File & Daily Logs
* **Settings Text File:** All settings (like risk %, max trades, trade hours, and max spread filter) must be written in a simple configuration text file so I can easily change them on my notepad without touching the main code. 

* **Daily Spreadsheet Logs:** The bot must save all its calculations and trade outcomes into a daily CSV spreadsheet file so I can review them at the end of the day.

## Project Terms & Delivery 

* **VPS Deployment:** Once the code is ready, the developer connect it to Windows VPS for deploying/installing the bot so that it runs successfully in the live background.

* **Testing Phase:** Developer can open its own demo account in Oanda to test it at their side. 

* **Warranty:** The developer provide a full 2-week post-delivery warranty. If any bugs, calculation lag, or stream reconnection errors occur during the first 14 days of running live, the developer fix them for free.



Respondido

1
Desenvolvedor 1
Classificação
(1)
Projetos
3
0%
Arbitragem
1
0% / 0%
Expirado
0
Trabalhando
2
Desenvolvedor 2
Classificação
(3)
Projetos
9
67%
Arbitragem
0
Expirado
0
Trabalhando
3
Desenvolvedor 3
Classificação
(2)
Projetos
2
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
4
Desenvolvedor 4
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 2 códigos
5
Desenvolvedor 5
Classificação
(8)
Projetos
11
36%
Arbitragem
0
Expirado
1
9%
Carregado
6
Desenvolvedor 6
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(13)
Projetos
14
36%
Arbitragem
3
0% / 100%
Expirado
0
Livre
Publicou: 1 artigo
10
Desenvolvedor 10
Classificação
(6)
Projetos
10
10%
Arbitragem
9
0% / 89%
Expirado
1
10%
Livre
11
Desenvolvedor 11
Classificação
(52)
Projetos
64
39%
Arbitragem
15
27% / 60%
Expirado
1
2%
Trabalhando
12
Desenvolvedor 12
Classificação
(170)
Projetos
203
47%
Arbitragem
5
20% / 60%
Expirado
3
1%
Livre
13
Desenvolvedor 13
Classificação
(52)
Projetos
58
59%
Arbitragem
4
0% / 25%
Expirado
1
2%
Livre
14
Desenvolvedor 14
Classificação
(6)
Projetos
11
27%
Arbitragem
1
0% / 0%
Expirado
5
45%
Livre
15
Desenvolvedor 15
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
(87)
Projetos
121
68%
Arbitragem
5
80% / 0%
Expirado
12
10%
Trabalhando
17
Desenvolvedor 17
Classificação
(20)
Projetos
26
38%
Arbitragem
6
33% / 50%
Expirado
0
Livre
18
Desenvolvedor 18
Classificação
(4)
Projetos
5
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
Hi developer I want to convert my mt4 EA to mt5 EA . I have a mt4 ea with source code. i want developer to copy same mt4 code and create mt5 EA
Gold hunter v5 30+ USD
*TITLE:* 5 Trades EA - EMA20/50 + RSI - Safe for Small Account *SPECIFICATION:* I need MT5 EA - Source Code .mq5 *Logic:* Buy: EMA20 > EMA50 and RSI(14) 45-70 Sell: EMA20 < EMA50 and RSI(14) 30-55 Timeframe M15, Symbol XAUUSD and all Forex *Trade Management:* Max 5 trades at same time. Fixed lot 0.01. No martingale. No lot increase. Distance between trades 150 points. Do not open all 5 at same price. Max 5 total
I need an Expert Advisor (EA) developed for MetaTrader 5 (MT5) tailored for trading on Exness accounts. Account & Server Details: Trading Platform: MetaTrader 5 (MT5) Broker: Exness Execution Type: Market / Pending Orders Account Type: [Specify: Standard / Pro / Raw Spread / Zero] Target Instruments: [Specify pairs, e.g., XAUUSD, EURUSD, BTCUSD] Strategy Requirements: Entry Rules: [Insert your buy/sell entry
Monthly Report: August 2026 World PEACE Multi FX Algo generated a total realized profit of approximately 31,966 JPY during August. The provider account is normally operated with approximately 200,000 JPY of capital. Compared with this standard operating amount, the realized profit for August was approximately 15.98%. Please note that this is not a compounded monthly return. Realized profits are withdrawn regularly
I’m looking for an experienced developer who can build a Martingale trading bot. I’m willing to pay a fair price for the right developer. I have an example trading account that demonstrates exactly how I want the bot to operate. The strategy is straightforward: the bot trades continuously using a Martingale system. The only exception is that it should automatically pause trading during high-impact news events or
This is a Tradingview project. Would you be able to make this? With a win rate and profit factor and percentage made and profit made and max dd reached. How many modifications would I be able to do? Could there be a table that shows win percentage profit factor and trading window where trades shouldn’t be placed and follows the rules of the pdf How long would it take and would it work on ninjatrader also
Account size 50$ to 100$ or 5000USC to 10000USC ( Account $ Size may not matter ) Max Leverage 1000-2000 Min Lot 0.01 [ if averaging possible ] Averaging + Shift TP Faster Required if Trend Direction is Clear Account Protection Maxx Profit Max Loss Key Based Activation News Filter Need Expert to handle this to avoid false entry [ Developer can suggest extra additional filters inputs here ] as i mentioned I have no
i need some tradingview strategy that i want to use as a tester, i have something that i am working on currently and i need someone that can provide me with tradingview strategies that doesn't have a win rate, the one with 1:1 RR it need to have low win rate like 10% or 5% profitability, i am not paying $30 for,i dont have up to that for this cause i only want to use it as a test, if anyone have any to send me please
hello i need help building a ea bot for mt5 and i have started on claude but i will need someone if a incredible experience to make my ideas come to live. please contact so we can schedule a quick call and i can share anything that concerns you for the task
I am looking for an experienced MQL5 developer who can BOTH research trading strategies and develop a commercial-quality MetaTrader 5 Expert Advisor. This is NOT simply a coding job. The developer is free to choose the trading logic, indicators, entry method, exit method, timeframe architecture and strategy type. I do not require the EA to copy or resemble any existing commercial EA. My priority is: ROBUST LONG-TERM

Informações sobre o projeto

Orçamento
30 - 50 USD
Prazo
de 1 para 5 dias

Cliente

(2)
Pedidos postados6
Número de arbitragens0