Tarea técnica

//@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")

Han respondido

1
Desarrollador 1
Evaluación
(20)
Proyectos
19
11%
Arbitraje
2
50% / 50%
Caducado
0
Trabaja
2
Desarrollador 2
Evaluación
(294)
Proyectos
371
21%
Arbitraje
43
60% / 23%
Caducado
43
12%
Trabajando
3
Desarrollador 3
Evaluación
(1)
Proyectos
3
0%
Arbitraje
0
Caducado
0
Trabaja
4
Desarrollador 4
Evaluación
(22)
Proyectos
28
11%
Arbitraje
6
33% / 50%
Caducado
4
14%
Trabaja
5
Desarrollador 5
Evaluación
(14)
Proyectos
22
23%
Arbitraje
7
43% / 29%
Caducado
3
14%
Trabajando
6
Desarrollador 6
Evaluación
(347)
Proyectos
543
32%
Arbitraje
24
67% / 8%
Caducado
15
3%
Libre
7
Desarrollador 7
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(57)
Proyectos
75
25%
Arbitraje
9
33% / 56%
Caducado
8
11%
Libre
10
Desarrollador 10
Evaluación
(154)
Proyectos
217
22%
Arbitraje
14
64% / 21%
Caducado
1
0%
Trabajando
11
Desarrollador 11
Evaluación
(508)
Proyectos
765
63%
Arbitraje
33
27% / 45%
Caducado
23
3%
Libre
12
Desarrollador 12
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Trabaja
13
Desarrollador 13
Evaluación
(62)
Proyectos
69
29%
Arbitraje
2
0% / 0%
Caducado
1
1%
Trabajando
14
Desarrollador 14
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
15
Desarrollador 15
Evaluación
(42)
Proyectos
62
8%
Arbitraje
12
58% / 42%
Caducado
1
2%
Libre
16
Desarrollador 16
Evaluación
(548)
Proyectos
1330
59%
Arbitraje
28
82% / 0%
Caducado
10
1%
Libre
17
Desarrollador 17
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Trabaja
18
Desarrollador 18
Evaluación
(74)
Proyectos
86
57%
Arbitraje
0
Caducado
0
Libre
19
Desarrollador 19
Evaluación
(3)
Proyectos
3
0%
Arbitraje
0
Caducado
0
Trabaja
20
Desarrollador 20
Evaluación
(196)
Proyectos
318
35%
Arbitraje
64
13% / 56%
Caducado
82
26%
Libre
21
Desarrollador 21
Evaluación
(265)
Proyectos
539
50%
Arbitraje
55
40% / 36%
Caducado
224
42%
Trabaja
Solicitudes similares
I need a chart to replicate/track my equity + Balance Curve into my mt4. Also this chart i need to be able to add Stochastic / Bollingerband / Moving average on the equity/balance curve. Besides the equity curve i would like the indicator to show the Line-chart of my win + 1 and my loss -1 which results in a win-loss curve. ( i will discuss this with the choosen developer in depth. ) More information on what i want
I want to export the live feed from my market watch to my technical analysis software. They have provided me an api also. Is there a way that their api can be integrated and take rates from my mt5 client terminal
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should
I need a AI signal generating and executing bot for forex trading. The bot should operate such that when i put it in a chart it will analyze the market, after several minutes it will display whether the trade is buying or selling and then execute a trade. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame whether they are buying or selling. If it is buying the
looking for help to get my ibkr automated, i have strategies already built in composer and have JSON for them, i really just need to he setup and explanation on how to maintain it and add new strategies
I need a AI signal generating bot for forex trading. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame whether they are buying or selling. If it is buying the arrow should be green and if it is
Using Bollinger Band only. When price closes above upper BB, open Buy. If the length of the candle body that closed above the upper BB is more than Y pips, then do not Buy and remove the EA. Otherwise, continue to open Buy if crosses and close above upper BB and the number of positions is not more than Max No of Positions. The user will choose either Buy or Sell only. When price closes below the lower BB, close all
The expert Advisor will place trades during high-impact news releases. it will then close trades by trailing stop methods after reaching the breakeven points. It should be built in such a way that it will allow adjustments of parameters like opening distance points, initial stop loss, breakeven points etc
Hello freelancers here, I need an expert to help me with coding my script which is already working in pinescript, Moreover, i want a system whereby i can sell my trading bot and can give access with a license, I need an expert that can help me with this
I need an EA which only trades the news data. The EA has to analyze the news-data and needs to classify them into categories. The Strategy includes the following points and this features needs to be included : 1. Filter for news Data : Pairs : USD ● EUR ● AUD ● GBP News Events : GDP Unemployment rate (initial claims) CB Consumer Confidence (US) Retail sales Consumer Price Index (CPI) Purchasing Managers' Index (PMI)

Información sobre el proyecto

Presupuesto
30+ USD

Cliente

Encargos realizados1
Número de arbitrajes0