Author Topic: [ANN] EXTINCTION EVENT - Trade Bitshares DEX with Cryptocompare CEX data  (Read 4041 times)

0 Members and 1 Guest are viewing this topic.

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
Need a low latency UI for DEX?

[ANN] microDEX
https://bitsharestalk.org/index.php?topic=26201.0


Need a bot?
Runs on local machine?
No subscription fees to pay?
No black box to blindly trust?
 100% open source code?
Backtest and Live session all in one python script?
Trades on Bitshares DEX?
Is aware of outside CEX market prices?
So easy grandma could run it?


[ANN] EXTINCTION EVENT















The Original Code:

https://www.pastebin.com/hzUTtapz

latest version at github here:

https://github.com/litepresence/extinction-event/tree/master/EV

Installation here:

https://github.com/litepresence/extinction-event/blob/master/Installation

Python3 - WTFPLv2*


*Includes Free 30X BTC 5X BTS 1 YEAR BACKTEST


Code: [Select]
EXTINCTION EVENT v0.00000001 alpha release
~=== BEGIN BACKTEST ==================~
API call for chartdata BTC_BTS 1390000000s 1520469392e CANDLE 86400 DAYS 1510
Dataset.....: 420 DAYS
Backtesting.: 365 DAYS
PAIR......: BTC_BTS
BitPAIR...: BTS:OPEN.BTC

CANDLE....: 86400
BEGIN.....: 1488933403 Tue Mar  7 19:36:43 2017

Bitshares
[Tue Mar  7 19:36:43 2017] 1 BUY BEAR DESPAIR 334448.16 BTS at 299 sat value 1.00 BTC
[Tue Mar  7 19:36:43 2017] 2 SELL BEAR RESISTANCE 334448.16 BTS at 307 sat value 1.03 BTC
[Fri Apr  7 20:36:43 2017] 3 BUY BULL SUPPORT 153620.86 BTS at 668 sat value 1.03 BTC
[Sat May  6 20:36:43 2017] 4 SELL BULL OVERBOUGHT 153620.86 BTS at 3013 sat value 4.63 BTC
[Tue May 23 20:36:43 2017] 5 BUY BULL SUPPORT 154826.76 BTS at 2989 sat value 4.63 BTC
[Wed Jun  7 20:36:43 2017] 6 SELL BULL OVERBOUGHT 154826.76 BTS at 8499 sat value 13.16 BTC
[Mon Jun 19 20:36:43 2017] 7 BUY BULL SUPPORT 128380.37 BTS at 10250 sat value 13.16 BTC
[Thu Jul 20 20:36:43 2017] 8 SELL BEAR RESISTANCE 128380.37 BTS at 5825 sat value 7.48 BTC
[Sat Oct  7 20:36:43 2017] 9 BUY BEAR DESPAIR 839235.27 BTS at 891 sat value 7.48 BTC
[Sat Oct 14 20:36:43 2017] 10 SELL BEAR RESISTANCE 839235.27 BTS at 1246 sat value 10.46 BTC
[Sun Nov 19 19:36:43 2017] 11 BUY BULL SUPPORT 919439.38 BTS at 1137 sat value 10.46 BTC
[Mon Dec 18 19:36:43 2017] 12 SELL BULL OVERBOUGHT 919439.38 BTS at 3873 sat value 35.62 BTC
[Wed Jan  3 19:36:43 2018] 13 BUY BULL SUPPORT 825211.57 BTS at 4315 sat value 35.62 BTC
[Sat Jan 27 19:36:43 2018] 14 SELL BEAR RESISTANCE 825211.57 BTS at 4050 sat value 33.42 BTC
===============================================================
START DATE........: Tue Mar  7 19:36:43 2017
END DATE..........: Wed Mar  7 19:36:43 2018
DAYS..............: 365.0
TRADES............: 14
DAYS PER TRADE....: 26.1
START PRICE.......: 0.00000299
END PRICE.........: 0.00001768
START PORTFOLIO...: 1.0 BTC 0.0 BTS
START MAX ASSETS..: 334448.160535 BTS
END MAX ASSETS....: 1890331.92993 BTS
ROI ASSETS........: 5.65X
START MAX CURRENCY: 1.0 BTC
END MAX CURRENCY..: 33.4210685212 BTC
ROI CURRENCY......: 33.42
APY CURRENCY......: 32.42
===============================================================
EXTINCTION EVENT v0.00000001 alpha release
~===END BACKTEST=========================~
#######################################
CURRENCY        = "BTC"
ASSET           = "BTS"
MA1             = 17.00
MA2             = 50.00
SELLOFF         = 2.250
SUPPORT         = 1.000
RESISTANCE      = 1.000
DESPAIR         = 0.525
MIN_CROSS       = 1.000
MAX_CROSS       = 1.000
BULL_STOP       = 1.000
BEAR_STOP       = 1.000
#######################################
# RESOLUTION    : 20
# DAYS          : 365
DPT             = 26.1 # Days Per Trade
# MARKET CAP....: 464.5M
# DOMINANCE.....: 0.1137 - RANK 38
ROI             = 33.42
#######################################


