feat: add long/short test trade buttons to settings page
- Split test trade button into separate LONG and SHORT buttons - Update testTrade function to accept direction parameter - Add confirmation dialog showing the specific direction - Green button for LONG, red button for SHORT - Success message includes executed direction
This commit is contained in:
12
.env
12
.env
@@ -70,7 +70,7 @@ LEVERAGE=5
|
||||
# Risk parameters (as percentages)
|
||||
# Stop Loss: Close 100% of position when price drops this much
|
||||
# Example: -1.5% on 10x = -15% account loss
|
||||
STOP_LOSS_PERCENT=-2.0
|
||||
STOP_LOSS_PERCENT=-1.5
|
||||
|
||||
# ================================
|
||||
# DUAL STOP SYSTEM (Advanced)
|
||||
@@ -93,19 +93,19 @@ HARD_STOP_PERCENT=-2.5
|
||||
|
||||
# Take Profit 1: Close 50% of position at this profit level
|
||||
# Example: +0.7% on 10x = +7% account gain
|
||||
TAKE_PROFIT_1_PERCENT=0.5
|
||||
TAKE_PROFIT_1_PERCENT=0.7
|
||||
|
||||
# Take Profit 1 Size: What % of position to close at TP1
|
||||
# Example: 50 = close 50% of position
|
||||
TAKE_PROFIT_1_SIZE_PERCENT=75
|
||||
TAKE_PROFIT_1_SIZE_PERCENT=50
|
||||
|
||||
# Take Profit 2: Close remaining 50% at this profit level
|
||||
# Example: +1.5% on 10x = +15% account gain
|
||||
TAKE_PROFIT_2_PERCENT=2.5
|
||||
TAKE_PROFIT_2_PERCENT=1.5
|
||||
|
||||
# Take Profit 2 Size: What % of remaining position to close at TP2
|
||||
# Example: 100 = close all remaining position
|
||||
TAKE_PROFIT_2_SIZE_PERCENT=100
|
||||
TAKE_PROFIT_2_SIZE_PERCENT=50
|
||||
|
||||
# Emergency Stop: Hard stop if this level is breached
|
||||
# Example: -2.0% on 10x = -20% account loss (rare but protects from flash crashes)
|
||||
@@ -119,7 +119,7 @@ BREAKEVEN_TRIGGER_PERCENT=0.5
|
||||
PROFIT_LOCK_TRIGGER_PERCENT=1.2
|
||||
|
||||
# How much profit to lock (move SL to this profit level)
|
||||
PROFIT_LOCK_PERCENT=0.5
|
||||
PROFIT_LOCK_PERCENT=0.2
|
||||
|
||||
# Risk limits
|
||||
# Stop trading if daily loss exceeds this amount (USD)
|
||||
|
||||
Reference in New Issue
Block a user