Spécifications


*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.

Répondu

1
Développeur 1
Évaluation
(2)
Projets
3
0%
Arbitrage
0
En retard
0
Gratuit
2
Développeur 2
Évaluation
(16)
Projets
17
12%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
3
Développeur 3
Évaluation
(32)
Projets
53
36%
Arbitrage
4
25% / 50%
En retard
6
11%
Occupé
4
Développeur 4
Évaluation
(54)
Projets
159
69%
Arbitrage
4
100% / 0%
En retard
1
1%
Gratuit
5
Développeur 5
Évaluation
(2396)
Projets
3010
65%
Arbitrage
76
47% / 14%
En retard
340
11%
Travail
6
Développeur 6
Évaluation
(2)
Projets
1
0%
Arbitrage
2
0% / 0%
En retard
0
Travail
7
Développeur 7
Évaluation
(54)
Projets
73
44%
Arbitrage
21
14% / 67%
En retard
8
11%
Gratuit
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
(1119)
Projets
1421
62%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit
10
Développeur 10
Évaluation
(43)
Projets
50
28%
Arbitrage
2
0% / 0%
En retard
0
Travail
11
Développeur 11
Évaluation
(560)
Projets
927
48%
Arbitrage
301
59% / 25%
En retard
123
13%
Chargé
Commandes similaires
GIOVA 30 - 50 USD
I need a skillful programmer that can Automate my trading indicator into an EA . System has 2 indicators. One of the Indicator is to know the Direction of Trend on H1 and the second indicator is to be use to enter trade on M5 in line with the H1 Trend The EA must have 1. TP and SL, 2. Trailing Stop Loss, 3. ability to add more trade when there is signal in line with H1
Hello developers here, I need a professional developer that can help me to develop an mt5 trading bot that works according to my strategy, I will be sharing my strategy in the inbox, Let me know if you can develop it, I will be waiting for your response
I need to Convert the TradingView Indicator to the MT5 Indicator with some custom padding. This EA is done(open source) on TradingView and must be created identically for MT5 from the start(so will not have bugs). The name of the indicator on TradingView is Smart Money Concept done by LuxAlgo, this indicator must be converted and work identically in MT5 Indicator additional requirements: -Non-repaint - Must work on
Strategy To Be Used 1. Order Blocks (4HR, Daily And Weekly) 2. FVG (For Entry) 3. Fibonacci Levels (TP) 4. HH/LL ( SL) Works in 1HR & 4HR (TF) Risk to reward minimum 2:1 (Default) Winrate 53.21% (Accuracy) tested on Live account of 1000$ May 14th to May 31st You can change the risk per trade percent Per day DD Limit *it should takes multiple entries at the same price point when the price touches weekly/ daily
### 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
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 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

Informations sur le projet

Budget
50+ USD
Délais
de 1 à 4 jour(s)

Client

Commandes passées1
Nombre d'arbitrages0