Generate signal from candle closed crossing 1 MA

Tarea técnica

i need help to generate candle closed crossing MA, if 1 candle closed crossing signal MA follow candle comes with signal for buy when closed up and for sell when closed down.

Note: Please this is help not have money to pay, just help me please

Bellow is the logic code.


// Calculate the indicator values

    for (int i = prev_calculated - (rates_total==prev_calculated); i < rates_total; i++){

    

         indvalue[i] = slowma[i];

         value_buf_a[i] = 0;

         value_buf_b[i] = 0; 

         

         // Check for MA crossovers

         if (i >= 0 && (i - 2) >= 0 && close[i] > (indvalue[i] + pointNum * _Point) && close[i - 2] < indvalue[i]){

         

            value_buf_a[i] = low[i];                 

         } 

         else{

            value_buf_a[i] = 0;

         }

         

         

         if (i >= 0 && (i - 2) >= 0 && close[i] < (indvalue[i] - pointNum * _Point) && close[i - 2] > indvalue[i]){      

            value_buf_b[i] = high[i];     

         }

         else{

            value_buf_b[i] = 0; 

         }  


    }

         

    return rates_total;

}

Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(253)
Proyectos
316
29%
Arbitraje
34
26% / 65%
Caducado
10
3%
Libre
2
Desarrollador 2
Evaluación
(19)
Proyectos
23
9%
Arbitraje
6
33% / 50%
Caducado
1
4%
Ocupado
3
Desarrollador 3
Evaluación
(8)
Proyectos
9
11%
Arbitraje
0
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(273)
Proyectos
402
27%
Arbitraje
40
40% / 50%
Caducado
1
0%
Libre
5
Desarrollador 5
Evaluación
(60)
Proyectos
87
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabajando
6
Desarrollador 6
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 0%
Caducado
0
Trabaja
7
Desarrollador 7
Evaluación
(47)
Proyectos
67
37%
Arbitraje
5
40% / 40%
Caducado
1
1%
Libre
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(390)
Proyectos
416
30%
Arbitraje
74
19% / 72%
Caducado
52
13%
Trabaja
10
Desarrollador 10
Evaluación
(4)
Proyectos
8
50%
Arbitraje
1
0% / 100%
Caducado
1
13%
Trabaja
11
Desarrollador 11
Evaluación
(448)
Proyectos
709
34%
Arbitraje
35
69% / 9%
Caducado
22
3%
Trabaja
12
Desarrollador 12
Evaluación
(6)
Proyectos
6
0%
Arbitraje
0
Caducado
2
33%
Libre
13
Desarrollador 13
Evaluación
(51)
Proyectos
69
35%
Arbitraje
4
25% / 75%
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(156)
Proyectos
197
59%
Arbitraje
10
80% / 0%
Caducado
0
Libre
Ha publicado: 1 ejemplo
15
Desarrollador 15
Evaluación
(206)
Proyectos
333
35%
Arbitraje
66
12% / 58%
Caducado
87
26%
Libre
16
Desarrollador 16
Evaluación
(452)
Proyectos
565
26%
Arbitraje
24
42% / 38%
Caducado
85
15%
Trabaja
Ha publicado: 6 ejemplos
17
Desarrollador 17
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
18
Desarrollador 18
Evaluación
(4)
Proyectos
8
0%
Arbitraje
3
33% / 67%
Caducado
4
50%
Libre
19
Desarrollador 19
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
20
Desarrollador 20
Evaluación
(16)
Proyectos
18
28%
Arbitraje
0
Caducado
3
17%
Trabaja
21
Desarrollador 21
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
22
Desarrollador 22
Evaluación
(297)
Proyectos
476
40%
Arbitraje
105
40% / 24%
Caducado
81
17%
Ocupado
Ha publicado: 2 ejemplos
23
Desarrollador 23
Evaluación
(12)
Proyectos
12
17%
Arbitraje
2
0% / 50%
Caducado
1
8%
Libre
24
Desarrollador 24
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
25
Desarrollador 25
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
26
Desarrollador 26
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
I need a mt5 expert advisor as shown in the youtube video. The expert advisor need to work with three digit broker i.e. exness also with two digit broker i.e. vantage. Please specify the settings for both type of brokers. I need same result as shown in the youtube video. Video link is https://www.youtube.com/watch?v=ndVQD7iS1-A
You can control via Telegram: /start - enable bot, begin trading, /stop - end trading, disable bot /status - trade status Bot requirements: • Automated trading throughout the day until 00:00 UTC (Moscow time) (I do not want to trade or turn the bot on 100 times a day). • Auto shutdown of the bot in Telegram at 00:00 UTC (Moscow time) and manual restart when convenient. • Market analysis 24/5 using 20 EMA, RSI, and
I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl
Ninjatrader bot 30+ USD
I am looking for an experienced developer who specializes in NinjaTrader and NinjaScript to build a fully automated trading bot. The goal is to create a “sniper-style” trading system that focuses on precise entries, strong risk management, and structured trading logic. This is NOT a simple indicator project I am looking for someone who understands algorithmic trading and can translate trading rules into a reliable
Looking for a trading bot / Expert Advisor that wont make dozens of small successful trades and then one or two unsuccessful trades that wipes out your account Requirements: - MT4 capable - Use on the major currency pairs - although open to other currency pairs - Be successful in monetary terms not necessarily in how many successful trades
I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc
Hello Developers I have a Project to get done! i have a simple strategy can you please create the automated forex ea to execute my trading strategy? i need custom ea for tradingview and mt4/mt5 correction: i need a tradingview indicator created that tells me when to buy or sell. and ea in mt4/mt5
Pro firm setup 30+ USD
Hi, I am starting a futures prop firm. Are you able to help me get data feed for this with no delays and can handle many traders on the platform. Additionally, are you able to handle charts for us
Mam kody EA Bot. Chciałbym je dokończyć, dopracować i ukończyć projekty. Chciałbym otrzymać pliki SET po ukończeniu EA. Jeśli jesteś zainteresowany, skontaktuj się ze mną. Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w
I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000

Información sobre el proyecto

Presupuesto
30+ USD