Skip to main content

tothemoon evx ML model

This is a simplified version of evxpredictor package used to generate buy and sell signals for crypto and conventional stock markets based on the excess volume indicator(EVX). EVX is a concept where the bid-ask spread is estimated inherently from current market prices.

You can read more about Evx in the free whitepaper here

Installation

Install tothemoon with python3 -m pip install tothemoon

Usage

In your python script simply import the module and use as follows:

from tothemoon.moon import signal
print(signal(20,65,utcdatetime))

The above methods take an assets open, close prices of the asset based on the time interval you have chosen in OHCLV type. A zero classification output would instruct the user to sell, while one output means don't sell or buy if the asset is not already present in the orders.

Testing an entire dataframe

Testing of a dataframe for correct buy, sell signals is as simple as applying the function as follows:

import pandas as pd
from moon import signal, Regbot

df = pd.read_csv('path/toyour/file.csv')

def getSignal(open,close,utcdatetime):
    return signal(open,close,utcdatetime)

# select long profitable trades
df2 = df[df['close_profit_abs'] > 0]
df2 = df2[df2['is_short'] == 0]
print(df2.head())

# Run all predictions
df2['enter_long_pred'] = df.apply(lambda row: getSignal(row['open'], row['close'], row['date']), axis=1)

print(len(df2[df2['enter_long_pred'] == df2['is_short']]), len(df) )

print(df2[df2['is_short']==0].head(15))

Your original data must already have some presumed 'buy' signal.

Warning

This is not financial advise. tothemoon is entirely on its preliminary stages. Use it at your own risk.

Metadata

Release files for tothemoon 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tothemoon 0.1.9
File Size Uploaded Provenance
tothemoon-0.1.9.tar.gz 143.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tothemoon 0.1.9
File Interpreter ABI Platform
tothemoon-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 284.8 kB

Release files / tothemoon-0.1.9.tar.gz

Download URL tothemoon-0.1.9.tar.gz
Size 143.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a6454cb7113793cfe185ab350b878fcd9a6dbf45845b76a85c6336c7ab951041
BLAKE2b-256 checksum
How to use checksums
2e77f33592681d2da3b8d3b0d1f574f594a309d323c9faf43d2f992ab946e779
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / tothemoon-0.1.9-py3-none-any.whl

Download URL tothemoon-0.1.9-py3-none-any.whl
Size 141.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7974a0aab868a1c68464bb64f884a72c02221a6d562f8db46e71fa2eea718387
BLAKE2b-256 checksum
How to use checksums
caa8f8de7312bf582504632848bcb73084d1e83550c04796993fdc75788f4ecd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for tothemoon 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page