Buy and sell moving average

MQL5 Experten

Spezifikation

// Define input parameters
input int fastEMA_Period = 10; // Fast EMA period
input int slowEMA_Period = 20; // Slow EMA period

// Define global variables
double fastEMA, slowEMA;

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
{
    // Calculate initial EMAs
    fastEMA = iMA(Symbol(), 0, fastEMA_Period, 0, MODE_EMA, PRICE_CLOSE);
    slowEMA = iMA(Symbol(), 0, slowEMA_Period, 0, MODE_EMA, PRICE_CLOSE);

    return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
{
    // Update EMAs
    fastEMA = iMA(Symbol(), 0, fastEMA_Period, 0, MODE_EMA, PRICE_CLOSE);
    slowEMA = iMA(Symbol(), 0, slowEMA_Period, 0, MODE_EMA, PRICE_CLOSE);

    // Generate buy signal when fast EMA crosses above slow EMA
    if (fastEMA > slowEMA)
    {
        Print("Buy signal! Fast EMA crossed above slow EMA.");
        // Implement your buy logic here
    }

    // Generate sell signal when fast EMA crosses below slow EMA
    else if (fastEMA < slowEMA)
    {
        Print("Sell signal! Fast EMA crossed below slow EMA.");
        // Implement your sell logic here
    }
}

Bewerbungen

1
Entwickler 1
Bewertung
(137)
Projekte
160
23%
Schlichtung
7
0% / 43%
Frist nicht eingehalten
4
3%
Beschäftigt
2
Entwickler 2
Bewertung
(2077)
Projekte
2636
61%
Schlichtung
113
45% / 26%
Frist nicht eingehalten
418
16%
Arbeitet
3
Entwickler 3
Bewertung
(17)
Projekte
22
36%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
4
Entwickler 4
Bewertung
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
5
Entwickler 5
Bewertung
(5)
Projekte
6
17%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
6
Entwickler 6
Bewertung
(337)
Projekte
455
52%
Schlichtung
22
50% / 27%
Frist nicht eingehalten
5
1%
Beschäftigt
7
Entwickler 7
Bewertung
(508)
Projekte
764
63%
Schlichtung
33
27% / 45%
Frist nicht eingehalten
23
3%
Frei
8
Entwickler 8
Bewertung
Projekte
0
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
9
Entwickler 9
Bewertung
(1127)
Projekte
1429
62%
Schlichtung
21
57% / 10%
Frist nicht eingehalten
43
3%
Frei
10
Entwickler 10
Bewertung
(345)
Projekte
543
32%
Schlichtung
24
67% / 8%
Frist nicht eingehalten
15
3%
Frei
11
Entwickler 11
Bewertung
(14)
Projekte
18
67%
Schlichtung
2
50% / 50%
Frist nicht eingehalten
3
17%
Frei
12
Entwickler 12
Bewertung
(85)
Projekte
105
24%
Schlichtung
8
38% / 25%
Frist nicht eingehalten
8
8%
Beschäftigt
13
Entwickler 13
Bewertung
(4)
Projekte
6
0%
Schlichtung
4
25% / 75%
Frist nicht eingehalten
0
Frei
14
Entwickler 14
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
15
Entwickler 15
Bewertung
(42)
Projekte
62
8%
Schlichtung
12
58% / 42%
Frist nicht eingehalten
1
2%
Frei
16
Entwickler 16
Bewertung
(56)
Projekte
175
71%
Schlichtung
4
100% / 0%
Frist nicht eingehalten
1
1%
Frei
17
Entwickler 17
Bewertung
(22)
Projekte
28
11%
Schlichtung
6
33% / 50%
Frist nicht eingehalten
4
14%
Arbeitet
18
Entwickler 18
Bewertung
(1086)
Projekte
1437
45%
Schlichtung
48
73% / 13%
Frist nicht eingehalten
35
2%
Arbeitet
19
Entwickler 19
Bewertung
(13)
Projekte
18
28%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
4
22%
Frei
20
Entwickler 20
Bewertung
(4)
Projekte
4
50%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
21
Entwickler 21
Bewertung
(32)
Projekte
40
38%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
22
Entwickler 22
Bewertung
(60)
Projekte
79
34%
Schlichtung
0
Frist nicht eingehalten
3
4%
Arbeitet
23
Entwickler 23
Bewertung
(121)
Projekte
155
43%
Schlichtung
20
60% / 20%
Frist nicht eingehalten
8
5%
Arbeitet
24
Entwickler 24
Bewertung
(475)
Projekte
504
53%
Schlichtung
10
60% / 20%
Frist nicht eingehalten
3
1%
Frei
25
Entwickler 25
Bewertung
(4)
Projekte
4
0%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
1
25%
Frei
26
Entwickler 26
Bewertung
(563)
Projekte
932
47%
Schlichtung
301
59% / 25%
Frist nicht eingehalten
124
13%
Arbeitet
Ähnliche Aufträge
I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. Function: To
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
"I need an expert advisor (EA) based on stochastic divergence and candlestick formation. It should be able to identify both hidden and regular divergences. The EA should also include modified risk-reward ratios, modified timeframes, and a trailing stop loss. It is important that the EA is 100% accurate. Once an experienced developer applies, I will share the complete strategy."
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for
I need someone that can make expert advisor for backtesting purpose. The input file is History trade report export file from MQl5 the expert advisor should open position the exact time of open trade on the report. The same as the close time
So i have copier EA. The idea is the EA will triggered through manual OP by user via mobile or whatever platform. Let's say 0.01 lot to trigger it. After the EA takes master's position, the EA will be standby mode. If the master take more OP, the EA still not take the master's position (OP) until the user input manually once again via mobile for another 0.01 lot. Since this is a MT4 EA, Whenever user want to close
Hello, send robot models with a solid strategy (to trade forex), I want to use it to make money for the week. It is important that you present me with your profitability graph and a test. I also want to hire him for future jobs
I am looking to develop an automated trading bot based on a strategy involving the crossing of four Simple Moving Averages (SMA). The bot should be capable of entering trades based on this strategy. Additionally, I would like to incorporate some custom diversions tailored for NinjaTrader
Seeking an experienced MQL5 developer to create a sophisticated Expert Advisor focused on harmonic pattern trading . The EA will be designed to identify and trade based on popular harmonic patterns in the forex market. Entry and Exit Logic: Develop smart entry and exit rules based on pattern completions and price action confirmations. Risk Management: Incorporate adjustable risk-per-trade settings and position sizing

Projektdetails

Budget
100+ USD
Für die Entwickler
90 USD