Star light mini V6
- Experts
- Kazuya Koizumi
- Versão: 6.1
# Star light mini v6 - Free
**Type:** Free version (Scalping EA with DD-step & Resume features)
**Copyright:** 2026, KOKONOE
**Description:** For XAUJPY, EURJPY and other instruments
---
## Overview
**Star light mini v6** is a free version of the commercial Star light v6 with core features. Almost all functions are available except the Auto lot experimental version, with enhanced features in the following areas:
- **DrawDown Step Management** — Dynamic multiple order management based on DD ratio
- **Advanced Resume Scheduling** — Automatic restart after profit target/loss limit achievement (daily/weekly/monthly configurable)
- **Time Slot Restriction** — Precise control of entry and exit times
- **Buy/Sell Separated Parameters** — Direction-specific profit targets and order density settings
- **Multi-timeframe Support** — Any timeframe can be specified
---
## Key Features
### 1. **Entry Logic (Two-Stage)**
- **Level 1**: Simple candlestick pattern recognition
- **Level 2**: Two-stage entry with more complex conditions
- **S/R Filter**: Support/Resistance line-based pullback buy and reversal sell filter
### 2. **Trade Management**
- **Direction-Specific TP & Order Density**: Set different TP values and order density for BUY and SELL
- **Trailing Stop**: Percentage-based stepped trailing stop relative to TP-Open spread
- **Unified TP for Multiple Positions**: Align TP to the farthest value among same-direction positions
### 3. **DrawDown Step Management**
- Dynamically increase/decrease multiple order count based on DD ratio
- Strengthen capital management defense (avoid adding orders during DD deterioration)
### 4. **Resume Functionality**
#### Target Profit Resume
- Automatically pause trading when target profit is reached
- Auto-resume after specified days/weekday (WEEKLY/DAILY/MONTHLY)
#### LossCut Resume
- Close all positions and pause trading when loss limit (%) is reached
- Auto-resume after specified days/weekday
### 5. **Time Operation (mini feature)**
- **Time Slot**: Allow entry only during specified time ranges
- **Close Outside**: Auto-close positions outside time range option
- 30-minute granular configuration (server time)
### 6. **Position Clear Logic (mini feature)**
- **Buy_Sell_clear**: Auto-close all SELL positions when BUY entry occurs
- **Sell_Buy_clear**: Auto-close all BUY positions when SELL entry occurs
---
## Parameter Guide
### General Settings
| Parameter | Default | Description |
| --- | --- | --- |
| **EA name** | Star light mini | Used as prefix for magic number |
| **Magic number** | 300017 | EA identification number |
| **Time frame** | — | Analysis timeframe (H1/H4 recommended for XAUJPY) |
| **Lots** | 0.01 | Base lot size (fixed to symbol minimum) |
### Time Operation
| Parameter | Default | Description |
| --- | --- | --- |
| **Start time** | 00:00 | Entry start time (server time) |
| **End time** | 00:00 | Entry end time (00:00 to 00:00 = 24/7 trading) |
| **Close outside** | false | Auto-close positions outside time range |
### Entry Logic
| Parameter | Default | Description |
| --- | --- | --- |
| **Candle diff L1 buy** | 225 | Level 1 BUY trigger (points) |
| **Candle diff L1 sell** | 5000 | Level 1 SELL trigger (points) |
| **Candle diff L2 buy** | 500 | Level 2 BUY trigger (points) |
| **Candle diff L2 sell** | 2250 | Level 2 SELL trigger (points) |
| **S/R depth** | 0 | S/R filter activation (%): 0=OFF |
| **S/R distance** | 5000 | S/R reference bar count |
### Trade Management
| Parameter | Default | Description |
| --- | --- | --- |
| **Profit BUY** | 2550 | BUY TP (points) |
| **Profit SELL** | 2550 | SELL TP (points) |
| **Stop loss** | 0 | SL points (0=none) |
| **Trailing stop** | true | Enable trailing stop |
| **Trailing step %** | 8.5 | Trailing step as % of TP-Open span |
| **Density BUY** | 1 | Max BUY orders per candle |
| **Density SELL** | 1 | Max SELL orders per candle |
| **Max orders** | 8 | Maximum concurrent positions (before DD-step) |
### Position Clear (mini feature)
| Parameter | Default | Description |
| --- | --- | --- |
| **Clear SELL on BUY** | false | Close all SELL when BUY entry occurs |
| **Clear BUY on SELL** | false | Close all BUY when SELL entry occurs |
### DrawDown Step
| Parameter | Default | Description |
| --- | --- | --- |
| **Enable DD-step** | true | Enable dynamic multiple order management |
| **DD step %** | 6 | DD step rate |
| **DD cap** | 3 | Max additional orders allowed |
**Example**: Max orders = 8, DD cap = 3 → Up to 8+3=11 positions allowed during DD
### Target Profit Resume Settings
| Parameter | Default | Description |
| --- | --- | --- |
| **Target profit magnification** | 1.17 | Target achieved at 117% of starting equity |
| **Resume mode** | WEEKLY | Resume pattern |
| **Resume day (weekly)** | WEDNESDAY | Resume day of week |
| **Resume days (daily)** | 5 | Days until resume (daily mode) |
### LossCut Resume Settings
| Parameter | Default | Description |
| --- | --- | --- |
| **Loss target %** | 30 | Pause trading at loss threshold (%) |
| **Resume mode** | WEEKLY | Resume pattern |
| **Resume day (weekly)** | WEDNESDAY | Resume day of week |
| **Resume days (daily)** | 5 | Days until resume (daily mode) |
---
## Removed Features (Commercial version only)
- **Auto lot (experimental)** — Automatic lot calculation based on account size (commercial version only)
---
## Usage Tips
### Recommended Settings Example for XAUJPY (1-Hour Timeframe)
```ini
Time frame: H1
Profit BUY: 1200-1500
Profit SELL: 500-800
Start time: 08:00 (JST 09:00)
End time: 15:00 (JST 16:00)
DD step: 5%
Target profit: 1.2 (120% of starting equity)
```
### Best Practice
1. **Backtesting Required** — Conduct sufficient backtesting before live trading
2. **Small Lot Verification** — Start with 0.01 lot or smaller for verification
3. **Time Slot Optimization** — Limit trading to high liquidity hours (e.g., JST 09:00-16:00)
4. **DD-step Adjustment** — Adjust dd_step and dd_cap according to account size
---
## Compatibility
- **Account Type**: Hedge mode (netting not supported)
- **Trade Mode**: XAUJPY, EURJPY recommended (verify parameters for other pairs)
- **Terminal**: MT5
- **Libraries**: MQL5 standard libraries (Trade, AccountInfo, PositionInfo, Controls)
---
## Version History
| Version | Date | Changes |
| --- | --- | --- |
| **6.0 mini** | 2026-04-11 | Initial release: Combines v6 core features with mini v2 time slot control and Buy/Sell parameter separation |
---
## Support & Disclaimers
- This EA is developed based on historical performance and does not guarantee future results
- Conduct sufficient demo trading and backtesting before live trading
- Optimal parameter values may change with market conditions
- **Use at your own risk**
---
