Need a programmer to convert 2 existing indicators (both indicators are available in Ninjatrader and Sierra Charts) to Meta Trader 5

Şartname

استيراد ccxt
استيراد الباندا بصيغة pd
استيراد numpy كـ np
طلبات الاستيراد
وقت الاستيراد

# إعداد لعبة منصة اللعب عبر API
التبادل = ccxt.binance({
    'apiKey': 'your_api_key',
    'سري': 'سر_api_الخاص بك'
})

#إعداد إدارة المتنوعة
def calculate_position_size(رصيد الحساب، المخاطرة لكل صفقة، نقاط وقف الخسارة):
    مبلغ_المخاطرة = رصيد_الحساب * المخاطرة_لكل_تداول
    حجم الموضع = مبلغ المخاطرة / نقاط وقف الخسارة
    إرجاع حجم الموضع

#فرضًا أن الأخبار الاقتصادية المتعلقة بالسوق
تعريف get_economic_news():
    # هنا نستخدم API مثل NewsAPI أو Forex Factory للحصول على الأخبار الاقتصادية
    url = 'https://newsapi.org/v2/كل شيء?q=forex&apiKey=your_news_api_key'
    الرد = طلبات.get(url)
    البيانات = response.json()
    إرجاع البيانات['المقالات']

#تحليل الأخبار الجديدة في السوق
def analyze_news(الأخبار):
    للمقالة في الأخبار:
        # تحليل عنوان الخبر وملخصه
        العنوان = article['title']
        الوصف = article['الوصف']
        # لا نفترض أن الخبر السلبي إذا كان فيه كلمات مثل "Down"، "Decline"
        إذا كان 'down' في title.lower() أو 'decline' في title.lower():
            العودة 'بيع'
        elif 'up' في title.lower() أو 'growth' في title.lower():
            العودة 'شراء'
    العودة 'HOLD'

# الحصول على بيانات السوق
def get_market_data(الرمز):
    المؤشر = exchange.fetch_ticker(الرمز)
    عودة الشريط

# تنفيذ عملية التنفيذ على التحليل
def execute_trade(الرمز، الإجراء، حجم الموضع):
    إذا كان الإجراء == 'شراء':
        التبادل. إنشاء أمر شراء السوق (الرمز، حجم الموضع)
    elif action == 'بيع':
        التبادل. إنشاء أمر بيع السوق (الرمز، حجم الموضع)
    آخر:
        print("لم يتم اتخاذ أي إجراء")

#مثال على بوت يعمل بشكل دوري
تعريف run_trading_bot():
    account_balance = 10000 # رصيد الحساب
    Risk_per_trade = 0.01 # 1% من التداول لكل صفقة
    stop_loss_pips = 50 # اعتقد أن نقطة وقف الخسارة هي 50 نقطة
    
    حجم الموضع = حساب حجم الموضع (رصيد الحساب، المخاطرة لكل صفقة، نقاط وقف الخسارة)
    
    # جلب الأخبار الاقتصادية
    الأخبار = get_economic_news()
    العمل = تحليل_الأخبار(الأخبار)
    
    #بيانات سوق
    الرمز = 'BTC/USDT'
    بيانات السوق = الحصول على بيانات السوق (الرمز)
    
    # اتخاذ القرارات بشأن الأخبار وتحليل السوق
    print(f"بيانات السوق: {market_data}")
    print(f"الإجراء بناءً على الأخبار: {action}")
    
    # تنفيذ الصفقات
    execute_trade(الرمز، الإجراء، حجم الموضع)

# تشغيل كل 30 ثانية
بينما صحيح:
    تشغيل روبوت التداول
    الوقت.النوم(30)

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(12)
Projeler
12
33%
Arabuluculuk
8
13% / 88%
Süresi dolmuş
3
25%
Serbest
2
Geliştirici 2
Derecelendirme
(3)
Projeler
1
0%
Arabuluculuk
5
0% / 100%
Süresi dolmuş
0
Serbest
Benzer siparişler
EA Crafter 500+ USD
Act as a professional Quantitative Developer and Risk Manager. I want to build a systematic trading strategy rulebook that prioritizes capital preservation and statistical edge over raw performance. Please generate a structured trading strategy using the following framework: 1. ASSET CLASS & TIMEFRAME: - Asset: [e.g., Apple (AAPL), Bitcoin (BTC), or EUR/USD] - Timeframe: [e.g., 5-minute, 1-hour, Daily] 2. CORE
Part 1: Project setup Input settings (risk, stop loss, take profit, EMA periods) Indicator initialization Trade management framework Part 2: Trading logic EMA crossover detection Buy/Sell entry rules One-trade-per-symbol check Part 3: Risk management Automatic lot size calculation Stop-loss and take-profit placement Trade execution and error handling Part 4: Final touches On-screen information Optimization
# H4 Zone Retest EA (MQL5) An automated trading Expert Advisor (EA) for MetaTrader 5, developed in MQL5. The EA trades gold (XAUUSD) using a multi-timeframe breakout and retest strategy: it defines the first H4 candle of each day as a trading zone, detects breakouts on the M5 chart, waits for a retest, and executes trades with risk management, trailing stops, and optional news filtering. --- ## Features - H4 → M5
I require a custom EA and an accompanying custom indicator built in MQL5 for Meta Trader 4/5. The EA must be fully automated (Algo Trading); Telegram-Signal-Linked and named 'AMK Fx'

Proje bilgisi

Bütçe
30+ USD