Deirf

MQL5 Experts

Spécifications

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()

Répondu

1
Développeur 1
Évaluation
(35)
Projets
50
42%
Arbitrage
3
33% / 33%
En retard
4
8%
Gratuit
2
Développeur 2
Évaluation
(70)
Projets
91
25%
Arbitrage
26
19% / 54%
En retard
25
27%
Gratuit
Commandes similaires
i have a tradingview simple indecator of 40 lines of code ,i want it to convert it into mt5 EA strategy details given below AUTOMATED TRADING STRATEGY Multi-Lot Execution & Dynamic Trailing Stop Logic System Architecture & Operational Rules Trading Bot Strategy Profile Entry Conditions Buy Logic • • • Wait for Buy Signal candle. Confirmation: Future candle must break the signal high. Execution: Open 2 orders of 0.01
HFT Directional Grid Scalper (Simple, Training Project) Overview We are looking for a developer to create a high-frequency grid scalper with a simple, deterministic logic. This is not a complex bot — the goal is to have a clean implementation for training, testing, and educational purposes. The bot should: Continually open trades in one direction only (BUY or SELL) Use ATR-based grid spacing Maintain a fixed
I want a accurate indicator with buy and sell arrows or circle.. with exit points which trade xauusd and btcusd via weekend ... for small like R100 or 500 .... like which can grow small accounts with ... on for serious developer.. no bullshit ... I need on Friday please
I'd like to automate a relatively simple strategy in Sierra Chart, but I'd like to have it backtested and optimized first. Could we collaborate on this, and what would the cost be? Only bid if you think you can handle this project, and I want expert in sierra chart.. Thanks
I need an EMA crossover EA specifically for Boom and Crash. It should automatically buy and sell when crossovers happen. I want adjustable inputs for lot size, timeframe, and maximum loss. I’m keeping it simple because I’ve had bad experiences with EAs before. It should do only the job it is built for, properly and reliably. need someone who have already build EA or Indicator for Boom and Crash befor atleast 10
//+------------------------------------------------------------------+ //| ProTradingEA MT5 | //| Fully MT5-compliant with MACD, Trailing Stop, Break-Even | //+------------------------------------------------------------------+ #include <Trade\Trade.mqh> CTrade trade; // Optional override input string SymbolOverride = ""; // leave blank to auto-detect struct EASettings { int
I have access to an MT5 account. I have investor access. I would like to know if someone could help me create a bot that copies only the trades made on XAU/USD in that account but in my MT4 account. In that account, many trades are made across various pairs, and I realize that the conditions of their account are not very favorable for the type of trading they do, as the commissions are very high. I have an account
Good day, I would like to have an expert advisor for my MT4 indicator (Major key alert) that can scan and provide push notification messages for entry opportunities across different time frames when a when a signal is identified
"I need an MT5 EA based on price action — liquidity sweep + hammer/shooting star reversal strategy. TREND: Identified by HH/HL for uptrend, LL/LH for downtrend on selected timeframe. No trade in ranging conditions. BUY SETUP: In uptrend, price retraces to swing low zone, wicks below it (liquidity sweep), hammer forms (lower wick min 2x body, closes above swept low). Buy stop entry at hammer high. SL below hammer
I need a professional MQL5 developer to finalize a Gold (XAUUSD) trading bot. The core layering and support-filter logic is already drafted. Key Requirements: Refine a hybrid Martingale/Layering volume calculation (1-10 / 11-20 reset logic). Implement a robust "Safety Mode" based on Daily Low price breaks. Ensure precise 6:00 AM Server Time reset for logic variables. Add professional error handling (Slippage

Informations sur le projet

Budget
50+ USD