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
I’m looking to hire an experienced MQL5 developer to help me build a custom Expert Advisor (EA) that combines 4 trading strategies into one smart, modular EA: ✅ Price Action-Based Entries ✅ Trendline Continuation or Breakout Recognition ✅ Structure Breakout & Retest Entries ✅ Price hit the support and show sign of reversal 📈 EA Concept Overview: The EA will: Analyze market structure (HH, HL, LH, LL)
We are looking to acquire an existing, stable, and profitable EA , specifically one that trades using price action–based logic . The EA must operate as a day-trading system with proper Stop Loss and Take Profit , and must NOT use grid, martingale, averaging, or high-frequency scalping. This is a full buyout request — we want to purchase the entire strategy together with the complete source code . We are serious
Expect Advisor base on RSI
36+ USD
1.RSI strategy for gold , use RSI to identify overbought (above 70)and oversold (below 30) conditions. .Implement entry signals when RSI crosses these thresholds. 2.Risk management , set a maximum percentage of account equity per trade 1-2 % . Implement stop loss and take profit levels to limit loses and lock in gains. .Apply a maximum draw down limit to prevent significant losses. 3. Trade execution , ensure proper
Tick collector
50+ USD
Need an EA for trading Future Contracts of US indexes. A simple strategy with two versions. 1- Version 1 A simple Buy/sell order . I buy with 2 sell orders or I sell with 2 buys order . Predetermined profit . Repeat and rinse. Insertion of 2nd order at predetermined loss ticks ,profit in average ,SL placed . 2- Version A simple Buy or Sell order with predetermined loss .One buy and two sell or I sell and two buys in
Hedge Grid EA
50+ USD
I dont know anything about trading. I am looking for a mql5 code, which can place buy and sell at same time (Hedged grid EA). If any one have any such code developed already, please share me more details on it. I'm willing to purchase. Thank you
I need a MetaTrader 5 Expert Advisor that will: 1. Detect when any position from a group of trades (same symbol, same entry price) closes in profit (TP1 hit). 2. When the first profitable close of a group occurs, automatically move the SL of all remaining open positions in that group to their entry price (breakeven). 3. The groups will be opened by a separate EA (such as a signal copier), so no trade opening logic
hello great developer Hi! I have a fairly simple tradingview script I need ported over to cTrader for a trading bot I am looking for a developer to build a simple ORB (Opening Range Breakout) trading strategy . Requirements: ORB calculation and breakout entries (long & short) Static stop loss based on the signal candle Fixed risk–reward take profit Risk calculator to automatically size positions correctly Follow-up
I need a custom MT5 Expert Advisor. Timeframe: M15 Strategy Logic: 1. Detect Change of Character (CHoCH) / Break of Structure (rule-based approximation). 2. Identify inducement (liquidity grab) before BOS. 3. Mark POI zone based on last impulsive move. 4. Apply Fibonacci on the impulse leg. 5. Only trade if price enters Fibonacci Golden Zone (0.618 – 0.786) inside POI. 6. Wait for Pin Bar inside the zone. - Long
Custom MT5 EA”
30+ USD
Должность: Пользовательский советник MT5 для стратегии пробоя максимумов/минимумов на свечных графиках. Описание/требования к должности: Здравствуйте! Мне нужен пользовательский советник (Expert Advisor, EA) для MetaTrader 5 , основанный на простой стратегии пробоя свечей. Советник должен строго соответствовать следующим правилам: 1. Условия покупки: Откройте ордер на покупку , когда текущая цена закроется выше
Hello! I'm looking for an EA to help me pass a prop firm challenge. I know very little about this, so I have practically no demands. Any EA that sort of works is fine. Let me know what you've got. Thanks in advance
Informations sur le projet
Budget
50+ USD