Specifiche


*Strategy:*

- Buy when the 50-day moving average crosses above the 200-day moving average
- Sell when the 50-day moving average crosses below the 200-day moving average

*Code:*
```
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
int OnInit()
{
   return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
//| Script deinit function                                            |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
   ObjectDelete(_MA50);
   ObjectDelete(_MA200);
}

//+------------------------------------------------------------------+
//| Script tick function                                              |
//+------------------------------------------------------------------+
void OnTick()
{
   double ma50 = iMA(Symbol(), PERIOD_CURRENT, 50, 0, MODE_SMA, PRICE_CLOSE, 0);
   double ma200 = iMA(Symbol(), PERIOD_CURRENT, 200, 0, MODE_SMA, PRICE_CLOSE, 0);
   
   if (ma50 > ma200 && OrderSend(_Symbol, OP_BUY, 0.1, Ask, 3, Bid-20*Point, Bid+20*Point, "MyOrder", 0, 0, Green) == ORDER_RETCODE_DONE)
   {
      Comment("Buy order executed");
   }
   
   else if (ma50 < ma200 && OrderSend(_Symbol, OP_SELL, 0.1, Bid, 3, Ask-20*Point, Ask+20*Point, "MyOrder", 0, 0, Red) == ORDER_RETCODE_DONE)
   {
      Comment("Sell order executed");
   }
}

//+------------------------------------------------------------------+
//| Script deinit function                                            |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
   ObjectDelete(_MA50);
   ObjectDelete(_MA200);
}
```
This code creates a simple moving average crossover strategy, buying when the 50-day MA crosses above the 200-day MA and selling when it crosses below.

Con risposta

1
Sviluppatore 1
Valutazioni
(2)
Progetti
3
0%
Arbitraggio
0
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(16)
Progetti
17
12%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
3
Sviluppatore 3
Valutazioni
(32)
Progetti
53
36%
Arbitraggio
4
25% / 50%
In ritardo
6
11%
Occupato
4
Sviluppatore 4
Valutazioni
(54)
Progetti
159
69%
Arbitraggio
4
100% / 0%
In ritardo
1
1%
Gratuito
5
Sviluppatore 5
Valutazioni
(2396)
Progetti
3010
65%
Arbitraggio
76
47% / 14%
In ritardo
340
11%
In elaborazione
6
Sviluppatore 6
Valutazioni
(2)
Progetti
1
0%
Arbitraggio
2
0% / 0%
In ritardo
0
In elaborazione
7
Sviluppatore 7
Valutazioni
(54)
Progetti
73
44%
Arbitraggio
21
14% / 67%
In ritardo
8
11%
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
(1118)
Progetti
1420
62%
Arbitraggio
21
57% / 10%
In ritardo
43
3%
In elaborazione
10
Sviluppatore 10
Valutazioni
(43)
Progetti
50
28%
Arbitraggio
2
0% / 0%
In ritardo
0
Gratuito
11
Sviluppatore 11
Valutazioni
(559)
Progetti
927
48%
Arbitraggio
301
59% / 25%
In ritardo
124
13%
Caricato
Ordini simili
### Strategy Description for Developer: **Objective**: Develop a profitable Inner Circle Trader (ICT) strategy for the 1-minute and 5-minute time frames. **Components**: 1. **Market Structure**: Identify market structure using swing highs and lows. 2. **Order Blocks**: Utilize bullish and bearish order blocks for potential entry points. 3. **Fair Value Gaps**: Use Fair Value Gaps (FVG) as alternative or complementary
Looking for a profitable universal scalping custom indicator. Needs to have SL and TP with high win rate with notifications for ENTRY, SL and TP. Preferably to work with all pairs. Please don't sell me widely available indicators from tradingview. Needs to be custom indicator or a personal indicator
Hello, Recently I lost the MQL4 code of my built profitable expert advisor (the work of 2 years). I paid an expert to decompile it, but the code is no longer very readable. I need an experienced programmer that can rewrite the code from scratch based on my mql4 source code, with the required coding optimization and variable naming. The execution has to be fast and efficient. Thanks in advance
NEED SOMEONE WHO FULLY UNDERSTANDS THE SMART MONEY CONCEPT. I HAVE INCLUDED IMAGES OF HOW THE EA WOULD LOOK LIKE AFTER COMPLETION I have the source code to an EA already meaning the below, need it to be re-adjusted to my preferred strategy. Look to add a Break of Structure and Change of Character to the EA.EA uses the below: Key Features: 1. Liquidity Zones: Utilizes PDH/PDL, PWH/PWL, PMH, PML, and sessions as
MetaTrader MT4 to MT5 Conversion I'm on the lookout for a skilled developer proficient in MetaTrader who can assist me in converting my custom indicators and Expert Advisors (EAs) from MT4 to MT5. The primary goal of this project is to ensure that my tools are seamlessly compatible with both platforms. Key Requirements: - Proven experience in MetaTrader programming - A deep understanding of the differences between
I would like a MQL5 class / robot that takes care of the entry logic for ICT OTE Model. This logic will be used in existing EA. I need annotations as well as values returns that I can use. It should have selectable inputs for the MSS and BoS lines like: sinput color BuyColor = clrDodgerBlue; //Buy Color sinput color SellColor = clrCrimson; //Sell Color Should have selectable Fib Levels. 50% and 62% Should
NEED SOMEONE WHO FULLY UNDERSTANDS THE SMART MONEY CONCEPT. I HAVE INCLUDED IMAGES OF HOW THE EA WOULD LOOK LIKE AFTER COMPLETION I have the source code to an EA already meaning the below, need it to be re-adjusted to my preferred strategy. Look to add a Break of Structure and Change of Character to the EA.EA uses the below: Key Features: 1. Liquidity Zones: Utilizes PDH/PDL, PWH/PWL, PMH, PML, and sessions as
Hi there, I'm looking for someone to build a fairly easy straight forward grid robot for me. This will be used on FX pairs but mostly DAX, NASDAQ and DOW. Attached are the inputs I need and a description of what is required for each one, but if anything is not clear or needs further information please message me. Many thanks, Nic
Need an EA to be developed based on moving averages and the awesome oscillator. To long an fx pair when the AO flips positive and closes the position when the AO flips negative. Similarly, take a short position when the AO flips negative and closes the short when the AO flips positive. This would be for MT5
I'm seeking a skilled developer to automate my trading strategy. The ideal candidate will have experience in algorithmic trading, proficient in coding languages such as Python or C++, and familiar with trading platforms like MetaTrader5 . The project involves creating a bot that can execute trades based on predefined criteria, manage risk, and adapt to market conditions. Knowledge of financial markets and backtesting

Informazioni sul progetto

Budget
50+ USD
Scadenze
da 1 a 4 giorno(i)

Cliente

Ordini effettuati1
Numero di arbitraggi0