Spécifications

//@version=5
strategy("SMA 20 + Engulfing Strategy", overlay=true)

// Define strategy inputs
smaPeriod = input(20, title="SMA Period")
stopLossPercent = input(1, title="Stop Loss %")
takeProfitPercent = input(2, title="Take Profit %")

// Calculate SMA
smaValue = ta.sma(close, smaPeriod)

// Determine bullish engulfing condition
isBullishEngulfing = ta.isbullishengulfing(close, open)

// Determine bearish engulfing condition
isBearishEngulfing = ta.isbearishengulfing(close, open)

// Define entry and exit conditions
enterLong = crossover(close, smaValue) and isBullishEngulfing
enterShort = crossunder(close, smaValue) and isBearishEngulfing
exitLong = ta.change(close) < 0
exitShort = ta.change(close) > 0

// Calculate stop loss and take profit levels
stopLossLevel = close * (1 - stopLossPercent / 100)
takeProfitLevel = close * (1 + takeProfitPercent / 100)

// Execute trades based on entry and exit conditions
if (enterLong)
    strategy.entry("Buy", strategy.long)
    strategy.exit("Sell", "Buy", stop=stopLossLevel, limit=takeProfitLevel)

if (enterShort)
    strategy.entry("Sell", strategy.short)
    strategy.exit("Cover", "Sell", stop=stopLossLevel, limit=takeProfitLevel)

// Plot the SMA on the chart
plot(smaValue, color=color.blue, title="SMA 20")

Répondu

1
Développeur 1
Évaluation
(24)
Projets
31
16%
Arbitrage
7
29% / 43%
En retard
4
13%
Travail
2
Développeur 2
Évaluation
(63)
Projets
68
25%
Arbitrage
12
42% / 42%
En retard
4
6%
Gratuit
3
Développeur 3
Évaluation
(4)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
0
Gratuit
4
Développeur 4
Évaluation
(463)
Projets
524
33%
Arbitrage
28
39% / 43%
En retard
7
1%
Occupé
5
Développeur 5
Évaluation
(478)
Projets
507
53%
Arbitrage
10
60% / 20%
En retard
3
1%
Gratuit
6
Développeur 6
Évaluation
(298)
Projets
442
64%
Arbitrage
5
40% / 0%
En retard
4
1%
Travail
7
Développeur 7
Évaluation
(32)
Projets
41
68%
Arbitrage
5
0% / 60%
En retard
14
34%
Gratuit
8
Développeur 8
Évaluation
(119)
Projets
127
41%
Arbitrage
3
33% / 67%
En retard
0
Gratuit
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(42)
Projets
88
14%
Arbitrage
30
30% / 53%
En retard
36
41%
Travail
11
Développeur 11
Évaluation
(563)
Projets
932
47%
Arbitrage
302
59% / 25%
En retard
124
13%
Chargé
Commandes similaires
Hello I need a very simple indicator This indicator should show the highest floating or history drawdown of the account It means that it can display the highest number that the account drawdown to be displayed on the chart in this format max drawdown account(xxxx$$) ...date(00/00/00)time:(00:00) max drawdown currency ..( currency name with max drwadown) . (xxxx$$) date(00/00/00)time:(00:00) thanks
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
Hello, I‘m interested in an indicator to predict the next candles probability (bullish or bearish). But honestly I have no idea how to do this. Would be interested in your opinion how we can create such an indicator. Please let me know if you‘ve done similar work
Profitable EA HFT 50 - 300 USD
From a long time i am searching for a profitable EA i have lost a lot , and now i have only 300$ to buy a profitable EA , i wish to say with 0 losses but some or most traders they don't want to hear this i am really tired of searching for a programmer to just create me a profitable EA with the least losses or zero losses maybe nearly 1 year i am searching i just need an HFT EA that can work very well on MT4,MT5
у нас есть стратегия, нам нужно написать mql5-код ​​для тестера стратегий МТ5,Цена договорная. Мой контакт @abbosaliyev из Telegram Программист должен знать РУССКИЙ ИЛИ УЗБЕКСКИЙ язык. Задание: разработать тестер, который использует шаблон условий на открытие и проверит весь исторический график на всех доступных таймфреймах. Остальная информация будет предоставлена ​​после согласования цены
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Utilizing the MQL5 MetaEditor Wizard, I created an Expert Advisor, having the following Signal indicators: I was able to optimize the EA and reached a backtest with the following specifications: I was able to reach a profit level of 30K, as indicated below. However, the Bot is not without faults and following the backtest, I started a forward test with real live data and the results were not so great. The EA took a
Hey greetings. Am in need of a developer that has already made profitable MT4 or MT5 EA that I can buy with the backtesting and proven result. How is the draw down ? What is the winning rate ? Kindly reply and let proceed
I will buy your EA for MT5, in case that on distance it is able to make a profit of 10% per month. - Martingale methods and grid strategies should not be used as the basis of a trading strategy. - Excellent win rate (>80%) - High risk/loss management - Option to select direction of trading (long, short or both) - News filter - Editable Trading Hours I will need to test in the strategy tester and on live market (on
Looking for an experienced developer to modify my existing TDI strategy , want to add filter for Buy and Sell Signals, Arrows are displayed on chart and what only to leave high accurate arrows Source code to be provided

Informations sur le projet

Budget
30 - 200 USD
Pour le développeur
27 - 180 USD