Deirf

MQL5 エキスパート

指定

import talib

SYMBOL = 'V100'  # Indice Volatility 100 Index
PERIOD = 'M15'
STOP_LOSS = 100  # en pips
RISK_PER_TRADE = 0.01  # risque de 1% par transaction
REWARD_RISK_RATIO = 5  # ratio risque/rendement de 1:5
MAX_POSITIONS = 10  # nombre maximal de positions ouvertes
position_size = None


def initialize():
    global position_size
    # initialiser les variables nécessaires
    position_size = (Account.balance * RISK_PER_TRADE) / STOP_LOSS


def handle_tick():
    global position_size
    # récupérer les prix et calculer la TEMA(40)
    prices = History.prices(SYMBOL, PERIOD, 40)
    tem, _, _ = talib.TEMA(prices, timeperiod=40)

    # récupérer le dernier prix et le dernier signal de la TEMA
    last_price = History.price(SYMBOL, PERIOD, 0)
    last_tema = tem[-1]

    # vérifier si le dernier prix est supérieur à la TEMA
    if last_price > last_tema and len(Positions) < MAX_POSITIONS:
        # calculer les niveaux de stop loss et take profit
        stop_loss_price = last_price - (STOP_LOSS * Symbol.pipSize())
        take_profit_price = last_price + (STOP_LOSS * REWARD_RISK_RATIO * Symbol.pipSize())

        # calculer la taille de la position en fonction du risque par transaction
        position_size = (Account.balance * RISK_PER_TRADE) / (last_price - stop_loss_price)

        # ouvrir une position avec un stop loss et un take profit
        ticket = OrderSend(SYMBOL, OP_BUY, position_size, last_price, 3, stop_loss_price, take_profit_price)
        if ticket <= 0:
            print(f"Erreur lors de l'ouverture de la position : {ErrorDescription(ticket)}")

    # clôturer toutes les positions si le prix est inférieur à la TEMA
    elif last_price <= last_tema:
        for position in Positions:
            if position.symbol() == SYMBOL:
                position.close()

応答済み

1
開発者 1
評価
(35)
プロジェクト
50
42%
仲裁
3
33% / 33%
期限切れ
4
8%
2
開発者 2
評価
(70)
プロジェクト
91
25%
仲裁
26
19% / 54%
期限切れ
25
27%
類似した注文
MT5 30 - 50 USD
I'm looking for an experienced MQL5 developer to help with backtesting, optimization, and VPS setup for a prop firm EA on XAUUSD (Gold). Scope of work - Backtest and optimize using high-quality tick data from Dukascopy or Polygon (2020–2025) - Perform Monte Carlo and Walk-Forward testing to optimize parameters like ATR multipliers and risk % - VPS installation and configuration for continuous MT5 operation - Apply
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
Expert MQL5 Developer 30 - 200 USD
Transform Your Trading Strategy into a Powerful Automated Reality! Are you looking for a reliable developer to automate your trading edge? I specialize in creating high-performance Expert Advisors (EAs) and custom indicators for MT5, tailored exactly to your unique trading rules. Why work with me? Tailor-Made Solutions: Whether it’s SMC (Smart Money Concepts), ICT, Grid, Martingale, or Scalping—I code it all based on
💡🤝 I am open to various proposals and product ideas — cooperation, partnership, or joint ventures are welcome. 🛂✈️ I can also assist with arranging a visa or passport for a European Union country 🇪🇺 ✅🤝 I am looking for an honest, reliable, and serious partner. 🚫❌ Serious offers only, please. 📩💬 Feel free to contact me if you are genuinely interested
I am looking for an experienced MQL5 developer to create a high-performance Super Scalper EA for MetaTrader 5, designed specifically for XAUUSD trading on IC Markets. Only serious developers with proven scalping experience should apply. 🔧 General Requirements Platform: MetaTrader 5 (MT5) Instrument: XAUUSD Timeframe: M1 – M15 Broker: IC Markets Initial capital: $100–150 USD Minimum lot: 0.01 Risk per trade
Hi! I need a trading bot/robot to automate my trades. I don't need much complicated bot. I want it to enter, exit trade and can do this in matter of second or multiple times in a second. Should be able to adjust, put SL/TP in the same menu. Would appreciate your ideas! Please write to me before anything else
I need bot that will auto execute trades bases on my price-action strategies all entries on XAUUSD and fire webhooks straight into my Exness MT5 account so trades are opened, managed, and closed without manual intervention. Core logic • Entry signals come exclusively from candlestick patterns. The exact patterns (e.g. Engulfing, Doji, Hammer) can be finalised together once you are on board, but the code must make it
I am looking for an experienced specialist to assist with the installation and configuration of multiple existing trading robots for use on prop firm accounts. Requirements: Proven experience working with high-performance and profitable trading robots Strong knowledge of prop firm requirements and constraints Assistance with MT4 setup and prop account connectivity Hands-on support and availability for follow-up
Based on 5 ema, 200, 100, 50 , 5 ema apply to high and 5 ema apply to low, reach out for more information........... . . . . . . . . . . . . . . . . . . . . . . Tp should be based on rr with options of fixed profit as well as percentange
I want to create an SMC bot base on ICT and Market structure,the bot must be able to keep adding on more positions while started.The bot must have a perfect risk management

プロジェクト情報

予算
50+ USD