xbt3k / meanreversionalgo Goto Github PK
View Code? Open in Web Editor NEWPython algorithm for trading the EUR/USD forex pair using a mean reversion strategy. The algorithm retrieves price data from OANDA's API, calculates the z-score of the closing prices, and executes a trade if the z-score is above a certain threshold (indicating an overbought condition) or below a certain threshold (indicating an oversold condition