Add Gitea setup instructions
This commit is contained in:
82
GITEA_SETUP.md
Normal file
82
GITEA_SETUP.md
Normal file
@@ -0,0 +1,82 @@
|
||||
# Gitea Setup Instructions
|
||||
|
||||
## Step 1: Create Access Token
|
||||
1. Login to Gitea: https://git.fetcherpay.com
|
||||
2. Click your profile (top right) → Settings
|
||||
3. Go to "Applications" tab
|
||||
4. Generate Token:
|
||||
- Token Name: `mql-trading-bots`
|
||||
- Scopes: Check `repo` (full repository access)
|
||||
5. Copy the token (starts with something like `a1b2c3...`)
|
||||
|
||||
## Step 2: Create Repository via API
|
||||
|
||||
Run this command with your token:
|
||||
|
||||
```bash
|
||||
curl -X POST "http://10.152.183.192:3000/api/v1/user/repos" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: token YOUR_TOKEN_HERE" \
|
||||
-d '{
|
||||
"name": "mql-trading-bots",
|
||||
"description": "MetaTrader 4/5 Expert Advisors - MultiSignal Confluence Trading System",
|
||||
"private": true,
|
||||
"auto_init": false
|
||||
}'
|
||||
```
|
||||
|
||||
## Step 3: Add Remote and Push
|
||||
|
||||
```bash
|
||||
cd ~/mql-trading-bots
|
||||
|
||||
# Add Gitea remote
|
||||
git remote add origin http://10.152.183.192:3000/garfield/mql-trading-bots.git
|
||||
|
||||
# Or use SSH if configured:
|
||||
# git remote add origin git@git.fetcherpay.com:garfield/mql-trading-bots.git
|
||||
|
||||
# Push to Gitea
|
||||
git push -u origin master
|
||||
```
|
||||
|
||||
## Alternative: Create via Web UI
|
||||
|
||||
1. Go to https://git.fetcherpay.com
|
||||
2. Click "+" → "New Repository"
|
||||
3. Repository Name: `mql-trading-bots`
|
||||
4. Description: `MetaTrader 4/5 Expert Advisors`
|
||||
5. Visibility: Private
|
||||
6. Uncheck "Initialize Repository"
|
||||
7. Click "Create Repository"
|
||||
8. Follow the "Push an existing repository" instructions
|
||||
|
||||
## Repository Contents
|
||||
|
||||
```
|
||||
mql-trading-bots/
|
||||
├── README.md # This documentation
|
||||
├── MultiSignal_Confluence_EA.mq5 # Main EA (v1.11)
|
||||
├── MultiSignal_Confluence.mq5 # Indicator version
|
||||
├── HarmonicPatternFinderV2_Optimized.mq5 # Harmonic patterns
|
||||
├── CandlestickPatternEA_Fixed.mq5 # Candlestick EA
|
||||
├── FadePivot2_v4_Fixed.mq5 # Pivot strategy
|
||||
├── Bot10001.mq5 # Bot series v1
|
||||
├── Bot10002.mq5 # Bot series v2
|
||||
├── EnhancedEA.mq5 # Enhanced features
|
||||
└── ...
|
||||
```
|
||||
|
||||
## Backup Strategy
|
||||
|
||||
1. **Code**: Pushed to Gitea (this repo)
|
||||
2. **Settings**: Documented in README.md
|
||||
3. **Docker**: MT5 config in `~/mt5-docker/`
|
||||
|
||||
## Restore Instructions
|
||||
|
||||
If you lose access again:
|
||||
1. Clone from Gitea: `git clone http://git.fetcherpay.com/garfield/mql-trading-bots.git`
|
||||
2. Copy `.mq5` files to MT5's MQL5/Experts folder
|
||||
3. Compile in MetaEditor
|
||||
4. Deploy to charts
|
||||
Reference in New Issue
Block a user