The Tunes:


BTS/BTC 500X https://www.pastecoin.com/6O3QlzeKRNg7
DASH/BTC 25X https://www.pastecoin.com/79j1XgOdQJv6






more alt/btc tunes coming soon








special thanks to:

https://www.youtube.com/watch?v=jJxKXOTNXjc
https://www.youtube.com/watch?v=xV1yUVeA_Fw
https://twitter.com/SEC_News/status/971494501343748097
https://twitter.com/lopp/status/971520121704538112
https://twitter.com/oraclepresence/status/971178302089187328
https://www.reddit.com/r/BinanceExchange/comments/82ou1d/binance_sold_all_my_alt_coins_at_market_rate/
docs.pybitshares.com
coinmarketcap.com/api
cryptocompare.com/api
stackoverflow.com
pastebin.com
pastecoin.com
codeshare.io
chatcrypt.com
« Last Edit: April 08, 2018, 02:09:28 pm by litepresence »

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
reserved for version / bugs

The Latest Version is

EV0.00000002

https://github.com/litepresence/extinction-event/blob/master/EV/EV0.00000002.py

Known Bugs

there was an error in chart data effecting moving averages w/ period over 150 when live,  patched March 7th 2018, version number not changed
« Last Edit: April 01, 2018, 11:37:11 pm by litepresence »

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
reserved sales


pick any altcoin with a year of data,
I'll post a pastecoin backtest
using the Extinction Event framework
that destroys it.



BACKTESTS FOR SALE BUY NOW: 

Fresh Tunes April 1, 2018:




Bitshares DEX ETH/BTC 37.61X
BACKTEST - EXTINCTION EVENT

BUY NOW:  https://www.pastecoin.com/79j1XgJmQJv6



Bitshares DEX BTS/BTC 454.23X
BACKTEST - EXTINCTION EVENT

BUY NOW:  https://www.pastecoin.com/6O3QlzwERNg7



Bitshares DEX OMNI/BTC 322.39X
BACKTEST - EXTINCTION EVENT

BUY NOW:  https://www.pastecoin.com/e9NoyLJbR7k2

« Last Edit: April 01, 2018, 11:49:38 pm by litepresence »

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile

https://www.youtube.com/watch?v=83e7BhDdHXU

these links are dead, sorry... burning out freshys
Code: [Select]
[size=18pt]EXTINCTION EVENT [b]OMNI/BTC 836X[/b] 1 YEAR BACKTEST[/size]
[size=14pt]https://www.pastecoin.com/MmvRqYgxRyX4[/size]

[size=18pt]EXTINCTION EVENT [b]EMC/BTC 11976X[/b] 1 YEAR BACKTEST[/size]
[size=14pt]https://www.pastecoin.com/4aqRr5G21A03[/size]

[size=18pt]EXTINCTION EVENT [b]AMP/BTC 559X[/b] 1 YEAR BACKTEST[/size]
[size=14pt]https://www.pastecoin.com/r0wodqx2Q3Aa[/size]
« Last Edit: April 01, 2018, 11:51:08 pm by litepresence »

Offline ripplexiaoshan

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 2219
    • View Profile
  • BitShares: jademont
Mark.
Seems very promising.
BTS committee member:jademont

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
google search is picking up my ads; seems to take 48 hours.

You can also search pastecoin.com "litepresence" or "extinction event" for full listing




« Last Edit: March 10, 2018, 01:55:11 pm by litepresence »

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
these links are dead sorry, burning out freshy's

Code: [Select]
[size=18pt][b] ETH/BTC 76X[/b] EXTINCTION EVENT 1 YEAR BACKTEST[/size]
[size=14pt]https://www.pastecoin.com/O4VQ6mWEo9J7[/size]

[size=18pt][b]EOS/BTC 30X [/b]EXTINCTION EVENT 155 DAY BACKTEST[/size]
[size=14pt]https://www.pastecoin.com/9JVoDlxxoEPy[/size]

[size=18pt][b]ARDR/BTC 44X [/b]EXTINCTION EVENT 1 YEAR BACKTEST[/size]
[size=14pt]https://www.pastecoin.com/9b7RvPWDQLxz[/size]
« Last Edit: April 01, 2018, 11:51:40 pm by litepresence »

Offline Customminer

  • Hero Member
  • *****
  • Posts: 535
  • Bitshares FTW!
    • View Profile
    • Gridcoin.US
  • GitHub: grctest
What is this?
Hertz, Beyond Bitshares, Gridcoin!

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
What is this?

This is a bot framework for algo trading the Bitshares DEX with an awareness of outside markets.

You get numpy arrays of cryptocompare data to process yourself, I've also included a finite state machine that breaks the market into 4 states:

