Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Node modules
node_modules/

# Hardhat files
artifacts/
cache/
dist/

# Environment variables
.env

# Logs and temp
*.log
*.tmp

# IDE
.vscode/
.idea/
22 changes: 21 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
MIT License
MIT License

Copyright (c) 2025

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
60 changes: 45 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,49 @@
# VSVTrend Strategy
# RebaseAI Token

**VSVTrend** is an advanced Pine Script strategy for TradingView, designed to maximize trade accuracy using adaptive indicators, a Supertrend filter, visual on/off toggle, and AI/ML-based false signal detection.
RebaseAI is a dynamic ERC20 token with built-in rebase functionality that allows automatic adjustment of total supply based on market conditions. The contract is written in Solidity and deployable to any EVM-compatible blockchain (Ethereum, Arbitrum, Optimism, etc.).

## Key Features:
- Adaptive Stop Loss / Take Profit system
- Supertrend filter (toggleable)
- Visual on/off toggle button on the chart
- Full backtesting functionality
- AI/ML module for identifying potential false signals
- Works on all timeframes
## ✅ Features

## Purpose
The goal is to create a perfect "alpha indicator" strategy, freely available and open to community suggestions for continuous improvement.
- Compliant with ERC20 standard
- Supply can increase or decrease proportionally via `rebase()`
- Owner is anonymous at deployment (based on `msg.sender`)
- Ownership can be transferred after deployment
- Gas-efficient scaling using internal multipliers

## Project Structure
- `VSVTrend.pine` – main strategy code
- `data/sample_tradelog.csv` – trade log for model training
- `ml/model_train.py` – Python script for training ML model
## 🔁 How Rebase Works

The `rebase(int256 supplyDelta)` function allows the token supply to expand or contract. This adjusts all balances proportionally without affecting ownership percentages.

```solidity
function rebase(int256 supplyDelta) external onlyOwner
```

Supply changes:
- Positive `supplyDelta` → Inflation (e.g. +10%)
- Negative `supplyDelta` → Deflation (e.g. -5%)

## 🔐 Ownership

- The contract does **not** hardcode any owner address
- Ownership is initialized to `msg.sender`
- You may transfer ownership after deployment:

```solidity
transferOwnership("0xYourNewOwnerAddress")
```

## 🚀 Deployment (Hardhat Example)

```bash
npx hardhat run scripts/deploy.js --network mainnet
```

## 🛡 Security

- Only the owner can call `rebase()`
- No mint/burn fees or taxes included
- Transparent and open-source logic

## 📄 License

This project is open-source and released under the [MIT License](./LICENSE).