kieran-mackle / AutoTrader

A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
https://kieran-mackle.github.io/AutoTrader/
GNU General Public License v3.0
937 stars 215 forks source link

Running paper trade mode in Oanda #82

Open ktlim86 opened 1 year ago

ktlim86 commented 1 year ago

Hi,

I am trying to run oanda in paper trade mode.

Updating trading bots.
Apr 24 2023 14:00:00: No signal detected (XAU_USD).

Bot update complete: Bollingerband Breakout
Apr 24 2023 14:00:00: XAG_USD long limit order of 220.71 units placed.

Bot update complete: Bollingerband Breakout
Apr 24 2023 14:00:00: No signal detected (EUR_USD).

Bot update complete: Bollingerband Breakout
Apr 24 2023 14:00:00: No signal detected (AUD_USD).

Bot update complete: Bollingerband Breakout
Apr 24 2023 14:00:00: No signal detected (GBP_JPY).

I am trying to understand how it works. I see a lot of orders placed but I dont see any positions. I saw there is a default .paper_broker_hist created but i dont see any position opened. Not sure if I have missed out any.

NAV | equity | margin | open_interest | long_exposure | short_exposure | long_unrealised_pnl | short_unrealised_pnl | long_pnl | short_pnl | time -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:10:24.421045+00:00 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:11:24.517374+00:00 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:12:24.528824+00:00 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:13:24.493515+00:00 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:14:24.477406+00:00 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:15:24.481889+00:00 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:16:24.534866+00:00 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:17:24.519617+00:00 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:18:24.478281+00:00 1000 | 1000 | 1000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2023-04-24 13:19:24.676220+00:00