Skip to main content

Evx regpredict mlbot

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 whitepaper here

Installation

Install regpredict with python3 -m pip install regpredict

Usage

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

from regpredict.regbot import signal
print(signal(20,65,85,78,45,0.7))

The above methods take an assets a,b,macd,macdsignal,grad_histogram,close_gradient,close_gradient_neg based on the time interval you have chosen. 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 regbot import signal
#from regpredict.regbot import signal
df = pd.read_csv('../path/to/your_validation.csv')

y_pred = []
def getSignal(a,b,macd,macdsignal,grad_histogram,close_gradient,close_gradient_neg):
    return signal(a,b,macd,macdsignal,grad_histogram,close_gradient,close_gradient_neg)

Where thr is a user defined threshold.


df = df[df['enter_long'] == 1]
print(df.head())

df['result'] = df.apply(lambda row: getSignal(row['a'],row['b'],row['macd'],row['macdsignal'],row['grad-histogram'],row['close-gradient']row['close-gradient-neg']), axis=1)

print(df.head())

print(len(df[df['result'] == df['enter_long']]), len(df))

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

Warning

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

Metadata

Release files for regpredict 0.0.69

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

Source distribution (sdist)

Source distribution for regpredict 0.0.69
File Size Uploaded Provenance
regpredict-0.0.69.tar.gz 10.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 20.0 kB

Release files / regpredict-0.0.69.tar.gz

Download URL regpredict-0.0.69.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ede79ea0bfe5a3c042a296c96fd95d6e772f2306336b72a84d73afdb14ac5d4e
BLAKE2b-256 checksum
How to use checksums
3729cccaf14c846eb851420c53e6d5a51eb0eddd962039dbff48a37916571bed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.4

Release files / regpredict-0.0.69-py3-none-any.whl

Download URL regpredict-0.0.69-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25000f189ad457b43815e59f61216c88bf085136f05b944b180cd1b269fa4de3
BLAKE2b-256 checksum
How to use checksums
19b249172e61b8af4d7bd4081ff4afe007e2ec99e098bd960d38614b18b17bde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.4

Security for regpredict 0.0.69

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.

Release history Release notifications | RSS feed

This release

0.0.69 This release

2 release files No provenance

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