指定

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


in this strategy add 

1) when 85 % of trade complete then stop loss transfer in 10 % of profit.

2) I change  time frame options (main time frame is 15 minute )





































応答済み

1
開発者 1
評価
(22)
プロジェクト
21
10%
仲裁
4
25% / 75%
期限切れ
0
2
開発者 2
評価
(378)
プロジェクト
485
24%
仲裁
59
54% / 25%
期限切れ
55
11%
取り込み中
3
開発者 3
評価
(2)
プロジェクト
5
0%
仲裁
3
0% / 100%
期限切れ
1
20%
仕事中
4
開発者 4
評価
(60)
プロジェクト
87
29%
仲裁
24
13% / 58%
期限切れ
7
8%
仕事中
5
開発者 5
評価
(19)
プロジェクト
31
32%
仲裁
8
50% / 25%
期限切れ
3
10%
仕事中
6
開発者 6
評価
(443)
プロジェクト
700
34%
仲裁
34
71% / 9%
期限切れ
22
3%
7
開発者 7
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
8
開発者 8
評価
(2)
プロジェクト
2
100%
仲裁
1
0% / 0%
期限切れ
0
9
開発者 9
評価
(64)
プロジェクト
83
28%
仲裁
9
33% / 56%
期限切れ
9
11%
パブリッシュした人: 1 code
10
開発者 10
評価
(273)
プロジェクト
401
27%
仲裁
40
40% / 50%
期限切れ
1
0%
11
開発者 11
評価
(536)
プロジェクト
812
62%
仲裁
33
27% / 45%
期限切れ
23
3%
パブリッシュした人: 1 code
12
開発者 12
評価
プロジェクト
1
0%
仲裁
4
0% / 50%
期限切れ
0
仕事中
13
開発者 13
評価
(358)
プロジェクト
430
54%
仲裁
20
55% / 15%
期限切れ
29
7%
取り込み中
14
開発者 14
評価
(102)
プロジェクト
105
60%
仲裁
0
期限切れ
0
15
開発者 15
評価
(43)
プロジェクト
66
12%
仲裁
12
58% / 42%
期限切れ
1
2%
16
開発者 16
評価
(618)
プロジェクト
1428
59%
仲裁
31
81% / 0%
期限切れ
10
1%
17
開発者 17
評価
(3)
プロジェクト
5
40%
仲裁
2
0% / 50%
期限切れ
1
20%
18
開発者 18
評価
(209)
プロジェクト
220
75%
仲裁
0
期限切れ
0
19
開発者 19
評価
(4)
プロジェクト
5
20%
仲裁
2
0% / 100%
期限切れ
1
20%
パブリッシュした人: 3 codes
20
開発者 20
評価
(206)
プロジェクト
333
35%
仲裁
66
12% / 58%
期限切れ
87
26%
21
開発者 21
評価
(271)
プロジェクト
553
50%
仲裁
57
40% / 37%
期限切れ
227
41%
仕事中
22
開発者 22
評価
(155)
プロジェクト
193
58%
仲裁
10
80% / 0%
期限切れ
0
仕事中
パブリッシュした人: 1 code
23
開発者 23
評価
(4)
プロジェクト
2
0%
仲裁
5
0% / 80%
期限切れ
1
50%
24
開発者 24
評価
(52)
プロジェクト
67
43%
仲裁
8
0% / 100%
期限切れ
3
4%
25
開発者 25
評価
(72)
プロジェクト
80
10%
仲裁
38
8% / 58%
期限切れ
6
8%
26
開発者 26
評価
(574)
プロジェクト
945
47%
仲裁
309
58% / 27%
期限切れ
125
13%
類似した注文
Looking for a Marketing Partner for my EAs! I am a developer looking for an experienced partner to help promote and market my Expert Advisors (MT4/MT5). How it works: > * I handle the coding, updates, and technical support. You handle the marketing, outreach, and bringing in traders. Compensation: We work on a Revenue Share / Profit Split basis. If you have an audience of traders or know how to market forex tools
I am looking for an experienced quantitative developer to analyze and optimize an MT5 Expert Advisor that I have already developed. The EA is relatively complex and includes: Multiple strategies (Trend Pullback, Breakout, Mean Reversion, EMA Reclaim) Scoring system combining technical score and probabilistic filter Regime detection (ADX based) Volatility filters (ATR regime) Correlation and cluster exposure control
XAUUSD - TREND TRADER 30 - 500 USD
Find a good entry point and enter the trade .after the first profit of 25% is done then exit the trade .find the good market analysis of the trend and know when the market is on a good trend. After that now know the entry point and the take profit of the slot you have opened .have also a risk management strategy
Good morning, I have a Gap Fill strategy and a 10 min opening range break strategy that trade on RTH ES Futures data I have been working on that seem to have some bugs while live trading. They have both been coded by ChatGPT so I would like someone that know how to properly code a strategy to go over each to proof and debug them. Would you be able to do this and could you possibly add some context or features that
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy

プロジェクト情報

予算
30+ USD