feat: money printing machine - improved scalping with 1h/4h timeframes, trend filter, and better risk management

This commit is contained in:
mindesbunister
2025-07-29 19:03:11 +02:00
parent 035017faff
commit 7522baa0f1
3 changed files with 26 additions and 20 deletions

View File

@@ -18,7 +18,7 @@ export default function AutomationPageV2() {
mode: 'LIVE',
dexProvider: 'DRIFT',
symbol: 'SOLUSD',
selectedTimeframes: ['5', '15', '30'], // Default to scalping preset
selectedTimeframes: ['60', '240'], // Default to improved scalping preset (1h, 4h)
tradingAmount: 100,
balancePercentage: 100, // Default to 100% of available balance
})
@@ -772,35 +772,35 @@ Based on comprehensive technical analysis across multiple timeframes:
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
<button
type="button"
onClick={() => setConfig({...config, selectedTimeframes: ['5', '15', '30']})}
onClick={() => setConfig({...config, selectedTimeframes: ['60', '240']})}
disabled={status?.isActive}
className="group p-6 rounded-xl bg-gradient-to-br from-green-600/20 to-emerald-600/10 border-2 border-green-600/30 hover:border-green-500/50 hover:from-green-600/30 hover:to-emerald-600/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed text-left hover:scale-105"
>
<div className="flex items-center justify-between mb-3">
<div className="text-3xl group-hover:scale-110 transition-transform duration-200">📈</div>
<div className="text-xs text-green-400 bg-green-500/20 px-2 py-1 rounded-lg">FAST</div>
<div className="text-3xl group-hover:scale-110 transition-transform duration-200"><EFBFBD></div>
<div className="text-xs text-green-400 bg-green-500/20 px-2 py-1 rounded-lg">SMART</div>
</div>
<h4 className="text-lg font-bold text-green-300 mb-2">Scalping</h4>
<p className="text-sm text-gray-300 mb-3">Quick trades on short timeframes</p>
<h4 className="text-lg font-bold text-green-300 mb-2">Smart Scalping</h4>
<p className="text-sm text-gray-300 mb-3">High-probability scalping with trend filter</p>
<div className="text-xs text-green-400/80 font-mono bg-green-900/30 px-2 py-1 rounded">
5m 15m 30m
1h 4h
</div>
</button>
<button
type="button"
onClick={() => setConfig({...config, selectedTimeframes: ['60', '120']})}
onClick={() => setConfig({...config, selectedTimeframes: ['5', '15', '30']})}
disabled={status?.isActive}
className="group p-6 rounded-xl bg-gradient-to-br from-blue-600/20 to-indigo-600/10 border-2 border-blue-600/30 hover:border-blue-500/50 hover:from-blue-600/30 hover:to-indigo-600/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed text-left hover:scale-105"
>
<div className="flex items-center justify-between mb-3">
<div className="text-3xl group-hover:scale-110 transition-transform duration-200"></div>
<div className="text-xs text-blue-400 bg-blue-500/20 px-2 py-1 rounded-lg">MEDIUM</div>
<div className="text-xs text-blue-400 bg-blue-500/20 px-2 py-1 rounded-lg">FAST</div>
</div>
<h4 className="text-lg font-bold text-blue-300 mb-2">Day Trading</h4>
<p className="text-sm text-gray-300 mb-3">Intraday momentum strategies</p>
<h4 className="text-lg font-bold text-blue-300 mb-2">Speed Scalping</h4>
<p className="text-sm text-gray-300 mb-3">Very fast trades (higher risk)</p>
<div className="text-xs text-blue-400/80 font-mono bg-blue-900/30 px-2 py-1 rounded">
1h 2h
5m 15m 30m
</div>
</button>