1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

New EA SyForge - Yet Another Autotrading Python Script

Discussion in 'Expert Advisor atau Robot Forex' started by Symphoenix, 03 Feb 2019.

  1. Symphoenix

    Symphoenix Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Not exactly. It could be scaled to be an HFT latency arbitrage bot but I don't have the ressources to do so. I prefered developping like a time filter to delay the quotes processing. So, every minutes, a probe is launched to see if there is a latency opportunity which would act like a trigger to the whole position opening thing.
     
  2. reachme

    reachme Member Credit Hunter

    Equity
    Credit
    Ref Point
    I'm getting the below error when I try to run Syforge.py. I have installed all the dependencies. Any idea?

    PS C:\Users\Admin\Downloads\SyForge_v1.4> python .\SyForge.py
    Traceback (most recent call last):
    File ".\SyForge.py", line 14, in <module>
    import covar
    File "C:\Users\Admin\Downloads\SyForge_v1.4\covar.py", line 16, in <module>
    from statsmodels.tsa.stattools import coint, adfuller
    File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\statsmodels\__init__.py", line 10, in <module>
    from statsmodels.tools.sm_exceptions import (ConvergenceWarning, CacheWriteWarning,
    File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\statsmodels\tools\__init__.py", line 1, in <module>
    from .tools import add_constant, categorical
    File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\statsmodels\tools\tools.py", line 8, in <module>
    from scipy.linalg import svdvals
    ModuleNotFoundError: No module named 'scipy'
     
    • Useful Useful x 1
  3. Mickeyline

    Mickeyline New Member

    Equity
    Credit
    Ref Point
    try install the module 'scipy', i think that is also one of the dependencies that need to be installed for it to work.
     
    • Friendly Friendly x 1
  4. Symphoenix

    Symphoenix Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello reachme !
    You are just one step away to make it work : run "pip3 install scipy" and you should be good :ok:
    I've created a simpler way to install dependencies in the next version :)
     
    • Winner Winner x 1
  5. reachme

    reachme Member Credit Hunter

    Equity
    Credit
    Ref Point
    Perfect. Last puzzle. What is account ID in Oanda? I got only api from them.
     
  6. Symphoenix

    Symphoenix Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    It's the sub-account number ;)
    By the way, I recommend creating a new one for the bot...
     
    • Useful Useful x 1
  7. reachme

    reachme Member Credit Hunter

    Equity
    Credit
    Ref Point
    Thanks for your help. Finally, I got the screen like you :D. Now need to learn how to use this to trade ;)

    Capture.JPG
     
  8. Symphoenix

    Symphoenix Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Well done Dude ! :ok:
    Sit down, relax and look at it working ;)
     
    • Friendly Friendly x 1
  9. toracliviuconstantin

    toracliviuconstantin Member Credit Hunter

    Equity
    Credit
    Ref Point
    what results do you have??
     
  10. Mickeyline

    Mickeyline New Member

    Equity
    Credit
    Ref Point
    upload_2019-2-6_19-31-39.png

    @Symphoenix
    Is it working as intended? because i'm not seeing quiet the same as our example pic.
    Such like, i don't see the price, oanda and forge latency comment
     
  11. zamans98

    zamans98 Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    interesting if it is.

    Will monitor this thread.
     
    • Friendly Friendly x 1
  12. zamans98

    zamans98 Active Member Credit Hunter

    Equity
    Credit
    Ref Point

    your price latency is horrible. Anything above 100ms is bad for business in live account.
     
  13. reachme

    reachme Member Credit Hunter

    Equity
    Credit
    Ref Point
    can you please describe how to use this data to trade?
     
  14. Symphoenix

    Symphoenix Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Yes, it is !
    When you run the script for the first time, it will generate a direction.txt file in the data folder by calling covar.py before using the arbitrage side of the algo. It will repeat this operation every 15 minutes. But every minutes, you'll see the latency comments printing... You should have seen them by now, right ?

    The algo is doing the trading ! You don't have to do anything when it is running except looking at it ;)
     
    • Like Like x 1
  15. reachme

    reachme Member Credit Hunter

    Equity
    Credit
    Ref Point
    Thanks. I just checked Oanda Transactions: Is this expected one or something wrong in my side?

    Capture.JPG
     
  16. reachme

    reachme Member Credit Hunter

    Equity
    Credit
    Ref Point
    I know. It's just for testing. I have vps for actual trading.
     
  17. Symphoenix

    Symphoenix Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Maybe you should have more trades but I don't know it you let SyForge run during the day... In the next version, you'll be able to set the size of the trade. 1000 units is equivalent to 0.01 lot.
    You can follow the script trading activity by launching the OANDA web platform : https://trade.oanda.com/
     
    • Like Like x 1
  18. Mickeyline

    Mickeyline New Member

    Equity
    Credit
    Ref Point
    Yes, the data folder with the direction.txt and forex_data.csv are indeed being updated every 15 minutes. This operation i see begin when it said" Start compacting data" and "Sart Computing CoVariance". But for the rest i don't see anything else, so i'm seeing new comments being print every 15 minutes and have been running SyForge for like 6 hours by now, so i think i'm missing something.

    Besides, when i start the running SyForge, i see the following;
    upload_2019-2-7_3-6-34.png

    I noticed that there was a AttributeError and also a FutureWarning.
     
  19. Symphoenix

    Symphoenix Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Strange behaviour...
    There is a crash in the thread dedicated to the latency arbitrage. 2 things :
    1- Did you install simplejson ?
    2- Remove the space between MT4 and TEST in D:\MT4 TEST\
    You should see an update every minutes...
     
  20. Mickeyline

    Mickeyline New Member

    Equity
    Credit
    Ref Point
    Yep, i did both of that and the behaviour is still the same...
    upload_2019-2-7_8-23-30.png

    Can the crash in the thread be hardware related?
     

Share This Page