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
Recent EA 30+ USD
PROP-FIRM FOREX EA (SAFE MODE) 1. EA OBJECTIVE Develop a low-drawdown, high-discipline Forex EA designed to: Pass prop-firm challenges Respect strict risk rules Trade consistently, not aggressively 2. TRADING STYLE Strategy type: Trend continuation + pullback No scalping noise No martingale No grid No hedge abuse 3. TIMEFRAME & SESSIONS Primary TF: M15 Confirmation TF: H1 Trading sessions: London Open → London Close
How long would it take to install automated trading on Ninjatrader and what information would you need ? It urgent if anyone can help with this kind do well by biding to this project and let discuss more
Specification Hi Free lancers, I need an EA which relates to Sure Fire Hedging EA base on Below parameters needed. Overview how it works: This EA will be able to open a trade with either Buy or Sell selection (manual- to be manually switch buy or sell selection ), another selection for automatic open trading can choose only buy. Once the EA already open trade (example -buy position) with starting lot size 0.01
Hedge Lot Plus EA Descriptions: (New EA) 1- The necessary explanations, documentation, and working principle details will be provided after the contract is signed. 2- The chart, button, and dashboard- template sample code will be provided. 3- There is no indicator. and work principle is easy. ** After the contract is signed,sampe code, a sample EA for "Hedge Lot Plus EA" and detailed information about the working
Experienced developer needed for a $100 project. I need to build three trading bots to copy signals from a Telegram channel and execute them on a trading account. The first bot will be used in the second and third bots as well, with some minor modifications. I will pay $40 for the first bot, $30 for the second, and $30 for the third. Contact me for details
1- Parts to Be Updated in Universal EA: 1- For Mode 2 (No Indicator Mode), a candle count parameter will be added for pivot breakout. The EA will determine how many candles after the pivot breakout it will add a position based on this parameter. 2- In Mode 1 (MA Mode), we will fix the error in one of the "Select Take Profit" modes called "Kill Position + Clean One by One." 3- We will fix the errors in Recovery Mode
Data Integrity 500 - 1000 USD
The trading bot is an automated software system designed to monitor financial markets, execute trades, and manage risk based on predefined strategies. The bot aims to maximize profits while minimizing human intervention and emotional decision-making. Scope: Supports automated trading on selected exchanges (e.g., Binance, Bitget, Coinbase). Executes trades based on technical indicators, signals, or AI models. Provides
1. General Objective Development of an Expert Advisor in MQL5 intended for Futures markets , based on an existing trading strategy that I will provide (described logic or precise rules). The main objectives are: Faithful implementation of the strategy , Full debugging of the EA, Validation of correct behavior through backtesting. 2. Markets and Instruments Markets: Futures Symbols: to be defined (e.g. indices
Subject: Major Upgrade Request: Auto Confluence of Signal/Trend/Momentum Scores with Multi-Timeframe SMC Hello, Your bot is excellent analytically, but I'm facing daily manual intervention due to the multiple indicators and timeframes. --- 📊 Current Situation: The bot uses: · Signal Score · Trend Score · Momentum Score · SMC Analysis · 3 Timeframes (Fast 5M, Medium 15M, Main 1H) · 4 Additional Indicators Currently
SMC Trading Bot 30 - 60 USD
1. The Core Idea: The "Liquidity-to-Liquidity" Engine Instead of just looking for a "Supply Zone," the bot must ask: "Whose money was just taken, and whose money are we targeting next?" The "Valid Move" Checklist A structure break or a zone is only "Real" if it meets the SMC Trinity: Inducement/Sweep: Price must take out a previous minor high/low (Retail Stop Loss) before the move. Displacement: The move must be

Informations sur le projet

Budget
50+ USD