import os os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp/.streamlit" import streamlit as st import random import time import streamlit as st import base64 # Convert image to base64 (so it works perfectly inside HTML) def get_base64_image(image_path): with open(image_path, "rb") as img_file: return base64.b64encode(img_file.read()).decode() image_base64 = get_base64_image("static/mylogo.png") st.markdown( f"""

UZAIR FOREX CLUB

""", unsafe_allow_html=True ) platforms = ['QUOTEX', 'POCKET OPTION', 'BINOMO', 'OLYMP', 'IQ OPTION', 'EXPERT OPTION'] currency_pairs = [ 'USD/BRL (OTC)', 'USD/BRL (CTC)', 'USD/ARS (OTC)', 'USD/DZD (OTC)', 'USD/COP (OTC)', 'CAD/CHF (OTC)', 'USD/BDT (OTC)', 'USD/PKR (OTC)' ] timeframes = ['5s', '10s', '15s', '30s', '1m', '2m', '5m'] platform = st.selectbox("📱 Select Platform", platforms) currency = st.selectbox("💱 Select Currency Pair", currency_pairs) timeframe = st.selectbox("⏱ Select Timeframe", timeframes) if st.button("🚀 GET SIGNAL"): # Show spinner for a short time before signal with st.spinner("🔍 Generating signal... Please wait"): time.sleep(1.5) signal = random.choice(["BUY", "SELL"]) countdown = random.randint(10, 30) st.success(f"✅ Signal generated: **{signal}**") # Countdown display placeholder = st.empty() for i in range(countdown, 0, -1): placeholder.markdown( f"
Next in {i} seconds ⏳
", unsafe_allow_html=True ) time.sleep(1) placeholder.markdown( "
Next signal available now ✅
", unsafe_allow_html=True ) # Show signal if signal == "BUY": st.markdown( "
BUY 🔼
", unsafe_allow_html=True, ) else: st.markdown( "
SELL 🔽
", unsafe_allow_html=True, )