hootnot / oandapyV20-examples

Examples demonstrating the use of oandapyV20 (oanda-api-v20)
MIT License
147 stars 65 forks source link

Please add -- An example on trading using this library #4

Closed developeralgo8888 closed 7 years ago

developeralgo8888 commented 7 years ago

Is it possible to put together a small single example for trading demonstration only i.e

  1. automatically connect to oanda
  2. Start receiving real-time streaming data and at the same time store the received data for further calculations in step 3 --strategy calculations . Maybe Store it in a database or somewhere that it can be pulled fast to be used algo trading calculation or backtesting etc
  3. Simple strategy for demonstrations only e.g a moving average strategy in 1 minute timeframe
  4. Calculate whether to enter market order -- buy or sell with automated TP and SL
  5. Track the trade
  6. Close the trade
  7. get the portfolio update

just something simple for illustrations

hootnot commented 7 years ago

more examples will follow on short term, a trading example will be part of it

developeralgo8888 commented 7 years ago

Thanks , still waiting for the above example . When do you think you will be able to have trading example ready