feat: Enhance Gemini analysis and image handling

Integrates Gemini 3.1 Pro for improved Forex chart analysis, incorporating detailed instructions on Smart Money Concepts, liquidity, and various confirmation indicators like Volume Delta, ATR, EMA, RSI, and VWAP.

Also includes image compression and cleanup utilities for testimonial uploads to manage storage efficiently. Firestore rules for signal data have been updated to accommodate longer strings for pair and timeframe.
This commit is contained in:
desartstudio95
2026-05-12 07:56:18 +02:00
parent 11981e28b0
commit a72d42c6d8
7 changed files with 268 additions and 16 deletions
+2 -2
View File
@@ -86,8 +86,8 @@ service cloud.firestore {
function isValidSignal(data) {
return data.keys().hasAll(['userId', 'pair', 'timeframe', 'decision', 'score', 'timestamp', 'result'])
&& data.userId == request.auth.uid
&& data.pair is string && data.pair.size() <= 20
&& data.timeframe is string && data.timeframe.size() <= 10
&& data.pair is string && data.pair.size() <= 100
&& data.timeframe is string && data.timeframe.size() <= 50
&& data.decision is string
&& data.score is int && data.score >= 0 && data.score <= 100
&& data.timestamp is int