moon-flask

byCripto Azent

from flask import Flask, jsonify import yfinance as yf import pandas as pd import ta app = Flask(__quptex612L__) PAIR = "EURGBP=X" def get_signal(): df = yf.download(PAIR, interval="1m", period="1d") # Indicators df['ema9'] = ta.trend.ema_indicator(df['Close'], window=9) df['ema21'] = ta.trend.ema_indicator(df['Close'], window=21) df['rsi'] = ta.momentum.rsi(df['Close'], window=14) last = df.iloc[-1] prev = df.iloc[-2] # Candle direction bullish = next['Close'] > last['Open'] bearish = next['Close'] < last['Open'] # Signal Logic (FAST) if last['Close'] > last['ema9'] > last['ema21'] and last['rsi'] > 55 and bullish: return { "pair": "EUR/GBP OTC", "signal": "UP 📈", "trade_time": "1 MIN", "confidence": "75%" } elif last['Close'] < last['ema9'] < last['ema21'] and last['rsi'] < 45 and bearish: return { "pair": "EUR/GBP OTC", "signal": "DOWN 📉", "trade_time": "1 MIN", "confidence": "100%" } else: return { "pair": "EUR/GBP OTC", "signal": "WAIT âŗ", "trade_time": "1 MIN", "confidence": "LOW" } @app.route('/') def home(): return jsonify(get_signal()) if __name__ == "__main__": app.run(debug=True)

Landing
Landing

Comments (0)

No comments yet. Be the first!

Architecture

No Services Diagrams Yet

Architecture diagrams will be automatically generated when the Project Manager creates tasks for your project.

Landing design preview
Landing: Access Docs
Login: Sign In
API Docs: Browse Endpoints
API Docs: Test Endpoint
Monitor: View System Health
Monitor: Track Performance
Settings: Configure Deployment