bull (selloff, support)
bear (resistance, despair)

out of the box it trades the BTS/BTC pair for 30X over the past year of data per backtest

I also offer a 500X pay per view version.

I have multiple machines mining input thresholds for various altcoin/bitcoin pairs.   The AI runs about 500k backtests for each altcoin and I sell these thresholds for you to trade on the DEX via pastecoin.com.  There is nothing to stop you from running a few backtests and creating your own thresholds or even stand alone algos on with this framework.

My goals are:

Make services which provide bot trading via website (like cryptotrader, tradewave, etc. ) obsolete.
Encourage CEX algo traders to move to Bitshares DEX by simplifying API connectivity.
Require absolute minimum module dependencies.
Create a performance aligned altcoin trading strategy back testing environment that is open source and runs locally.


features and dependencies from the script banner:

Code: [Select]
    #===================================================================
    ''' FEATURES '''
    #===================================================================
    '''
 
   ALT/BTC data from cryptocompare.com as signal
 
   Bitshares DEX open.ALT/open.BTC for trading
 
   - Play simple effective 4 state 50 day cross
 
       - uses live 2h arrays to generate moving averages
       - ma1xma2 is about 17x50 day simple moving average cross
       - cross plus +/- threshold changes state logic from bull to bear
       - Bull Logic
           buy 17 day support
           sell 17 day x ~1.5 selloff
       - Bear logic
           sell 17 day resistance
           buy 17 day x ~0.75 despair
       - dynamic stoploss upon market shift
       - approximately 7-20 day trade frequency depending upon pair
       - announces machine state on plot
 
   - Make Markets, Close Margins, Support Trends
 
   - Iceberg entry and exit
 
   - Bot runs local
 
   - Backtest Engine Included
 
   - Maintains storage from backtest to live session
   '''
Code: [Select]
    #===================================================================
    ''' DEPENDENCIES'''
    #===================================================================
    '''
   python 3.4
   python-tk
   matplotlib 1.4
   pybitshares
« Last Edit: March 11, 2018, 03:18:10 am by litepresence »

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
version 2 is out:

https://github.com/litepresence/extinction-event/blob/master/EV/EV0.00000002.py

Code: [Select]
    #===================================================================
    ''' FEATURES v0.00000002'''
    #===================================================================
    '''
   Rogue Node Immunity:
       A background daemon process maintains a list of low latency nodes
       for buy/sell/cancel/orders ops in a text file
       distributed exchange prices and orderbook are verified and curated
       using multinode statistical approach with daemon processes
       open orders are checked in triplicate on multiple nodes
       dex() definitions have been upgraded after consultation with
       Bitshares core developers and node admin
   Move to github:
       https://github.com/litepresence/extinction-event
   New MODES:
       SALES mode backtest only plots buy/sell actions; no state machine
       LATENCY mode connect to all nodes and reports on latency
       PAPER mode runs live, but does not trade

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
updated github today, there was a bug in chartdata() definition for moving averages longer than 166 day period when live

I'm not changing version number but if you're running the script you should update to be safe

Offline Customminer

  • Hero Member
  • *****
  • Posts: 535
  • Bitshares FTW!
    • View Profile
    • Gridcoin.US
  • GitHub: grctest
The pastecoin links have all expired
Hertz, Beyond Bitshares, Gridcoin!

Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
I have two pastecoin ads back up:

BTS/BTC
ETH/BTC


search litepresence at pastecoin.com

not sure why pastecoin deleted my ads; they were set to never expire

I'm burning out OMNI currently, might as well post freshly optimized tunes with latest data






oh and check out microDEX if you haven't already; its a new low-latency, dependable user interface for the DEX

https://bitsharestalk.org/index.php?topic=26201.0

« Last Edit: April 01, 2018, 11:55:20 pm by litepresence »


Offline litepresence

  • Full Member
  • ***
  • Posts: 77
    • View Profile
New Version of Extinction Event has been released.

The project has progressed beyond the point of "alpha" and is now officially in beta testing stage; it is "feature complete" and appears to be able to run stable long term - days on end - without user input.

From here forward, EV.py will be dependent on the stand alone app metaNODE.py

The latest stack is

EV5/metaNODE10

and is available on my github

metaNODE whitepaper can be found here:

https://github.com/litepresence/extinction-event/blob/master/metaNODE/README.md

metaNODE app:
https://github.com/litepresence/extinction-event/blob/master/metaNODE/metaNODE.py

EV app:
https://github.com/litepresence/extinction-event/blob/master/EV/EV.py

You'll need to install my virtual environment per instructions in my exctinction-event github repo, then create a folder and put a copy of EV.py and metaNODE.py into it.  To run live, start the metaNODE first, let it warm up fully, then you can launch an EV session for paper trading, live, or test orders. 
« Last Edit: June 07, 2018, 08:38:54 pm by litepresence »