NIJA PRO MODE - Position Rotation Trading + Tier Locking
Overview
PRO MODE transforms NIJA into a hedge-fund style trading system that counts open position values as available capital and can rotate positions to capture better opportunities.
NEW (v4.1, Jan 2026): PRO MODE now supports TIER_LOCK - providing sophisticated execution logic with tier-based risk caps. This is the GOLD STANDARD for retail accounts.
What is PRO MODE?
In standard mode, NIJA can only open new positions when it has free USD balance available. This means if all your capital is locked in positions, the bot cannot take advantage of new opportunities even if they’re better than your current holdings.
PRO MODE solves this by:
- ✅ Counting open position values as available capital
- ✅ Enabling position-to-position rotation
- ✅ Closing weak positions to fund better opportunities
- ✅ Never “starving” by having all capital locked
- ✅ NEW: TIER_LOCK prevents over-leveraging on small accounts
What is TIER_LOCK?
TIER_LOCK is a new feature that combines PRO MODE’s smart execution with tier-based risk caps.
Without TIER_LOCK
- PRO MODE could potentially over-leverage small accounts
- Users might exceed safe risk limits
- Requires manual risk management
With TIER_LOCK
- PRO MODE uses tier-specific risk limits
- SAVER tier locked to 10% max risk
- INVESTOR tier locked to 7% max risk
- Automatic, invisible protection
- Users get PRO logic without chaos
Example
# In .env file
PRO_MODE=true
TIER_LOCK=SAVER # Locks risk to SAVER tier limits (10% max)
With this configuration:
- Account has PRO MODE’s smart execution
- Risk automatically capped at 10% (SAVER tier limit)
- No manual intervention needed
- Users don’t even know TIER_LOCK exists (invisible)
How It Works
Capital Calculation
Standard Mode:
Available Capital = Free USD Balance
PRO MODE:
Total Capital = Free USD Balance + Position Values
Available for New Trades = Total Capital (with minimum reserve)
Example with $100 account:
- Standard Mode: $10 free + $90 in positions = Can only use $10 for new trades
- PRO Mode: $10 free + $90 in positions = Can use up to $100 for new trades (maintaining 15% reserve)
Position Rotation
When PRO MODE detects a better opportunity but insufficient free balance, it automatically:
- Scores Current Positions (0-100 scale)
- Lower scores = Better candidates for rotation
- Factors: P&L, age, RSI, position size
- Selects Positions to Close
- Prioritizes losing positions first
- Then stale/old positions
- Then overbought positions
- Keeps profitable positions when possible
- Executes Rotation
- Closes selected positions
- Frees up capital
- Opens new position with better setup
- Maintains Reserve
- Always keeps minimum free balance (default 15%)
- Prevents being 100% locked in positions
- Ensures liquidity for market volatility
Rotation Scoring System
Positions are scored for rotation priority (higher score = more likely to close):
| Factor |
Impact |
Score Adjustment |
| P&L |
Most Important |
|
| - Big loser (< -5%) |
Close first |
+30 |
| - Small loser (-2% to -5%) |
High priority |
+20 |
| - Slight loser (0% to -2%) |
Medium priority |
+10 |
| - Big winner (> +5%) |
Keep |
-30 |
| - Good profit (+2% to +5%) |
Keep |
-20 |
| Age |
|
|
| - Very stale (> 8 hours) |
Close |
+15 |
| - Moderately stale (4-8 hours) |
Consider |
+10 |
| - Very new (< 30 min) |
Keep |
-10 |
| RSI |
|
|
| - Overbought (> 70) |
Good exit time |
+15 |
| - Oversold (< 30) |
Might recover |
-15 |
| Size |
|
|
| - Very small (< $5) |
Easy to rotate |
+10 |
| - Small ($5-$10) |
Easy to rotate |
+5 |
Configuration
Enable PRO MODE
Option 1: Standard PRO MODE (No Tier Lock)
# In your .env file
PRO_MODE=true
PRO_MODE_MIN_RESERVE_PCT=0.15 # 15% minimum free balance
Option 2: PRO MODE + TIER_LOCK (Recommended for Retail)
# In your .env file
PRO_MODE=true
TIER_LOCK=SAVER # Lock to SAVER tier risk limits (10% max)
PRO_MODE_MIN_RESERVE_PCT=0.15 # 15% minimum free balance
Option 3: Railway/Render Deployment
Add environment variables:
- PRO_MODE = true
- TIER_LOCK = SAVER (or INVESTOR, INCOME, LIVABLE, BALLER)
- PRO_MODE_MIN_RESERVE_PCT = 0.15
TIER_LOCK Options
| Tier Lock Value |
Max Risk % |
Best For |
| SAVER |
10% |
$100-$249 accounts - Starter-Safe profile ✅ |
| INVESTOR |
7% |
$250-$999 accounts - Multi-position trading |
| INCOME |
5% |
$1,000-$4,999 accounts - Where NIJA trades as designed |
| LIVABLE |
3% |
$5,000-$24,999 accounts - Professional execution |
| BALLER |
2% |
$25,000+ accounts - Institutional deployment |
Why Use TIER_LOCK?
- ✅ Prevents over-leveraging on small accounts
- ✅ Automatic risk management (users don’t toggle it)
- ✅ PRO execution with retail safety
- ✅ No manual intervention required
- ✅ Invisible to end users
Configuration Parameters
| Parameter |
Default |
Description |
PRO_MODE |
false |
Enable/disable PRO MODE |
TIER_LOCK |
none |
Lock to specific tier risk limits (SAVER, INVESTOR, etc.) |
PRO_MODE_MIN_RESERVE_PCT |
0.15 |
Minimum free balance % (15% default) |
Reserve Percentage Guide
Choose based on your risk tolerance and trading style:
| Reserve % |
Profile |
Use Case |
| 10% |
Aggressive |
Maximum capital utilization, higher risk |
| 15% |
Balanced |
Recommended for most traders |
| 20% |
Conservative |
More safety buffer, less rotation |
| 25% |
Very Conservative |
Maximum stability, minimal rotation |
Usage Examples
Example 1: Basic Rotation
Scenario:
- Total Capital: $100
- Free Balance: $5
- Positions: $95 (BTC, ETH, SOL)
- New Opportunity: XRP (needs $10)
Without PRO MODE:
- ❌ Cannot trade - only $5 free
- ❌ Must wait for positions to close
- ❌ Misses opportunity
With PRO MODE:
- ✅ Scores positions (SOL is losing -3%)
- ✅ Closes SOL position ($10 freed)
- ✅ Opens XRP position
- ✅ Maintains $5 minimum reserve (5% of $100)
Example 2: Multiple Position Rotation
Scenario:
- Total Capital: $200
- Free Balance: $10
- Positions: 6 positions totaling $190
- New Opportunity: Strong signal requiring $50
PRO MODE Actions:
- Identifies need for $40 more capital ($50 - $10 free)
- Scores all 6 positions
- Selects 2-3 weakest positions totaling $40+
- Closes selected positions
- Opens new $50 position
- Maintains $30 minimum reserve (15% of $200)
Example 3: Reserve Protection
Scenario:
- Total Capital: $100
- Free Balance: $12 (already at minimum 12%)
- Opportunity: Needs $20
PRO MODE Actions:
- ⚠️ Below minimum reserve (need 15% = $15)
- ✅ Must rotate $8 from positions
- ✅ Closes small losing position
- ✅ Restores reserve before new trade
Risk Considerations
Advantages ✅
- Never Starves: Always has capital available for opportunities
- Adaptive: Responds to better setups by rotating
- Efficient: Maximizes capital utilization
- Disciplined: Automatically closes losers
- Protected: Maintains minimum reserve
Risks ⚠️
- Higher Trading Frequency: More trades = more fees
- Premature Exits: Might close positions that would recover
- Complexity: More moving parts to understand
- Market Volatility: Rapid rotations in choppy markets
When to Use PRO MODE
Good For:
- ✅ Experienced traders comfortable with rotation
- ✅ Accounts with sufficient capital ($100+ recommended)
- ✅ Strong trending markets with clear opportunities
- ✅ Active monitoring and understanding of rotation logic
Not Recommended For:
- ❌ Beginners new to trading
- ❌ Very small accounts (< $50)
- ❌ Set-and-forget passive trading
- ❌ Low-liquidity markets
Monitoring PRO MODE
Key Metrics to Watch
- Free Balance Reserve
- Should stay above minimum (15% default)
- Alerts if consistently below minimum
- Rotation Count
- Track daily/weekly rotations
- High rotation count may indicate instability
- Position Age
- Average holding time
- Excessive rotation = very short holds
- P&L per Rotation
- Did rotation improve performance?
- Track rotation effectiveness
Log Messages
PRO MODE adds specific log messages:
💰 PRO MODE Capital:
Free balance: $10.00
Position value: $90.00
Total capital: $100.00
Positions: 3
🔄 PRO MODE: Position size $15.00 exceeds free balance $10.00
→ Rotation needed: $5.00
✅ Rotation allowed: Below minimum free balance reserve (10.0% < 15%)
🔄 Closing 1 position(s) for rotation:
Closing SOL-USD: 0.15000000
✅ Closed SOL-USD successfully
✅ Rotation complete: Closed 1 positions
💰 Updated free balance: $15.00
🎯 BUY SIGNAL: XRP-USD - size=$15.00
Troubleshooting
PRO MODE Not Working
Issue: Bot still stops trading when out of free balance
Solutions:
- Check
PRO_MODE=true in .env file
- Restart bot after enabling
- Verify rotation_manager.py exists in bot/
- Check logs for PRO MODE initialization message
Excessive Rotations
Issue: Bot rotating positions too frequently
Solutions:
- Increase
PRO_MODE_MIN_RESERVE_PCT to 20-25%
- Review rotation quality - are new opportunities better?
- Tighten entry criteria to be more selective
- Consider disabling PRO MODE temporarily
Reserve Always Below Minimum
Issue: Free balance consistently below reserve
Solutions:
- Bot has too many open positions
- Increase reserve percentage
- Reduce MAX_CONCURRENT_POSITIONS
- Fund account with more capital
Positions Not Rotating
Issue: PRO MODE enabled but no rotations happening
Check:
- Are position sizes larger than free balance?
- Do positions have low rotation scores (all profitable)?
- Is minimum improvement threshold (20%) met?
- Check logs for rotation decision details
Advanced Configuration
Custom Rotation Scoring
To customize rotation logic, edit bot/rotation_manager.py:
def score_position_for_rotation(self, position, position_metrics):
# Adjust weights for your strategy
# Higher score = more likely to close
# Example: Prioritize age over P&L
if age_hours > 6:
score += 40 # Increased from 15
if pnl_pct < -2.0:
score += 15 # Decreased from 20
Integration with Risk Manager
PRO MODE integrates with existing risk management:
# In risk_manager.py
AdaptiveRiskManager(
min_position_pct=0.02,
max_position_pct=0.05,
max_total_exposure=0.80,
pro_mode=True, # Enable PRO MODE
min_free_reserve_pct=0.15
)
- Start Conservative: Use 20% reserve initially
- Monitor Closely: Watch first week of PRO MODE operation
- Track Metrics: Log rotation success rate
- Adjust Gradually: Fine-tune reserve % based on results
- Backtest First: Test on paper trading before live
Version History
- v1.0 (Current) - Initial PRO MODE release
- Total capital calculation
- Position rotation scoring
- Automatic weak position closing
- Minimum reserve protection
Support
For questions or issues:
- Check logs for PRO MODE messages
- Review rotation statistics
- Verify configuration in .env
- Test with small capital first
Remember: PRO MODE is an advanced feature. Start with standard mode to learn the basics, then graduate to PRO MODE when comfortable with position rotation concepts.