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%
空闲
相似订单
I need a professional MT5 Expert Advisor coded to combine two strategies: SMC Strategy (Smart Money Concept) using H1 candlesticks, supply/demand zones, and market structure shifts. Breakout Strategy using M15, M30, H1, and H4 candlesticks, with the same rules as SMC but based on pre‑session highs/lows and breakout confirmations. Parameters: Adjustable Lot size: adjustable (default 0.01) Positions per trade: 2 Stop
ICT Strategy 100+ USD
Hello, I want help coding an ICT strategy: entering 5M FVGs in the direction of bias/DOL between 3–4 AM NYC. The problem is that finding the bias/DOL is discretionary—are there indicators or ways to make it codable? Anyone that can do this should message me
I need an expert who trades gold on 1-minute and 5-minute timeframes and delivers good results. What are your capabilities for this task? What experience do you have in doing this? If you have any previous trading patterns, please share them with me
ICT_OneTrade_2R 100 - 200 USD
🔥 ICT_OneTrade_2R Precision. Discipline. Consistency. ICT_OneTrade_2R is a professional Expert Advisor designed for traders who value structured execution and controlled risk. This system is built around a fixed Risk-to-Reward ratio of 1:2 (RR 2.0) — meaning every trade is planned with precision: Risk 1 → Target 2. No randomness. No overtrading. Just one high-quality trade per session. ⚙️ Key Features ✔ Fixed RR 1:2
Candle EA 30+ USD
I'm looking for ea based on below requirement Buy trade When 1st candle (previous candle) is sell candle then the 2nd candle (current candle) turn buy and past the opening price of 1st candle put instant buy Hidden TP - 20pips Hidden SL - 1st candle lowest price then add another 10 pips (5 digit)
Subject: Upgrade Trading Bot to Professional Dynamic Hedging on Current Candle Hello [Developer Name], I currently have a trading bot that operates with pending orders (Buy Stop and Sell Stop) using Take Profit, Stop Loss, and Trailing Stop. I want to upgrade it to a professional, dynamic hedging system that: Opens trades on the current candle directly, without waiting for future triggers. Manages trades
I’m looking for developer to build an AI-assisted trading system for Metatader 5 . You to deliver, working MT5 module, AI module (Python or compatible), source codes for both This phase is focused strictly on core logic and AI integration , not UI or dashboards. Kindly reach out only if you have experience on AI integration and prove of past work
​ Description: I am looking for a professional MQL4 developer/quant trader with a proven track record in EA optimization. This project involves optimizing a third-party EA that currently has a 2-year live track record. ​ The Task: ​ In-Sample Optimization: Optimize the EA parameters using historical data prior to January 1, 2024. ​ Out-of-Sample (Walk-Forward): Validate the optimized settings against the period of
Trade settings: --------------------------------- fixed lot size ….. 0.0 Buy /Sell distance market order…. 0.0 - 700.0 points Buy / Sell distance pending order Entry---- 0.0 - 700.0 points Max Trade------ 10.0 Min spread...… 0.0 points Max spread..... 3000.0 points Daily profit percentage ….. 0.0 - 100 % Global Stoploss Percentage----- 0.0 - 100 % Max Daily loss Percentage ------0.0 - 100 % Stop level = 0.0 point
📌 General 🔸 Pair: XAUUSD (Gold) 🔸 Timeframe: M1 only 🔸 Strategy: Funded account ❌ No over-trading 📊 Trade Frequency Rules 🔹 One win OR one loss per day only 🔹 If trade goes Break-Even, another trades allowed same day 🔹 If trade hits TP or SL, trading must stop for that day 🔹 Only one active trade at a time 💰 Risk & Reward 🔹 Risk per trade: 1% 🔹 Risk–Reward (RR): 1:3 🔹 Break-Even rule: At 1:1 RR SL must

项目信息

预算
50+ USD