Tarea técnica
I will share the strategy and commence work with anyone that could correct this stochastic divergence function and has a good track record. bool CheckStochasticDivergence() {
// Get the current swing high/low in price
double currentPriceHigh = iHigh(_Symbol, _Period, 0);
double currentPriceLow = iLow(_Symbol, _Period, 0);
// Loop through the last X candles to find the previous swing high/low in price
double prevPriceHigh = currentPriceHigh;
double prevPriceLow = currentPriceLow;
double currentStochK = iStochastic(_Symbol, _Period, KPeriod, DPeriod, Slowing, MODE_SMA, 0, MODE_MAIN, 0);
double prevStochKHigh = currentStochK;
double prevStochKLow = currentStochK;
for (int i = 1; i <= CandlesToRetrace; i++) {
if (iHigh(_Symbol, _Period, i) > prevPriceHigh) {
prevPriceHigh = iHigh(_Symbol, _Period, i);
}
if (iLow(_Symbol, _Period, i) < prevPriceLow) {
prevPriceLow = iLow(_Symbol, _Period, i);
}
double stochKValue = iStochastic(_Symbol, _Period, KPeriod, DPeriod, Slowing, MODE_SMA, 0, MODE_MAIN, i);
if (stochKValue > prevStochKHigh) {
prevStochKHigh = stochKValue;
}
if (stochKValue < prevStochKLow) {
prevStochKLow = stochKValue;
}
}
// Check for bullish divergence
if (currentPriceLow < prevPriceLow && currentStochK > prevStochKLow) {
return true; // Bullish divergence
}
// Check for bearish divergence
else if (currentPriceHigh > prevPriceHigh && currentStochK < prevStochKHigh) {
return true; // Bearish divergence
}
else {
return false; // No divergence
}
}
// Get the current swing high/low in price
double currentPriceHigh = iHigh(_Symbol, _Period, 0);
double currentPriceLow = iLow(_Symbol, _Period, 0);
// Loop through the last X candles to find the previous swing high/low in price
double prevPriceHigh = currentPriceHigh;
double prevPriceLow = currentPriceLow;
double currentStochK = iStochastic(_Symbol, _Period, KPeriod, DPeriod, Slowing, MODE_SMA, 0, MODE_MAIN, 0);
double prevStochKHigh = currentStochK;
double prevStochKLow = currentStochK;
for (int i = 1; i <= CandlesToRetrace; i++) {
if (iHigh(_Symbol, _Period, i) > prevPriceHigh) {
prevPriceHigh = iHigh(_Symbol, _Period, i);
}
if (iLow(_Symbol, _Period, i) < prevPriceLow) {
prevPriceLow = iLow(_Symbol, _Period, i);
}
double stochKValue = iStochastic(_Symbol, _Period, KPeriod, DPeriod, Slowing, MODE_SMA, 0, MODE_MAIN, i);
if (stochKValue > prevStochKHigh) {
prevStochKHigh = stochKValue;
}
if (stochKValue < prevStochKLow) {
prevStochKLow = stochKValue;
}
}
// Check for bullish divergence
if (currentPriceLow < prevPriceLow && currentStochK > prevStochKLow) {
return true; // Bullish divergence
}
// Check for bearish divergence
else if (currentPriceHigh > prevPriceHigh && currentStochK < prevStochKHigh) {
return true; // Bearish divergence
}
else {
return false; // No divergence
}
}
Han respondido
1
Evaluación
Proyectos
25
28%
Arbitraje
1
0%
/
0%
Caducado
1
4%
Trabaja
2
Evaluación
Proyectos
76
7%
Arbitraje
33
9%
/
55%
Caducado
6
8%
Trabaja
3
Evaluación
Proyectos
452
52%
Arbitraje
22
50%
/
27%
Caducado
5
1%
Trabaja
4
Evaluación
Proyectos
293
15%
Arbitraje
20
40%
/
35%
Caducado
16
5%
Trabajando
5
Evaluación
Proyectos
24
17%
Arbitraje
2
0%
/
50%
Caducado
1
4%
Libre
6
Evaluación
Proyectos
169
38%
Arbitraje
9
78%
/
22%
Caducado
15
9%
Libre
7
Evaluación
Proyectos
80
54%
Arbitraje
10
30%
/
30%
Caducado
7
9%
Trabaja
8
Evaluación
Proyectos
104
24%
Arbitraje
7
43%
/
29%
Caducado
8
8%
Trabaja
9
Evaluación
Proyectos
35
54%
Arbitraje
0
Caducado
1
3%
Libre
10
Evaluación
Proyectos
169
70%
Arbitraje
4
100%
/
0%
Caducado
1
1%
Libre
11
Evaluación
Proyectos
45
20%
Arbitraje
24
29%
/
46%
Caducado
12
27%
Libre
12
Evaluación
Proyectos
17
12%
Arbitraje
7
14%
/
57%
Caducado
4
24%
Libre
13
Evaluación
Proyectos
198
27%
Arbitraje
0
Caducado
3
2%
Libre
14
Evaluación
Proyectos
506
33%
Arbitraje
25
40%
/
48%
Caducado
7
1%
Trabajando
15
Evaluación
Proyectos
192
11%
Arbitraje
37
38%
/
35%
Caducado
5
3%
Trabaja
16
Evaluación
Proyectos
5
0%
Arbitraje
1
100%
/
0%
Caducado
0
Libre
17
Evaluación
Proyectos
4
0%
Arbitraje
0
Caducado
0
Libre
18
Evaluación
Proyectos
1
0%
Arbitraje
1
100%
/
0%
Caducado
0
Libre
19
Evaluación
Proyectos
88
14%
Arbitraje
29
31%
/
55%
Caducado
36
41%
Trabaja
Solicitudes similares
i have an ea that was made about a year ago. it works by creating a pair of buy/sell trades with the same lot size. the ones in profit are closed by psar, the loosing ones are partially closed. so there is always a grid of loosing trades open which creates a blanket of trades just waiting to be harvested by the psar. what i would like is an upper and lower level around 500 pips that follows the price line and closes
Profitable Deriv Bot trading volatility indices and with recovery strategy for losing trades
30+ USD
I need a deriv bot for trading volatility indices in deriv that is profitable and with the user guide on how to use it and with a recovery strategy . the bot should open trades and have a closed tp it should use strategy of a hft bot . 30% returns per day should be possible with the bot. I am looking forward to hear from you
Look to trade 5 or 15 mins charts of US30, JPY, EUR, XAU, BTC, etc that counts the number of up sticks or down sticks to determine entering into long or short positions. The stops and T/P levels are set based on volatility of the market at the time. chart time interval, trading instruments, count number of sticks, number of trades per day should be able set on setting file. Please contact me for detail requirements
Need skilled MQL5 programmers for regular work.
30 - 50 USD
Hi, I'm looking for a developer to create a service that can connect to multiple MT4/MT5 accounts across different brokers and retrieve profit/loss data for each account. I have all the necessary details, including account numbers, passwords, and broker servers. Are you able to help with this project
Looking for a good EA
50+ USD
I'm looking for best strategy which works on all forex and crypto market.EA must be work with low balance and generate good profit daily/weekly basis depend on market.Drawdown will be very less.if anyone having this type of strategy send me demo first i will back test it .if it meets my requirements code the same EA for me and adding extra inputs if necessary
Tradingview indicator to MT5 EA
40+ USD
Just a few options i would need, - Enter the trade immediately after the trading signal or enter the trade after the closing candle. - Close the position after a reversal signal or not. - Maximum of 3 trades at the same time. - TP & SL in points or Trailing stop - Fixed lots or % risk based on balance // @version= 5 indicator ( "Trend [Dr Kang]" , overlay = true ) //Pivots plotPivots = true pivotLookup = 1 hih =
Greetings! I am in need of a professional and experienced developer to assist me in enhancing and customizing an existing trading strategy. I have learned this strategy from another source, and I need to make modifications and add unique elements to make it my own. If you have a strong background in developing and customizing trading strategies, I would love to hear from you
Converting an ex4 file to mq4 .I'm looking for good developer who is expert in reverse engineering.like stoploss,Take profit. Trailing,breakeven,news filter and other inputs to be added. Further details will be discussed later
I need an expert advisor for mql5 that can: - open buy order with each bullish candle close - open sell order after each bearish candle close - close any bullish trades if a bearish candle is formed - close any bearish trades if a bullish candle is formed Further, this EA should be able to trade in bias with the trend. For example it should take buys only when the candles are above the 25 moving average and should
Trading ea
300 - 5000 USD
I need an EA for both MT4 and MT5 that can work on both demo and live account with this features : 1. Trading 24/7 2. Connected to the news 3. Pauses during high effective news 4. Has a footprint tool for accurate signals 5. Always aims foe a higher profit 6. High frequency Scalping 7. Auto lot size 8. Capable to work on 1000$ capital and less 9. zero losses 10. Works on any chart 11. When it is installed in any
Información sobre el proyecto
Presupuesto
300+ USD
Plazo límite de ejecución
a 5 día(s)
Cliente
Encargos realizados1
Número de arbitrajes0