Specification
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()
Responded
1
Rating
Projects
50
42%
Arbitration
3
33%
/
33%
Overdue
4
8%
Free
2
Rating
Projects
84
26%
Arbitration
22
23%
/
50%
Overdue
23
27%
Working
Similar orders
Simple trend session EA MT5
50 - 100 USD
Hello I need create simple trend first candle session EA. Ea wait for first M5/M15/M30/H1 (all possible timeframes to choose) candle at asian, european and NYC session and open buy/sell stop order above (in long situation) or below (in short situation) x points from highest/lowest point of the first candle. + trailing stop loss stop loss take profit breakeven magic key
Hello Guys ! Looking for a developer to create a EA for my Buy and Sell No repaint indicator. I only have the EX4 indicator file and I want the EA to take trades according to the Buy and sells signals generated by the Indicator. Here are some inputs I want for the EA: - Trailing stop - TP and SL ( in pips ) - Entries, TP and SL ( based on opposite signals arrow ) - Daily target ( in Dollars $ or % ) - Trading hours -
Mt4 or mt5 integrated with telegram
30 - 69 USD
I need a robot that copies the orders sent in the telegram group to MT4 or MT5 so that I can configure the parameters. I would like it to have functions so I can enter and exit negotiations according to my configuration parameters
Together we will go further
50+ USD
i need to delegate this job. XAUUSD H4 MT4 i have an ea with source code with smc, fvg, orderblocks and fibonacci, i need to fix somethings and add some features for live markets, any new ideas are accepted, i need also a 4 years backtest report (of metatrader 4). if you have good price and feedbacks and you want work for me also for new jobs apply for this job it's not urgent i need only a good price
Hello, I hope you are well. I have an alert/s that I would like to provide buy and sell orders. The alerts are named *ENTRY* and *EXIT*, so the EA will know what to do. I would like the EA to have the following parameters: 1. Select the number of trades per currency pair 2. Time to trade: Time to start trading to time to end trading - I would like 4 different times to be able to be entered 3. Option to choose which
Order Manager
30 - 60 USD
I am looking for a programmer to develop an Expert Advisor (EA) for order management, which will be used alongside simpler EAs. This EA should include advanced functionalities for efficient and personalized management. **Key Features:** 1. **Comprehensive Information Panel:** - **Order Visualization:** Display all open orders by currency pair, including short and long positions. - **Font Resizing Option:** Allow
Hello! I'm looking for an Expert Advisor that will identify Fair Value Gaps above or below a Simple Moving Average line and take sells when price is above the line and buys when price is below the line. It will take only one trade at a time. It will not take a trade when price is within a number of pips (a parameter) of the SMA. I would like a copy of the source code. When a trade is entered, a text message will be
Hi All I'm searching for a Boom and Crash EA that consistently generates profit. The EA must maintain a drawdown below 40% at all times from 2020 to 2024, ensuring this level each month. I'd like to test it in demo mode for 2-3 days before completing the full payment. : note - you need to work on logic
Add alert to Tradingview Script
30+ USD
Hello, I purchased a TradingView script that works very well, but it doesn’t have any alerts. All I need are alerts programmed so I don’t have to sit behind the chart watching it all the time
Hi there, I'm looking for an EXPERT ADVISOR developed in MQL4 for the Forex market. I would like to have it in white label to customise and promote with my brand. The software should have: ⦁ excellent win rate (>80%) ⦁ High risk/loss management ⦁ Linked to macroeconomic news ⦁ Based on ADX, Moving Average and RSI Features : ✅ Currency pairs to use: ALL ✅ Maximum lots per trade editable ✅ Lot Size Editable ✅ Magic
Project information
Budget
50+ USD
VAT (20%):
10
USD
Total:
60
USD
For the developer
45
USD