jamesmawm / High-Frequency-Trading-Model-with-IB

A high-frequency trading model using Interactive Brokers API with pairs and mean-reversion in Python
MIT License
2.5k stars 669 forks source link

WARNING: Please only use this Algorithm as a test strategy not as a Live strategy . #27

Open developeralgo8888 opened 3 years ago

developeralgo8888 commented 3 years ago

I tested this simple HFT strategy on a small account with IB both on Live Account and Paper Account not Demo Account.

Pairs tested: EURUSD & USDJPY on 24 hours period

  1. On Live Account : 98% Losses, 2% wins on all trades ( 62 trades)
  2. On Paper account : 96% Wins , 4% Losses on all trades ( 60 trades)
  3. No DEMO account testing ( Demo account contains replayed back market data so its not useful for any type of testing )

Both Live and Paper account from IB use the same realtime Market Datastream and only differ in execution . Live account executes a Live trade while paper account simulates the execution but does not open a live trade. So what's the difference between this two accounts at IB . I could not find any difference on configuration of both accounts.

May be you can share some insights ?

stopium commented 3 years ago

When a trend occurs, the win-side order may not be fullfilled. And the loss-side order may be fullfilled. So , the winrate is vary low and the loss rate is very high. Maybe you should change your order placement strategy.