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
Évaluation
Projets
50
42%
Arbitrage
3
33%
/
33%
En retard
4
8%
Gratuit
2
Évaluation
Projets
91
25%
Arbitrage
26
19%
/
54%
En retard
25
27%
Gratuit
Commandes similaires
Olá, Sou um comprador sério interessado em adquirir um Expert Advisor (EA) já existente, estável e rentável, projetado especificamente para: 👉 principalmente (XAUUSD) ou qualquer outro câmbio Trata-se de um pedido de compra integral. ⚠️ Não estou interessado em criar um novo EA do zero. Somente sistemas prontos para uso e comprovados, com histórico real de desempenho. ✅ Requisitos da EA (Rigorosos) 📌 Símbolo e
Money Manger/monitor changes
30 - 100 USD
My EA (Expert Advisor) is a powerhouse! 💪 With rock-solid 100% risk management, it lets you trade stress-free while maximizing gains. Free to manage manually, it's designed to boost profitability. 🚀
Grid bot for pionex bitmart, gateio
100 - 350 USD
Hello, Primary goal: convert the existing MQL5 strategy logic to Python as soon as possible and make it work for API trading (order management, exchange connection, basic bot structure). I want to keep the core logic unchanged . I haven’t chosen the exchange yet (must be usable in the EU ). Binance, OKX, Kraken, and Bybit are not options. Bitmart, pionex, gateio are options. Secondary goal (code reduction): the
This post is subject to developers response . Edit the post as you like . May be with me you can make a come back . So , , , Shift calculations . More to the calculation then you can comprehend is known . What else comes to your mind
This first robot I'm needing to order a robot that will help me with my trading and make it most efficient Help me with my margins my signals or anything I need to do associated to my trading or classroom
1- In the Universal EA that I currently have, in MA mode under the Take Profit options, when using the “Kill positions + clean one buy one” option, the counter resets itself before the accumulated loss is fully recovered while the loss stored in memory is being cleared. If fixing this is not possible, then I would like to modify the method as follows: Instead of clearing the accumulated losses in the Losses Pool one
1. Shift the Time Gate (Critical) Current start time: 08:30 New required start time: 08:35:01 The EA is currently triggering trades too early (between 08:25 – 08:30 ), which is causing incorrect entries. Please ensure the EA cannot enter any trade before 08:35:01 . 2. Change Order Execution Logic The current code is using Pending Orders . Please remove pending order logic completely . Replace it with Direct Market
Robot auto trading
30+ USD
Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with the specified period
Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows: market entries are performed when MACD's main and signal lines intersect in the current trend direction. 2. Trend is determined based on the Exponential Moving Average with the specified period
I am looking for a pre-built MetaTrader 5 (MT5) Expert Advisor (EA) that can fully automate trading on major currency pairs such as EURUSD, AUDUSD, EURCAD, and USDCAD. Requirements: Fully automated trading (no manual intervention required) Compatible with MT5 platform Designed for consistent, long-term performance Demonstrated average monthly return of at least 3% Verified backtest and/or live trading results showing
Informations sur le projet
Budget
50+ USD