Termos de Referência

//@version=5
strategy("EMA Crossover Strategy with 1:1.6 Risk-Reward", overlay=true)

// Define the EMAs
shortEma = ta.ema(close, 10)
longEma = ta.ema(close, 20)

// Plot the EMAs on the chart
plot(shortEma, color=color.blue, title="10 EMA")
plot(longEma, color=color.red, title="20 EMA")

// Calculate the crossover conditions
longCondition = ta.crossover(shortEma, longEma)
shortCondition = ta.crossunder(shortEma, longEma)

// Define the risk-reward ratio
riskRewardRatio = 1.6

// Variables for trade management
var float entryPrice = na
var float stopLoss = na
var float takeProfit = na

// Entry and exit conditions
if (longCondition)
entryPrice := close
stopLoss := entryPrice - (entryPrice - longEma)
takeProfit := entryPrice + (entryPrice - stopLoss) * riskRewardRatio
strategy.entry("Long", strategy.long)
strategy.exit("Take Profit", "Long", limit=takeProfit, stop=stopLoss)


if (shortCondition)
entryPrice := close
stopLoss := entryPrice + (shortEma - entryPrice)
takeProfit := entryPrice - (stopLoss - entryPrice) * riskRewardRatio
strategy.entry("Short", strategy.short)
strategy.exit("Take Profit", "Short", limit=takeProfit, stop=stopLoss)

// Plot the stop loss and take profit levels
plot(stopLoss, color=color.red, linewidth=2, title="Stop Loss")
plot(takeProfit, color=color.green, linewidth=2, title="Take Profit")

Respondido

1
Desenvolvedor 1
Classificação
(20)
Projetos
19
11%
Arbitragem
2
50% / 50%
Expirado
0
Trabalhando
2
Desenvolvedor 2
Classificação
(294)
Projetos
371
21%
Arbitragem
43
60% / 23%
Expirado
43
12%
Carregado
3
Desenvolvedor 3
Classificação
(1)
Projetos
3
0%
Arbitragem
0
Expirado
0
Trabalhando
4
Desenvolvedor 4
Classificação
(22)
Projetos
28
11%
Arbitragem
6
33% / 50%
Expirado
4
14%
Trabalhando
5
Desenvolvedor 5
Classificação
(14)
Projetos
22
23%
Arbitragem
7
43% / 29%
Expirado
3
14%
Carregado
6
Desenvolvedor 6
Classificação
(347)
Projetos
543
32%
Arbitragem
24
67% / 8%
Expirado
15
3%
Livre
7
Desenvolvedor 7
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(57)
Projetos
75
25%
Arbitragem
9
33% / 56%
Expirado
8
11%
Livre
10
Desenvolvedor 10
Classificação
(154)
Projetos
217
22%
Arbitragem
14
64% / 21%
Expirado
1
0%
Carregado
11
Desenvolvedor 11
Classificação
(508)
Projetos
765
63%
Arbitragem
33
27% / 45%
Expirado
23
3%
Livre
12
Desenvolvedor 12
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Trabalhando
13
Desenvolvedor 13
Classificação
(62)
Projetos
69
29%
Arbitragem
2
0% / 0%
Expirado
1
1%
Carregado
14
Desenvolvedor 14
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
15
Desenvolvedor 15
Classificação
(42)
Projetos
62
8%
Arbitragem
12
58% / 42%
Expirado
1
2%
Livre
16
Desenvolvedor 16
Classificação
(548)
Projetos
1330
59%
Arbitragem
28
82% / 0%
Expirado
10
1%
Livre
17
Desenvolvedor 17
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Trabalhando
18
Desenvolvedor 18
Classificação
(74)
Projetos
86
57%
Arbitragem
0
Expirado
0
Livre
19
Desenvolvedor 19
Classificação
(3)
Projetos
3
0%
Arbitragem
0
Expirado
0
Trabalhando
20
Desenvolvedor 20
Classificação
(196)
Projetos
318
35%
Arbitragem
64
13% / 56%
Expirado
82
26%
Livre
21
Desenvolvedor 21
Classificação
(265)
Projetos
539
50%
Arbitragem
55
40% / 36%
Expirado
224
42%
Trabalhando
Pedidos semelhantes
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
Hello, I am looking for a highly skilled and experienced MT4 developer to assist with transferring a strategy currently coded in Pine Script to MetaTrader 4 (MT4). The project requires a professional who can handle this project successfully. I am looking for a dedicated and professional developer who can deliver high-quality results. If you have any questions or need further details about the project, feel free to
Hello, I am looking for a highly skilled and experienced MT5 developer to assist with modifying an existing MT5 file. I am looking for a dedicated and professional developer who can deliver high-quality results. If you have any questions or need further details about the project, feel free to reach out. Thank you for your time and consideration. I look forward to working with the right expert to bring this project to
An EA based on zigzag and some indicators ( The ea is already working i need to add this indicator to guide and control trades) Project Overview: - I am seeking a skilled freelance developer to enhance my existing Expert Advisor (EA) by creating source code that I can easily integrate. The EA currently uses Moving Averages (MA) and lines to place trades. I need to add a zigzag function with a true/false option and
We are looking for an experienced coder to develop a trading robot that utilizes two main indicators: 1) Brain Trend Signal 2) TMA (Triple Moving Average) Centered Bands. The robot should generate buy and sell signals based on specific conditions and include robust risk management features. Initial Requirements - **Indicators**: 1. Brain Trend Signal 2. TMA Centered Bands - **Timeframes**: - H4/D1 for trend
1. Combination of Market Profiles on daily basis a) this should be combined if the bell curve is similar to the previous day. Rotational day (volume - standard deviation). b) If breakout, new range should be drawn Conclusion: Market profile should be combined on daily after the market is closed 2. Use Vwap indicator, with 0.5 - slow trend, 1.0 - normal trend, 1.5 fast trend. The stop loss should be under the trend
I 'm looking for a bot to take trades . I have questions 1 . What is the win rate? It could be ! 2 . Any guarantee if the bot does not take a win trade
Make a 10000 plus script trading Expert advisor with detail and make it flawless with no errors no tiny mistakes and make it in mql 5 language. Make it adjustable for it to be able to trade on its own and not be disturbed and make it study the chart and be able to trade any currency pair. I have zero experience and I would just like to copy and paste the code in MetaTrader. Can you make it be compatible with both
I need a trading bot, My strategy works with the 1hour timeframe .My stop-loss should be put using Atr of the candle multiply by 1.5 then the value will be added or subtracted from my entry depending on if it's a buy or sell and my entry should be a candlestick pattern also in addition to when the 3 Ema corresponds .When the 8Ema is above the 20Ema and they are both above the 100Ema it is a buy and when the 20Ema is
Hello I need a simple heiken ashi candle indicator created . The difference I would like the I indicator to show more candles I know the heiken ashi candle open use the previous days open, close but I would like it to show more candles . So basically say if the previous candle is red the open heiken ashi should be coded using previous days open,close and low / 3. It Sound confusing but all im trying to do is get more

Informações sobre o projeto

Orçamento
30+ USD

Cliente

Pedidos postados1
Número de arbitragens0