指定

//@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
評価
(374)
プロジェクト
480
23%
仲裁
58
55% / 24%
期限切れ
55
11%
多忙
3
開発者 3
評価
(2)
プロジェクト
5
0%
仲裁
3
0% / 100%
期限切れ
1
20%
仕事中
4
開発者 4
評価
(58)
プロジェクト
85
27%
仲裁
24
13% / 58%
期限切れ
7
8%
仕事中
5
開発者 5
評価
(19)
プロジェクト
31
32%
仲裁
8
50% / 25%
期限切れ
3
10%
仕事中
6
開発者 6
評価
(438)
プロジェクト
692
34%
仲裁
34
68% / 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
評価
(269)
プロジェクト
398
27%
仲裁
39
41% / 49%
期限切れ
1
0%
11
開発者 11
評価
(516)
プロジェクト
784
63%
仲裁
33
27% / 45%
期限切れ
23
3%
パブリッシュした人: 1 code
12
開発者 12
評価
プロジェクト
1
0%
仲裁
4
0% / 50%
期限切れ
0
仕事中
13
開発者 13
評価
(337)
プロジェクト
405
53%
仲裁
20
55% / 15%
期限切れ
29
7%
仕事中
14
開発者 14
評価
(102)
プロジェクト
105
60%
仲裁
0
期限切れ
0
15
開発者 15
評価
(43)
プロジェクト
66
12%
仲裁
12
58% / 42%
期限切れ
1
2%
16
開発者 16
評価
(617)
プロジェクト
1427
59%
仲裁
31
81% / 0%
期限切れ
10
1%
17
開発者 17
評価
(3)
プロジェクト
5
40%
仲裁
2
0% / 50%
期限切れ
1
20%
18
開発者 18
評価
(207)
プロジェクト
218
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
評価
(270)
プロジェクト
552
49%
仲裁
57
40% / 37%
期限切れ
228
41%
仕事中
22
開発者 22
評価
(152)
プロジェクト
190
57%
仲裁
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%
類似した注文
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
Henryy999 30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
// Add this to your EA after ExportState() function void SendToBase44(const string state, const string dir, double entry, double sl, double tp) { string url = " https://preview-sandbox--ee0a32a725b788974de435e8cef40b7a.base44.app/api/functions/receiveEAState "; string headers = "Content-Type: application/json\r\n"; string json = "{" "\"symbol\":\""+_Symbol+"\","
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi
A trading expert that relies on specific signals such as price breaking a peak or trough, liquidity withdrawal, and retesting the signal. Lock the expert advisor with a code and create a subscriber base with a separate key for each subscriber
EA grid hunter 30 - 200 USD
1. Platform & Environment Platform: MetaTrader 5 (MT5 ONLY) Language: MQL5 Account type: ECN / Netting or Hedging Designed for broker rebate/commission return programs No DLLs, no external dependencies 2. Strategy Overview The EA is a high-frequency scalping Expert Advisor focused on maximizing the number of trades with minimal price movement, where the main source of profitability is broker rebate rather than market

プロジェクト情報

予算
30+ USD